/*
 * Choyxona POS — shablonga qo'shimcha uslublar.
 * Shablon (Corona) o'z Bootstrap 5 ni olib keladi; bu yerda faqat
 * shablonda yo'q bo'lgan narsalar: sotuv ekrani, stol kartalari,
 * statistika kartalari. Ranglar shablon palitrasidan olingan.
 */

:root {
    --pos-primary: #1F3BB3;
    --pos-tale: #7DA0FA;
    --pos-dark-blue: #4747A1;
    --pos-light-blue: #7978E9;
    --pos-pink: #F3797E;
    --pos-success: #4DA761;
    --pos-warning: #E29E09;
    --pos-info: #00AAB7;
    --pos-border: #eef0f7;
    --pos-radius: 14px;
}

/* ------------------------------------------------------- sahifa sarlavhasi */

.pos-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-bottom: 16px;
}

.pos-head-title { flex: 0 1 auto; min-width: 0; }

/* Qidiruv, filtr, kichik statistika — sarlavha bilan bir qatorda */
.pos-head-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.pos-page-head h3 {
    margin: 0;
    font-weight: 700;
    color: #1e283d;
}

.pos-page-head p {
    margin: 4px 0 0;
    color: #8e94a9;
    font-size: 0.875rem;
}

.pos-page-head .pos-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --------------------------------------------------- statistika kartalari */

.stat-card {
    border: 0;
    border-radius: var(--pos-radius);
    color: #fff;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -12px rgba(30, 40, 61, .35);
}

.stat-card .card-body {
    padding: 1.35rem 1.5rem;
}

.stat-card .stat-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin: 0;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.15;
    margin: .55rem 0 0;
    font-variant-numeric: tabular-nums;
}

.stat-card .stat-value small {
    font-size: .8rem;
    font-weight: 600;
    opacity: .8;
}

.stat-card .stat-hint {
    margin: .5rem 0 0;
    font-size: .78rem;
    opacity: .85;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    font-size: 1.3rem;
}

.stat-blue   { background: var(--pos-tale); }
.stat-indigo { background: var(--pos-dark-blue); }
.stat-violet { background: var(--pos-light-blue); }
.stat-pink   { background: var(--pos-pink); }
.stat-green  { background: var(--pos-success); }
.stat-amber  { background: var(--pos-warning); }
.stat-teal   { background: var(--pos-info); }

/* Oq fonli yengil variant — ikkilamchi ko'rsatkichlar uchun */
.stat-card.stat-light {
    background: #fff;
    color: #1e283d;
    border: 1px solid var(--pos-border);
}

.stat-card.stat-light .stat-label { color: #8e94a9; opacity: 1; }
.stat-card.stat-light .stat-hint  { color: #8e94a9; opacity: 1; }

/* ------------------------------------------------------------ stol kartasi */

.table-card {
    border: 2px solid transparent;
    border-radius: var(--pos-radius);
    background: #fff;
    padding: 1.15rem 1.25rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.table-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -16px rgba(30, 40, 61, .45);
}

.table-card.is-free    { border-color: #cfe9d6; }
.table-card.is-busy    { border-color: #f8ccce; background: #fff8f8; }
.table-card:hover      { border-color: var(--pos-primary); }

.table-card .table-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e283d;
    margin: 0;
}

.table-card .table-meta {
    color: #8e94a9;
    font-size: .8rem;
    margin: .25rem 0 0;
}

.table-card .table-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.table-card .table-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e283d;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- sotuv ekrani */

.pos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 992px) {
    .pos-grid { grid-template-columns: 1fr 360px; }
}

@media (min-width: 1600px) {
    .pos-grid { grid-template-columns: 1fr 400px; }
}

.pos-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.pos-categories::-webkit-scrollbar { height: 6px; }
.pos-categories::-webkit-scrollbar-thumb { background: #dfe3ee; border-radius: 3px; }

.pos-chip {
    flex: 0 0 auto;
    border: 1px solid #e3e6f0;
    background: #fff;
    color: #5a6377;
    border-radius: 50px;
    padding: .45rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s ease;
}

.pos-chip:hover { border-color: var(--pos-primary); color: var(--pos-primary); }

.pos-chip.active {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
}

.pos-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 576px) { .pos-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .pos-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px){ .pos-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1600px){ .pos-products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pos-tile {
    position: relative;
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius);
    background: #fff;
    padding: 10px;
    text-align: left;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pos-tile:hover {
    transform: translateY(-3px);
    border-color: var(--pos-primary);
    box-shadow: 0 14px 26px -16px rgba(31, 59, 179, .55);
}

.pos-tile.in-cart {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 2px rgba(31, 59, 179, .18);
}

.pos-tile .tile-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 9px;
}

.pos-tile .tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pos-tile .tile-thumb i   { font-size: 1.8rem; color: #c6cbdb; }

.pos-tile .tile-name {
    font-size: .85rem;
    font-weight: 600;
    color: #1e283d;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.pos-tile .tile-price {
    font-size: .95rem;
    font-weight: 700;
    color: var(--pos-primary);
    font-variant-numeric: tabular-nums;
    margin: 6px 0 0;
}

.pos-tile .tile-stock {
    font-size: .72rem;
    font-weight: 600;
    color: #9aa1b5;
    font-variant-numeric: tabular-nums;
}

.pos-tile .tile-stock.is-empty { color: var(--pos-pink); }

.pos-tile .tile-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 50px;
    background: var(--pos-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -3px rgba(31, 59, 179, .7);
}

/* ---------------------------------------------------------------- savat */

.pos-cart {
    border: 0;
    border-radius: var(--pos-radius);
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.pos-cart .cart-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pos-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pos-cart .cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.pos-cart .cart-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: .8rem 1.25rem;
    border-bottom: 1px solid #f5f6fa;
}

.pos-cart .cart-line-name {
    font-size: .85rem;
    font-weight: 600;
    color: #1e283d;
    margin: 0;
}

.pos-cart .cart-line-price {
    font-size: .75rem;
    color: #9aa1b5;
    margin: 2px 0 0;
    font-variant-numeric: tabular-nums;
}

.pos-cart .qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
}

.pos-cart .qty-value {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pos-cart .cart-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--pos-border);
    background: #fafbff;
    border-radius: 0 0 var(--pos-radius) var(--pos-radius);
}

.pos-cart .cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
    font-variant-numeric: tabular-nums;
}

.pos-cart .cart-total-row.grand {
    border-top: 1px solid #e5e8f2;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Kichik ekranda savat mahsulotlardan oldin tursin */
@media (max-width: 991.98px) {
    .pos-grid .pos-cart-wrap { order: -1; }
    .pos-cart { position: static; max-height: none; }
}

/* ------------------------------------------------------------- boshqalar */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state i {
    font-size: 2.6rem;
    color: #ccd2e3;
    display: block;
    margin-bottom: .65rem;
}

.empty-state h6 { font-weight: 700; color: #5a6377; }
.empty-state p  { color: #9aa1b5; font-size: .875rem; margin: .25rem 0 0; }

.tabular { font-variant-numeric: tabular-nums; }

.table thead th {
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8e94a9;
    font-weight: 600;
}

.thumb-sm {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: cover;
    background: #f4f6fb;
}

/* Diagramma — kutubxonasiz, sof CSS */
.mini-chart {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 220px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.mini-chart .chart-col {
    flex: 1 0 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.mini-chart .chart-bars {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.mini-chart .chart-bars span {
    width: 46%;
    border-radius: 4px 4px 0 0;
    transition: opacity .15s ease;
}

.mini-chart .bar-sales    { background: var(--pos-tale); }
.mini-chart .bar-expenses { background: var(--pos-warning); }

.mini-chart .chart-label {
    font-size: .68rem;
    color: #9aa1b5;
    white-space: nowrap;
}

.mini-chart .chart-col:hover .chart-tip { display: block; }

.mini-chart .chart-tip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e283d;
    color: #fff;
    font-size: .72rem;
    line-height: 1.4;
    padding: 6px 9px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 5;
}

.rank-bar {
    height: 6px;
    border-radius: 50px;
    background: #eef0f7;
    overflow: hidden;
}

.rank-bar span {
    display: block;
    height: 100%;
    border-radius: 50px;
    background: var(--pos-tale);
}

/* ------------------------------------------------------------ kirish sahifasi */
/* Shablonda auth uchun fon rasmlari yo'q — o'rniga gradient ishlatamiz. */

.auth .login-brand-bg {
    background: linear-gradient(135deg, #1F3BB3 0%, #4747A1 55%, #7978E9 100%);
    position: relative;
    overflow: hidden;
}

.auth .login-brand-bg::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    top: -140px;
    right: -140px;
}

.auth .login-brand-bg::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    bottom: -120px;
    left: -90px;
}

.auth .login-brand-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 3.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth .login-brand-inner h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.auth .login-brand-inner p { opacity: .85; }

.auth .login-brand-inner ul { list-style: none; padding: 0; margin: 2rem 0 0; }

.auth .login-brand-inner li {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
    opacity: .9;
    font-size: .9rem;
}

.auth .login-brand-inner li i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}

/* ------------------------------------------------- shablon ustidan tuzatishlar */

/* Uzun (ayniqsa manfiy) summalar karta ichida ikki qatorga bo'linib ketardi */
.stat-card .stat-value {
    white-space: nowrap;
    font-size: clamp(1.15rem, 1.55vw, 1.6rem);
}

.stat-card .stat-value small { white-space: nowrap; }

.stat-card .stat-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shablonda "select.form-select" uchun color: #c9c8c8 berilgan —
   tanlangan qiymat o'chirilgandek och kulrang ko'rinardi.
   Ustunlik uchun bu yerda ham element + klass ishlatiladi. */
select.form-select,
select.form-select:focus {
    color: #1e283d;
}

select.form-select option { color: #1e283d; }

/* Shablon karta sarlavhalarini "Har So'zni Bosh Harf" qilib yozadi —
   o'zbekcha matnda bu g'alati ko'rinadi */
.card .card-title { text-transform: none; }

/* Jadval ichidagi amal tugmalari bir xil o'lchamda tursin */
.table .btn-sm {
    padding: .35rem .6rem;
    line-height: 1;
}

.table .btn-sm i { font-size: 1rem; }

/* ============================================================================
   Yuqori panel va yon menyu — shablon ustidan qayta ishlangan qism.

   Sababi: shablonning o'z navbari 97px balandlikda, ichida 28px li sarlavha
   bor edi. Sahifaning o'z sarlavhasi bilan birga ikkita ustma-ust panel
   ko'rinishi hosil bo'lardi. Endi yuqorida faqat xizmat paneli, sahifada esa
   yagona sarlavha.
   ========================================================================= */

:root {
    --pos-topbar-h: 66px;
    --pos-sidebar-w: 244px;
    --pos-sidebar-bg: #ffffff;
    --pos-line: #e8ebf2;
}

/* ------------------------------------------------------------ yuqori panel */

.navbar.default-layout {
    height: var(--pos-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--pos-line);
}

.navbar .navbar-brand-wrapper,
.navbar .navbar-menu-wrapper {
    height: var(--pos-topbar-h);
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar .navbar-brand-wrapper {
    width: var(--pos-sidebar-w);
    padding-left: 22px;
    padding-right: 12px;
    border-right: 1px solid var(--pos-line);
}

.navbar .navbar-menu-wrapper {
    width: calc(100% - var(--pos-sidebar-w));
    padding-left: 20px;
    padding-right: 24px;
}

/* Shablonning eski sarlavhalari endi ishlatilmaydi */
.welcome-text,
.welcome-sub-text {
    display: none !important;
}

.navbar .navbar-brand.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.navbar .navbar-brand-wrapper .brand-logo-mini {
    display: none;
    margin: 0;
    padding: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pos-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e283d;
    letter-spacing: -.01em;
}

.navbar .navbar-toggler {
    border: 0;
    background: transparent;
    color: #8e94a9;
    font-size: 1.35rem;
    padding: 0 .5rem 0 0;
    line-height: 1;
}

.navbar .navbar-toggler:hover { color: var(--pos-primary); }

.company-chip {
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--pos-line);
    border-radius: 50px;
    background: #fafbff;
}

.company-chip img,
.company-chip-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.company-chip-mark {
    background: var(--pos-tale);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.company-chip-name {
    font-size: .85rem;
    font-weight: 600;
    color: #4a5265;
    white-space: nowrap;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pos-primary);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Panel balandligi o'zgargani uchun ostidagi bloklar ham moslanadi */
.sidebar,
.main-panel {
    min-height: calc(100vh - var(--pos-topbar-h));
}

.page-body-wrapper { padding-top: var(--pos-topbar-h); }

.content-wrapper {
    background: #f6f7fb;
    padding: 1.75rem 1.75rem 2rem;
}

/* ---------------------------------------------------------------- yon menyu */

.sidebar {
    width: var(--pos-sidebar-w);
    background: var(--pos-sidebar-bg);
    border-right: 1px solid var(--pos-line);
    padding: 10px 0 24px;
}

.main-panel { width: calc(100% - var(--pos-sidebar-w)); }

.sidebar .nav { margin-bottom: 0; }

/* Bo'lim ajratuvchisi: ikki tarafi chiziq, o'rtasida xira yozuv */
.sidebar .nav .nav-item.nav-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 18px 8px;
    padding: 0;
    color: #9aa1b5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 0;
}

.sidebar .nav .nav-item.nav-section::before,
.sidebar .nav .nav-item.nav-section::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--pos-line);
}

.sidebar .nav .nav-item.nav-section span { flex: 0 0 auto; }

/* Asosiy bandlar */
.sidebar .nav .nav-item { margin: 1px 12px; }

.sidebar .nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #3f475a;
    font-size: .95rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.sidebar .nav .nav-item .nav-link:hover {
    background: #f2f4f9;
    color: #1e283d;
}

.sidebar .nav .nav-item .nav-link i.menu-icon {
    font-size: 21px;
    margin: 0;
    color: #8a91a6;
    width: 20px;
    text-align: center;
    transition: color .15s ease;
}

.sidebar .nav .nav-item .nav-link:hover i.menu-icon { color: #5c6478; }

.sidebar .nav .nav-item .nav-link .menu-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.25;
}

.sidebar .nav .nav-item .nav-link i.menu-arrow {
    margin-left: auto;
    color: #c2c8d6;
    font-size: 1rem;
}

/* Tanlangan band: chap chekkada ingichka belgi, yumshoq fon */
.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item.active > .nav-link[aria-expanded="true"],
.sidebar .nav .nav-item.active > .nav-link[aria-expanded="false"],
.sidebar .nav .nav-item.active > .nav-link.collapsed {
    background: rgba(31, 59, 179, .08) !important;
    border-radius: 10px !important;
    color: var(--pos-primary);
    font-weight: 700;
    font-size: .95rem;
}

.sidebar .nav .nav-item.active > .nav-link i.menu-icon,
.sidebar .nav .nav-item.active > .nav-link .menu-title,
.sidebar .nav .nav-item.active > .nav-link i.menu-arrow {
    color: var(--pos-primary);
}

.sidebar .nav .nav-item.active > .nav-link .menu-title { font-size: .95rem; font-weight: 700; }

/* Ichki menyu: nuqtalar o'rniga ikonkalar */
.sidebar .nav.sub-menu {
    background: transparent;
    border-radius: 0;
    padding: 2px 0 4px 16px;
    margin: 0;
    position: relative;
}

.sidebar .nav.sub-menu::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 4px;
    bottom: 8px;
    width: 1px;
    background: var(--pos-line);
}

.sidebar .nav.sub-menu .nav-item {
    margin: 0;
    padding: 0;
}

.sidebar .nav.sub-menu .nav-item::before { display: none; }

.sidebar .nav.sub-menu .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px 8px 14px;
    margin-left: 12px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: #5c6478;
}

.sidebar .nav.sub-menu .nav-item .nav-link i {
    font-size: 17px;
    color: #a0a7b8;
    width: 18px;
    text-align: center;
}

.sidebar .nav.sub-menu .nav-item .nav-link:hover {
    background: #f2f4f9;
    color: #1e283d;
}

.sidebar .nav.sub-menu .nav-item .nav-link:hover i { color: #5c6478; }

.sidebar .nav.sub-menu .nav-item .nav-link.active {
    background: transparent;
    color: var(--pos-primary);
    font-weight: 700;
}

.sidebar .nav.sub-menu .nav-item .nav-link.active i { color: var(--pos-primary); }

/* ------------------------------------------------- sahifa sarlavhasi (yagona) */

.pos-page-head {
    margin-bottom: 14px;
}

.pos-page-head h3 {
    font-size: 1.35rem;
    letter-spacing: -.015em;
}

.pos-page-head p {
    font-size: .825rem;
}

/* -------------------------------------------------------------- kichik ekran */

@media (max-width: 991.98px) {
    .navbar .navbar-brand-wrapper {
        width: auto;
        border-right: 0;
    }

    .navbar .navbar-menu-wrapper {
        width: auto;
        flex: 1 1 auto;
        padding-left: 8px;
        padding-right: 14px;
    }

    .sidebar { border-right: 0; }

    .main-panel { width: 100%; }

    .content-wrapper { padding: 1.25rem 1rem 1.75rem; }
}

/* ============================================================================
   Modallar — ixcham va aniq.
   Shablon maydonlarni 44px, modal sarlavhasini katta qilib beradi; bu yerda
   barcha modallar bir xil: 40px maydon, kichik sarlavha, yumshoq burchaklar.
   ========================================================================= */

.pos-modal {
    background: rgba(30, 40, 61, .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.pos-modal .modal-dialog { --bs-modal-width: 480px; }
.pos-modal .modal-dialog.modal-sm { --bs-modal-width: 380px; }
.pos-modal .modal-dialog.modal-lg { --bs-modal-width: 600px; }
.pos-modal .modal-dialog.modal-xl { --bs-modal-width: 860px; }

.pos-modal .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 30px 70px -24px rgba(30, 40, 61, .55);
    overflow: hidden;
}

.pos-modal .modal-header {
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--pos-border);
}

.pos-modal .modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(31, 59, 179, .08);
    color: var(--pos-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pos-modal .modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e283d;
    line-height: 1.25;
}

.pos-modal .modal-subtitle {
    margin: 2px 0 0;
    font-size: .76rem;
    color: #8e94a9;
}

.pos-modal .modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8e94a9;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}

.pos-modal .modal-close:hover { background: #f2f4f9; color: #1e283d; }

.pos-modal .modal-body { padding: 16px 18px 18px; }

.pos-modal .modal-footer {
    padding: 12px 18px;
    gap: 8px;
    background: #fafbff;
    border-top: 1px solid var(--pos-border);
}

.pos-modal .modal-footer > * { margin: 0; }

.pos-modal .form-label {
    font-size: .76rem;
    font-weight: 600;
    color: #5c6478;
    margin-bottom: 5px;
    letter-spacing: .01em;
}

.pos-modal .form-label-note {
    font-weight: 500;
    color: #a0a6b8;
    font-size: .72rem;
}

.pos-modal .form-control,
.pos-modal .form-select {
    height: 40px;
    font-size: .875rem;
    border-radius: 10px;
    padding: .4rem .8rem;
    border-color: #e3e6f0;
    box-shadow: none;
}

.pos-modal textarea.form-control { height: auto; }

.pos-modal .form-control:focus,
.pos-modal .form-select:focus {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(31, 59, 179, .12);
}

.pos-modal .form-control.is-invalid,
.pos-modal .form-select.is-invalid {
    border-color: var(--pos-pink);
    background-image: none;
}

.pos-modal .form-text,
.pos-modal .invalid-feedback,
.pos-modal .field-error {
    font-size: .74rem;
    margin-top: 4px;
}

.pos-modal .field-error { color: #d9534f; }

.pos-modal .btn {
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    padding: .55rem 1rem;
}

.pos-modal .btn-sm { padding: .42rem .8rem; font-size: .78rem; }

.pos-modal .input-group-text { height: 40px; border-radius: 10px; }

/* Foyda eslatmasi — alert o'rniga bir qatorli yumshoq yozuv */
.margin-note {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: .78rem;
    color: #5c6478;
}

.margin-note i { font-size: 1rem; }
.margin-note.is-plus  { background: #edf7ef; color: #2f6f3f; }
.margin-note.is-minus { background: #fdeeee; color: #b23a3a; }

/* ------------------------------------------------ tanlov chiplari (kategoriya) */

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 132px;
    overflow-y: auto;
    padding: 2px;
}

.chip-group.is-invalid { outline: 1px solid var(--pos-pink); border-radius: 10px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e3e6f0;
    background: #fff;
    color: #4a5265;
    border-radius: 50px;
    padding: 6px 12px;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all .15s ease;
}

.chip:hover { border-color: var(--pos-primary); color: var(--pos-primary); }

.chip.active {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
    color: #fff;
    box-shadow: 0 4px 10px -5px rgba(31, 59, 179, .7);
}

.chip i { font-size: .95rem; line-height: 1; }

.chip.chip-add {
    border-style: dashed;
    color: var(--pos-primary);
    background: rgba(31, 59, 179, .04);
}

.chip.chip-add:hover { background: rgba(31, 59, 179, .1); }

.chip.chip-num { min-width: 44px; justify-content: center; font-variant-numeric: tabular-nums; }

/* Yangi kategoriya: bitta qator — maydon + qo'shish + bekor */
.chip-new {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.chip-new .form-control { flex: 1 1 auto; }
.chip-new .btn { flex: 0 0 auto; padding: .4rem .8rem; white-space: nowrap; }

/* -------------------------------------------------------------- rasm yuklash */

.img-upload {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.img-upload-box {
    position: relative;
    flex-shrink: 0;
    padding: 0;
    border: 2px dashed #d7dbe8;
    border-radius: 14px;
    background: #f7f8fc;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.img-upload.is-circle .img-upload-box { border-radius: 50%; }

.img-upload-box:hover,
.img-upload-box.is-drag { border-color: var(--pos-primary); background: #eef2ff; }

.img-upload-box.has-image { border-style: solid; border-color: #e3e6f0; }

.img-upload-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.img-upload-box.is-busy img { opacity: .55; }

.img-upload-empty {
    color: #b3b9cb;
    font-size: 1.7rem;
    line-height: 1;
}

.img-upload-progress {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 5px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .8);
    overflow: hidden;
}

.img-upload-progress span {
    display: block;
    height: 100%;
    background: var(--pos-primary);
    transition: width .15s ease;
}

.img-upload-check {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pos-success);
    color: #fff;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.img-upload-side { flex: 1 1 auto; min-width: 0; }

.img-upload-hint {
    margin: 6px 0 0;
    font-size: .74rem;
    color: #9aa1b5;
}

.img-upload-error {
    margin: 6px 0 0;
    font-size: .74rem;
    color: #d9534f;
}

[x-cloak] { display: none !important; }

/* ============================================================================
   Joylar sahifasi — choyxona ruhidagi kichik kartalar.
   Palitra: qaymoq fon, yong'oq daraxti rangi yozuv, sopol (terrakota) urg'u,
   choy yashili "bo'sh" holat uchun. Naqsh — yengil nuqtali suzani bezagi.
   ========================================================================= */

:root {
    --tea-cream: #fdf8ee;
    --tea-cream-2: #f6ead2;
    --tea-sand: #e8d5ae;
    --tea-walnut: #4a2f1f;
    --tea-bark: #8c6a4a;
    --tea-clay: #b5573a;
    --tea-clay-soft: #f8e0d5;
    --tea-green: #3f7d4e;
    --tea-green-soft: #e2f0e3;
    --tea-gold: #c9a24a;
}

.place-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.head-search,
.place-search {
    position: relative;
    width: 100%;
    max-width: 240px;
}

.head-search i,
.place-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a6b8;
    font-size: 1.1rem;
}

.head-search input,
.place-search input {
    width: 100%;
    height: 38px;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    background: #fff;
    padding: 0 12px 0 36px;
    font-size: .875rem;
    color: #1e283d;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.head-search input:focus,
.place-search input:focus {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(31, 59, 179, .12);
}

.place-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .78rem;
    color: #5c6478;
    font-weight: 600;
}

.place-legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.place-legend .dot-free { background: var(--tea-green); }
.place-legend .dot-busy { background: var(--tea-clay); }

.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 14px;
}

.place-card {
    position: relative;
    border-radius: 16px;
    padding: 18px 14px 14px;
    text-align: center;
    color: var(--tea-walnut);
    border: 1px solid var(--tea-sand);
    background:
        radial-gradient(circle at 1px 1px, rgba(140, 106, 74, .13) 1px, transparent 1.5px) 0 0 / 12px 12px,
        linear-gradient(165deg, var(--tea-cream) 0%, var(--tea-cream-2) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),
        0 10px 24px -18px rgba(74, 47, 31, .6);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Ichki bezak chizig'i — sopol lagan hoshiyasidek */
.place-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(140, 106, 74, .35);
    border-radius: 12px;
    pointer-events: none;
}

.place-card::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    transform: translateX(-50%);
    background: var(--tea-gold);
    opacity: .6;
}

.place-card:hover {
    transform: translateY(-3px);
    border-color: var(--tea-bark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),
        0 18px 30px -18px rgba(74, 47, 31, .65);
}

.place-card.is-busy {
    border-color: #e9b8a5;
    background:
        radial-gradient(circle at 1px 1px, rgba(181, 87, 58, .14) 1px, transparent 1.5px) 0 0 / 12px 12px,
        linear-gradient(165deg, #fff6f1 0%, var(--tea-clay-soft) 100%);
}

.place-card.is-busy::before { border-color: rgba(181, 87, 58, .35); }
.place-card.is-busy::after { background: var(--tea-clay); }

.place-emblem {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(160deg, #a06b3f 0%, #6e4526 100%);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .7),
        0 0 0 5px var(--tea-sand),
        0 8px 16px -8px rgba(74, 47, 31, .8);
}

.place-card.is-busy .place-emblem {
    background: linear-gradient(160deg, #d0704f 0%, var(--tea-clay) 100%);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .7),
        0 0 0 5px #e9b8a5,
        0 8px 16px -8px rgba(181, 87, 58, .8);
}

.place-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-cap {
    margin: 3px 0 10px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--tea-bark);
}

.place-cap i { font-size: .9rem; }

.place-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--tea-green-soft);
    color: var(--tea-green);
}

.place-card.is-busy .place-status { background: #fff; color: var(--tea-clay); }

.place-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--tea-clay);
    text-decoration: none;
    margin-bottom: 4px;
}

.place-link:hover { color: #8f3f26; text-decoration: underline; }

.place-actions {
    position: absolute;
    top: 9px;
    right: 9px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity .15s ease, transform .15s ease;
}

.place-card:hover .place-actions,
.place-card:focus-within .place-actions { opacity: 1; transform: none; }

.place-action {
    width: 28px;
    height: 28px;
    border: 1px solid var(--tea-sand);
    border-radius: 8px;
    background: #fff;
    color: var(--tea-bark);
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .15s ease;
}

.place-action:hover { color: var(--tea-walnut); border-color: var(--tea-bark); }
.place-action.is-danger:hover { color: #fff; background: var(--tea-clay); border-color: var(--tea-clay); }

.place-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 16px;
    border: 1px dashed var(--tea-sand);
    background: var(--tea-cream);
    color: var(--tea-walnut);
}

.place-empty i { font-size: 2.8rem; color: var(--tea-bark); display: block; margin-bottom: .5rem; }
.place-empty h6 { font-weight: 800; margin: 0; }
.place-empty p { margin: .35rem 0 0; font-size: .85rem; color: var(--tea-bark); }

/* Sensorli qurilmalarda hover yo'q — amallar doim ko'rinsin */
@media (hover: none) {
    .place-actions { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
    .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .place-card { padding: 16px 10px 12px; }
}


/* ============================================================================
   Yig'ilgan yon menyu (sidebar-icon-only).
   Shablon qoidalari bizning ustma-ust yozganlarimiz bilan to'qnashardi:
   "Choyxona" yozuvi va bo'lim sarlavhalari yashirilmasdi, ochiluvchi
   bo'limlar noto'g'ri joyda chiqardi.
   ========================================================================= */

@media (min-width: 992px) {
    .sidebar-icon-only .navbar .navbar-brand-wrapper {
        width: 70px;
        padding: 0;
        justify-content: center;
    }

    .sidebar-icon-only .navbar .navbar-brand-wrapper .brand-logo { display: none !important; }
    .sidebar-icon-only .navbar .navbar-brand-wrapper .brand-logo-mini { display: inline-flex !important; }

    .sidebar-icon-only .navbar .navbar-menu-wrapper { width: calc(100% - 70px); }

    .sidebar-icon-only .sidebar { width: 70px; }
    .sidebar-icon-only .main-panel { width: calc(100% - 70px); }

    .sidebar-icon-only .sidebar .nav .nav-item.nav-section { display: none; }

    .sidebar-icon-only .sidebar .nav .nav-item { margin: 2px 9px; }

    .sidebar-icon-only .sidebar .nav .nav-item .nav-link,
    .sidebar-icon-only .sidebar .nav .nav-item.active > .nav-link {
        display: flex;
        justify-content: center;
        gap: 0;
        padding: 11px 0;
        position: static;
    }

    .sidebar-icon-only .sidebar .nav .nav-item .nav-link .menu-title,
    .sidebar-icon-only .sidebar .nav .nav-item .nav-link i.menu-arrow { display: none; }

    .sidebar-icon-only .sidebar .nav .nav-item .nav-link i.menu-icon {
        font-size: 22px;
        width: auto;
    }

    /* Sichqoncha ustiga kelganda: nom o'ng tomonda suzib chiqadi */
    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link .menu-title {
        display: flex;
        align-items: center;
        position: absolute;
        left: 70px;
        top: 0;
        bottom: 0;
        width: 210px;
        padding: 0 16px;
        background: #fff;
        color: #1e283d;
        font-size: .95rem;
        font-weight: 700;
        border-radius: 0 12px 12px 0;
        box-shadow: 8px 8px 24px -12px rgba(30, 40, 61, .35);
        z-index: 1001;
    }

    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link[aria-expanded] .menu-title {
        border-radius: 0 12px 0 0;
    }

    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapse,
    .sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapsing {
        display: block;
        position: absolute;
        left: 70px;
        width: 210px;
        padding: 6px 8px 8px;
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 8px 8px 24px -12px rgba(30, 40, 61, .35);
        z-index: 1000;
    }

    .sidebar-icon-only .sidebar .nav.sub-menu { padding: 0; }
    .sidebar-icon-only .sidebar .nav.sub-menu::before { display: none; }

    .sidebar-icon-only .sidebar .nav.sub-menu .nav-item { margin: 0; }

    .sidebar-icon-only .sidebar .nav.sub-menu .nav-item .nav-link {
        justify-content: flex-start;
        gap: 9px;
        margin-left: 0;
        padding: 8px 10px;
        position: static;
    }
}

/* ============================================================================
   Mahsulot kodi (MXS-10001) va qoldiq tuzatish bloki
   ========================================================================= */

.code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f4f6fb;
    border: 1px dashed #d7dbe8;
    color: #1e283d;
}

.code-box i { font-size: 1.15rem; color: var(--pos-primary); }

.code-box .code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: .95rem;
}

.code-box.is-pending { color: #9aa1b5; }
.code-box.is-pending i { color: #b3b9cb; }

.code-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 7px;
    background: #f1f3f9;
    color: #3f475a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

.stock-adjust {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8e8;
    border: 1px solid #f3e2b3;
}

.stock-adjust-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .78rem;
    color: #7a5b12;
    margin-bottom: 8px;
}

.stock-adjust-head i { font-size: 1.1rem; line-height: 1; color: #c98a04; }

/* ============================================================================
   Tez sotuv: buyurtma turi kartalari (gorizontal aylanadi)
   ========================================================================= */

.type-cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px;
    -webkit-overflow-scrolling: touch;
}

.type-cards::-webkit-scrollbar { height: 5px; }
.type-cards::-webkit-scrollbar-thumb { background: #dfe3ee; border-radius: 3px; }

.type-card {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 172px;
    padding: 6px 30px 6px 7px;
    border: 1.5px solid #e3e6f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    color: #1e283d;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.type-card:hover { border-color: var(--pos-tale); transform: translateY(-1px); }

.type-card.active {
    border-color: var(--pos-primary);
    background: linear-gradient(135deg, #f4f6ff 0%, #eaefff 100%);
    box-shadow: 0 8px 18px -12px rgba(31, 59, 179, .6);
}

.type-card .type-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f3f9;
    color: #5c6478;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: all .15s ease;
}

.type-card.active .type-icon { background: var(--pos-primary); color: #fff; }

.type-card .type-text { display: flex; flex-direction: column; line-height: 1.2; }
.type-card .type-text strong { font-size: .82rem; font-weight: 700; }
.type-card .type-text small { font-size: .68rem; color: #8e94a9; margin-top: 1px; }

.type-card .type-check {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: var(--pos-primary);
    opacity: 0;
    transition: opacity .15s ease;
}

.type-card.active .type-check { opacity: 1; }

/* ============================================================================
   Mijoz tanlash (savat tepasida) va mijozlar sahifasi
   ========================================================================= */

.cart-customer {
    padding: 10px 14px;
    border-bottom: 1px solid var(--pos-border);
    background: #fbfbfe;
}

.cust-picker { position: relative; }

.cust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #7DA0FA, #1F3BB3);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cust-avatar-lg { width: 46px; height: 46px; font-size: 1.15rem; }

.cust-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe5fb;
}

.cust-name { margin: 0; font-size: .85rem; font-weight: 700; color: #1e283d; }
.cust-phone { margin: 0; font-size: .74rem; color: #8e94a9; font-variant-numeric: tabular-nums; }

.cust-icon-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8e94a9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    text-decoration: none;
    transition: all .15s ease;
}

.cust-icon-btn:hover { background: #f1f3f9; color: #1e283d; }

.cust-search {
    position: relative;
    display: flex;
    align-items: center;
}

.cust-search > i {
    position: absolute;
    left: 11px;
    color: #a0a6b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.cust-search input {
    flex: 1 1 auto;
    height: 38px;
    border: 1px solid #e3e6f0;
    border-radius: 11px;
    background: #fff;
    padding: 0 44px 0 34px;
    font-size: .85rem;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cust-search input:focus {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(31, 59, 179, .12);
}

.cust-add {
    position: absolute;
    right: 5px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: rgba(31, 59, 179, .08);
    color: var(--pos-primary);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.cust-add:hover { background: var(--pos-primary); color: #fff; }

.cust-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(30, 40, 61, .45);
    padding: 6px;
    z-index: 30;
    max-height: 280px;
    overflow-y: auto;
}

.cust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    transition: background .12s ease;
}

.cust-item:hover { background: #f1f3f9; }

.cust-empty {
    padding: 10px 8px;
    font-size: .8rem;
    color: #8e94a9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cust-form {
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe5fb;
}

.cust-form-title {
    margin: 0 0 8px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--pos-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cust-form .form-control-sm { height: 34px; border-radius: 9px; font-size: .82rem; }

.cust-address { margin-top: 10px; }
.cust-address .form-control-sm { height: 34px; border-radius: 9px; font-size: .82rem; }

.cust-address-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.cust-address-chips .chip { padding: 4px 9px; font-size: .72rem; }

.cust-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1e283d;
    text-decoration: none;
}

.cust-row:hover { color: var(--pos-primary); }

.addr-list { list-style: none; margin: 0; padding: 0; }

.addr-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f7f8fc;
    font-size: .82rem;
    color: #3f475a;
    margin-bottom: 6px;
}

.addr-list li i { color: var(--pos-primary); font-size: 1rem; flex-shrink: 0; }


/* ============================================================================
   Ixcham sarlavha qatori: select, filtr tugmasi, yig'iladigan filtr paneli,
   kichik statistika pillari. Maqsad — ro'yxat ko'z to'g'risida tursin.
   ========================================================================= */

select.form-select.head-select {
    height: 38px;
    width: auto;
    min-width: 150px;
    max-width: 220px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #e3e6f0;
    padding: 0 30px 0 12px;
    background-position: right 10px center;
    box-shadow: none;
}

select.form-select.head-select:focus {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(31, 59, 179, .12);
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    background: #fff;
    color: #3f475a;
    font-size: .85rem;
    font-weight: 600;
    transition: all .15s ease;
}

.filter-toggle i { font-size: 1.1rem; }

.filter-toggle:hover,
.filter-toggle.is-open {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
    background: rgba(31, 59, 179, .05);
}

.filter-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--pos-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-panel {
    background: #fff;
    border: 1px solid var(--pos-border);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 10px;
    align-items: end;
}

.filter-grid label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: #8e94a9;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.filter-grid .form-control,
.filter-grid .form-select {
    height: 36px;
    font-size: .84rem;
    border-radius: 10px;
    border-color: #e3e6f0;
    padding: 0 10px;
    box-shadow: none;
}

.filter-grid .form-select { padding-right: 28px; }

.filter-grid .filter-actions .btn {
    height: 36px;
    padding: 0 12px;
    font-size: .8rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
}

/* Kichik statistika: katta kartalar o'rniga bitta qatordagi pillar */
.stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stat-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px 0 6px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pos-border);
    white-space: nowrap;
}

.stat-mini > i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    background: var(--pos-tale);
}

.stat-mini > span { display: flex; flex-direction: column; line-height: 1.1; }
.stat-mini small { font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9aa1b5; }
.stat-mini strong { font-size: .86rem; font-weight: 800; color: #1e283d; font-variant-numeric: tabular-nums; }

.stat-mini.tone-blue   > i { background: var(--pos-tale); }
.stat-mini.tone-indigo > i { background: var(--pos-dark-blue); }
.stat-mini.tone-green  > i { background: var(--pos-success); }
.stat-mini.tone-amber  > i { background: var(--pos-warning); }
.stat-mini.tone-clay   > i { background: var(--tea-clay); }

/* Zal: joy kartasi tugma sifatida — Joylar sahifasi bilan bir xil ko'rinish */
button.place-card {
    font: inherit;
    cursor: pointer;
    width: 100%;
    display: block;
}

button.place-card:focus-visible { outline: 2px solid var(--pos-primary); outline-offset: 2px; }

button.place-card .place-name,
button.place-card .place-cap,
button.place-card .place-emblem { display: block; }

button.place-card .place-emblem { display: flex; }

button.place-card .place-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.place-amount {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--tea-clay);
    font-variant-numeric: tabular-nums;
}

.place-amount small { font-size: .7rem; font-weight: 700; }

.place-since {
    display: block;
    margin: 1px 0 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--tea-bark);
}

@media (max-width: 767.98px) {
    .pos-head-tools { justify-content: flex-start; }
    .head-search, .place-search { max-width: 100%; }
    .stat-strip { width: 100%; }
}

/* Sarlavha qatori bitta qatorga sig'sin: tor ekranda pill ikonkalari yashirinadi */
@media (max-width: 1599.98px) {
    .stat-mini > i { display: none; }
    .stat-mini { padding-left: 11px; }
}

@media (max-width: 1399.98px) {
    .head-search, .place-search { max-width: 200px; }
    .stat-mini { padding-left: 9px; padding-right: 9px; }
}

.btn.btn-icon-only {
    width: 42px;
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.btn-icon-only i { font-size: 1.15rem; }


/* ============================================================================
   Biznes turini tanlash ekrani va profil kartalari
   ========================================================================= */

.setup-body {
    background: #f6f7fb;
    min-height: 100vh;
}

.setup-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 20px 40px;
    text-align: center;
}

.setup-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e283d;
    margin-bottom: 28px;
}

.setup-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e283d;
    margin: 0 0 6px;
}

.setup-sub {
    color: #8e94a9;
    font-size: .9rem;
    margin: 0 0 26px;
}

.setup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.setup-card {
    position: relative;
    text-align: left;
    background: #fff;
    border: 1.5px solid #e3e6f0;
    border-radius: 18px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.setup-card:hover {
    transform: translateY(-3px);
    border-color: var(--pos-primary);
    box-shadow: 0 22px 40px -24px rgba(31, 59, 179, .5);
}

.setup-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 4px;
}

.setup-card.is-cafe .setup-icon { background: linear-gradient(150deg, #a06b3f, #6e4526); }
.setup-card.is-retail .setup-icon { background: linear-gradient(150deg, #7DA0FA, #1F3BB3); }

.setup-card-title { font-size: 1.05rem; font-weight: 800; color: #1e283d; }
.setup-card-desc { font-size: .85rem; color: #6f7789; line-height: 1.45; }

.setup-list {
    list-style: none;
    margin: 6px 0 4px;
    padding: 0;
}

.setup-list li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: #3f475a;
    padding: 3px 0;
}

.setup-list li i { color: var(--pos-success); font-size: 1rem; }

.setup-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--pos-primary);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
}

.setup-card:disabled { opacity: .6; }

/* Profil: biznes turi kartalari (tur kartalari uslubida, kengroq) */
.biz-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.biz-card {
    position: relative;
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 36px 10px 10px;
    border: 1.5px solid #e3e6f0;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    color: #1e283d;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.biz-card:hover { border-color: var(--pos-tale); }

.biz-card.active {
    border-color: var(--pos-primary);
    background: linear-gradient(135deg, #f4f6ff 0%, #eaefff 100%);
}

.biz-card .type-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f1f3f9;
    color: #5c6478;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.biz-card.active .type-icon { background: var(--pos-primary); color: #fff; }
.biz-card .type-text { display: flex; flex-direction: column; line-height: 1.25; }
.biz-card .type-text strong { font-size: .875rem; font-weight: 700; }
.biz-card .type-text small { font-size: .74rem; color: #8e94a9; }

.biz-card .type-check {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: var(--pos-primary);
    opacity: 0;
}

.biz-card.active .type-check { opacity: 1; }


/* ============================================================================
   Tez sotuv: parallel savat yorliqlari
   ========================================================================= */

.pos-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.pos-tab {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    background: #fff;
    color: #5c6478;
    overflow: hidden;
    transition: all .15s ease;
}

.pos-tab:hover { border-color: var(--pos-tale); }

.pos-tab.active {
    border-color: var(--pos-primary);
    background: var(--pos-primary);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(31, 59, 179, .8);
}

.pos-tab-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px 0 9px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    max-width: 200px;
}

.pos-tab-main i { font-size: 1rem; }
.pos-tab-label { overflow: hidden; text-overflow: ellipsis; }

.pos-tab-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: rgba(31, 59, 179, .1);
    color: var(--pos-primary);
    font-size: .68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pos-tab.active .pos-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

.pos-tab-close {
    width: 26px;
    height: 100%;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, .06);
    background: transparent;
    color: inherit;
    opacity: .6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.pos-tab-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.pos-tab.active .pos-tab-close { border-left-color: rgba(255, 255, 255, .25); }

.pos-tab.pos-tab-add {
    padding: 0 11px;
    border-style: dashed;
    color: var(--pos-primary);
    background: rgba(31, 59, 179, .04);
    font-size: .8rem;
    font-weight: 700;
    gap: 3px;
}

.pos-tab.pos-tab-add:hover { background: rgba(31, 59, 179, .1); }


/* ============================================================================
   Onlayn/oflayn ko'rsatkich va oflayn kassa
   ========================================================================= */

.net-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    border-radius: 50px;
    border: 1px solid var(--pos-line);
    background: #fafbff;
    color: #4a5265;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s ease;
}

.net-status i { font-size: 1.05rem; }
.net-status.is-online i { color: var(--pos-success); }
.net-status.is-offline { background: rgba(243, 121, 126, .12); border-color: #f3a3a6; color: #b23a3a; }
.net-status.is-offline i { color: #d9534f; }
.net-status:hover { color: var(--pos-primary); border-color: var(--pos-primary); }

.net-pending {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--pos-warning);
    color: #fff;
    font-size: .68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.net-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 700;
}

.net-pill.is-online { background: #e3f2e5; color: #2f6f3f; }
.net-pill.is-offline { background: #fdeeee; color: #b23a3a; }

.offline-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: .85rem;
    font-weight: 600;
}

.offline-notice i { font-size: 1.15rem; }
.offline-notice.is-success { background: #e3f2e5; color: #2f6f3f; }
.offline-notice.is-error { background: #fdeeee; color: #b23a3a; }

.queue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid var(--pos-border);
}

.queue-row:first-of-type { border-top: 0; }

.mdi-spin { animation: mdi-spin 1s linear infinite; }
@keyframes mdi-spin { to { transform: rotate(360deg); } }

@media print {
    body * { visibility: hidden; }
    .receipt-print, .receipt-print * { visibility: visible; }
    .receipt-print { position: fixed; left: 0; top: 0; width: 72mm; padding: 8px; background: #fff; color: #000; font-family: 'Courier New', monospace; font-size: 12px; }
}
