
@font-face {
    font-family: "Avenir Next Georgian Regular";
    src: url("/AvenirNextGeorgian-.woff2") format("woff2"), url("/AvenirNextGeorgian-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Avenir Next Georgian Bold";
    src: url("/NotoSansGeorgian-ExtraBold.woff2") format("woff2"), url("/NotoSansGeorgian-ExtraBold.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Avenir Next Georgian Medium";
    src: url("/AvenirNextGeorgian-Medium.woff2") format("woff2"), url("/AvenirNextGeorgian-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


* {
    font-family: "Avenir Next Georgian Regular";
    font-optical-sizing: auto;
    font-style: normal;
    -webkit-font-feature-settings: "case" on;
    font-feature-settings: "case" on;
}

     /* ===============================
        DESIGN TOKENS
     =============================== */
:root{
    --bg: #000000;

    --panel: rgba(255,255,255,.04);
    --panel-strong: rgba(255,255,255,.07);
    --border: rgba(255,255,255,.12);

    --text: #f5f5f5;
    --muted: #9ca3af;

    --control-h: 46px; /* ყველა input / btn ერთ ზომაზე */

    --red: #dc2626;
    --red-2: #ef4444;
    --red-glow: rgba(220,38,38,.35);

    --blue: #60a5fa;
    --blue-glow: rgba(96,165,250,.35);

    --green: #22c55e;
    --yellow: #facc15;

    --radius: 18px;
    --radius-sm: 12px;

    --shadow: 0 20px 60px rgba(0,0,0,.75);
    --shadow-soft: 0 10px 30px rgba(0,0,0,.45);

    --sidebar-w: 300px;
}

body{
    margin: 0;
    color: var(--text);
    background-color: var(--bg);

    /* 🔥 fixed background */
    background-image:
            radial-gradient(900px 500px at 10% 0%, rgba(96,165,250,.12), transparent 60%),
            radial-gradient(700px 400px at 90% 10%, rgba(250,204,21,.10), transparent 55%),
            radial-gradient(600px 400px at 50% 90%, rgba(220,38,38,.10), transparent 55%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

}

*{ box-sizing:border-box; }
html,body{ height:100%; }



a{ color: inherit; text-decoration:none; }

/* ===============================
   TYPOGRAPHY
=============================== */
h1,h2,h3,h4{
    font-family: "Avenir Next Georgian Bold";
    font-optical-sizing: auto;
    font-style: normal;
    -webkit-font-feature-settings: "case" on;
    font-feature-settings: "case" on;
    margin: 0;
}

/* ===============================
   APP LAYOUT
=============================== */
.app{
    display:grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height:100vh;
}

/* ===============================
   SIDEBAR (FINAL)
=============================== */
.sidebar{
    position: sticky;
    top: 0;
    height: 100vh;
    width: 280px;

    background: linear-gradient(180deg, #020202, #000);
    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===============================
   HEADER
=============================== */
.sidebar-header{
    padding: 20px;
    flex-shrink: 0;
}

/* ===============================
   BRAND
=============================== */
.brand{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.brand .logo img{
  height: 34px;
}

.brand .name{
    font-weight:700;
    letter-spacing:.3px;
}
.brand .sub{
    font-size:12px;
    color: var(--muted);
}

/* ===============================
   SCROLLABLE NAV
=============================== */
.nav{
    flex: 1;
    min-height: 0;              /* 🔥 აუცილებელია flex-ში */
    overflow-y: auto;

    padding: 0 20px 20px;
    display:flex;
    flex-direction:column;
    gap: 18px;
}

/* scrollbar */
.nav::-webkit-scrollbar{
    width: 6px;
}
.nav::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.14);
    border-radius: 10px;
}
.nav::-webkit-scrollbar-thumb:hover{
    background: rgba(255,255,255,.22);
}

/* ===============================
   NAV ITEMS
=============================== */
.nav-group-title{
    font-size:11px;
    letter-spacing:.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 10px;
    font-family: "Avenir Next Georgian Bold";
    font-optical-sizing: auto;
    font-style: normal;
    -webkit-font-feature-settings: "case" on;
    font-feature-settings: "case" on;
    margin-bottom: 10px;
}

.nav-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition:.18s ease;
    color: #e5e7eb;
}
.nav-item i{
    font-size:19px;
    color: #9ca3af;
}

.nav-item:hover{
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.14);
}

.nav-item.active{
    background: linear-gradient(135deg, rgba(220,38,38,.35), rgba(220,38,38,.12));
    border-color: rgba(220,38,38,.45);
    box-shadow: inset 0 0 0 1px rgba(220,38,38,.25);
}

.nav-item.active i{
    color: var(--red-2);
}

/* ===============================
   FOOTER
=============================== */
.sidebar-footer{
    flex-shrink: 0;
    padding: 14px 20px;

    border-top: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.7));
    box-shadow: 0 -12px 30px rgba(0,0,0,.6);
}


/* ===============================
   MAIN AREA
=============================== */
.main{
    padding: 24px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:18px 20px;
    border-radius: var(--radius);
    background:
            linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.topbar .hint{
    margin-top:6px;
    font-size:13px;
    color: var(--muted);
}

.actions{
    display:flex;
    gap:12px;
    align-items:center;
}

.input{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    border-radius: 16px;
    background: rgba(0,0,0,.6);
    border:1px solid var(--border);
    min-width:260px;
}
.input input{
    background:none;
    border:0;
    outline:none;
    color:var(--text);
    width:100%;
    font-size:14px;
}
.input i{ color: var(--muted); }

.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 16px;
    border-radius: 16px;
    border:1px solid var(--border);
    background: rgba(255,255,255,.04);
    color:var(--text);
    cursor:pointer;
    transition:.18s ease;
    font-weight:600;
    font-size:13px;
}
.btn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
}
.btn.primary{
    background:
            linear-gradient(135deg, var(--red), var(--red-2));
    border-color: rgba(220,38,38,.6);
    box-shadow: 0 0 40px var(--red-glow);
}

/* ===============================
   CONTENT
=============================== */
.page{ margin-top:20px; }

.card{
    border-radius: var(--radius);
    background: rgba(255,255,255,.03);
    border:1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-header{
    padding:16px 18px;
    border-bottom:1px solid rgba(255,255,255,.08);
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.card-body{
    padding:18px;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 1000px){
    .app{ grid-template-columns: 1fr; }
    .sidebar{ height:auto; position:relative; }
    .sidebar-footer{ position:relative; left:0; right:0; bottom:0; margin-top:16px; }
    .topbar{ flex-direction:column; align-items:stretch; }
    .actions{ width:100%; }
    .input{ width:100%; min-width:0; }
}


/* ===============================
   FILTER CARD SPACING
=============================== */
.filter-card{
    padding: 18px;
    margin-bottom: 22px;
}

.filter-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap:18px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.field label{
    font-size:12px;
    color: var(--muted);
}

/* ===============================
   FORM CONTROLS – UNIFIED SIZE
=============================== */
.field input,
.field select{
    height: var(--control-h);
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(0,0,0,.6);
    border:1px solid var(--border);
    color: var(--text);
    display:flex;
    align-items:center;
}


.field input:focus,
.field select:focus{
    outline:none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(220,38,38,.25);
}

.filter-actions{
    display:flex;
    gap:12px;
    align-items:flex-end;
}

/* ===============================
   PRODUCT GRID
=============================== */
.product-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

.product-card{
    border-radius: var(--radius);
    background: rgba(255,255,255,.03);
    border:1px solid var(--border);
    box-shadow: var(--shadow);
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.product-image{
    height:180px;
    display:grid;
    place-items:center;
    background:
            radial-gradient(circle at 30% 20%, rgba(220,38,38,.25), transparent 60%),
            #020202;
}

.product-image img{
    max-height:160px;
    object-fit:contain;
}

.product-image span{
    font-size:12px;
    color: var(--muted);
}

.product-body{
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:10px;
    flex:1;
}

.product-title{
    font-size:15px;
}

.product-meta{
    font-size:12px;
    color: var(--muted);
}

.product-badges{
    display:flex;
    gap:8px;
}

.badge{
    padding:4px 10px;
    border-radius: 999px;
    font-size:11px;
    background: rgba(220,38,38,.20);
    border:1px solid rgba(220,38,38,.45);
}

.badge.outline{
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
}

.product-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:auto;
}

.price{
    font-weight:700;
}

.actions{
    display:flex;
    gap:8px;
}

.icon-btn{
    width:36px;
    height:36px;
    border-radius: 12px;
    display:grid;
    place-items:center;
    border:1px solid var(--border);
    background: rgba(255,255,255,.04);
    cursor:pointer;
}

.icon-btn:hover{
    background: rgba(255,255,255,.08);
}

.icon-btn.danger{
    border-color: rgba(220,38,38,.5);
    color: var(--red);
}

.empty{
    grid-column:1/-1;
    text-align:center;
    padding:60px;
    color: var(--muted);
}


/* ===============================
   SELECT2 – COLLECTORS THEME
=============================== */
.select2-container{
    width:100%!important;
    font-size:14px;
}

.select2-selection{
    background: rgba(0,0,0,.6)!important;
    border:1px solid var(--border)!important;
    border-radius:14px!important;
    min-height:44px;
    display:flex;
    align-items:center;
}

.select2-selection--multiple{
    padding:6px 8px;
}

.select2-selection__rendered{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.select2-selection__choice{
    background:
            linear-gradient(135deg, rgba(220,38,38,.35), rgba(220,38,38,.18))!important;
    border:1px solid rgba(220,38,38,.45)!important;
    color:#fff!important;
    border-radius:999px!important;
    padding:2px 10px!important;
    font-size:12px;
}

.select2-selection__choice__remove{
    color:#fff!important;
    margin-right:6px;
}

.select2-dropdown{
    background:#020202!important;
    border:1px solid var(--border)!important;
    border-radius:14px!important;
    box-shadow: var(--shadow);
}

.select2-results__option{
    padding:10px 14px!important;
    color:var(--text)!important;
}

.select2-results__option--highlighted{
    background: rgba(220,38,38,.25)!important;
}

.select2-results__option--selected{
    background: rgba(220,38,38,.35)!important;
}

.select2-search__field{
    background: transparent!important;
    border:0!important;
    color:var(--text)!important;
}


/* ===============================
   SELECT2 – UNIFIED HEIGHT
=============================== */
.select2-container{
    width:100%!important;
}

.select2-selection{
    height: var(--control-h)!important;
    min-height: var(--control-h)!important;
    background: rgba(0,0,0,.6)!important;
    border:1px solid var(--border)!important;
    border-radius: 16px!important;
    display:flex!important;
    align-items:center!important;
}

/* SINGLE */
.select2-selection--single .select2-selection__rendered{
    line-height: var(--control-h);
    padding-left: 14px!important;
    padding-right: 36px!important;
    color: var(--text)!important;
}

/* MULTI */
.select2-selection--multiple{
    padding: 6px 8px!important;
    align-items:center;
}

/* MULTI tags */
.select2-selection__choice{
    height: 28px;
    display:flex;
    align-items:center;
}


.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c7cff, #8f5cff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.admin-info {
    flex: 1;
    min-width: 0;
}

.admin-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-role {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.logout-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-btn:hover {
    color: #ff6b6b;
    transform: translateX(2px);
}


.product-image {
    background: #fff;
}

.product-image img {
    object-fit: contain;
    width: 100%;
}

/* ===============================
   FILTERS
=============================== */
.filters-panel{
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.filters-grid{
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 12px;
}

.filter-input,
.filter-select{
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.45);
    color: #e5e7eb;
    outline: none;
    transition: .15s ease;
}

.filter-input::placeholder{
    color: rgba(255,255,255,.4);
}

.filter-input:focus,
.filter-select:focus{
    border-color: rgba(220,38,38,.55);
    box-shadow: 0 0 0 1px rgba(220,38,38,.25);
}

.filter-btn{
    height: 42px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--red-2), var(--red));
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover{
    filter: brightness(1.1);
}


/* ===============================
   TABLE
=============================== */
.catalog-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.catalog-table thead th{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    padding: 8px 12px;
}

.catalog-table tbody tr{
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    transition: .15s ease;
    cursor: pointer;
}

.catalog-table tbody tr:hover{
    background: rgba(255,255,255,.06);
}

.catalog-table tbody tr:has(.row-checkbox:checked){
    background: linear-gradient(135deg, rgba(220,38,38,.22), rgba(220,38,38,.08));
    border-color: rgba(220,38,38,.4);
}

.catalog-table td{
    padding: 12px;
    vertical-align: middle;
    color: #e5e7eb;
}

.catalog-table td:first-child{
    border-radius: 16px 0 0 16px;
}
.catalog-table td:last-child{
    border-radius: 0 16px 16px 0;
}

.table-img{
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #000;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
}

.row-checkbox{
    accent-color: rgb(220,38,38);
}



.ui-page{  max-width: 1400px; margin:0 auto; }

.ui-top{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.ui-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.ui-title{ font-size:26px; font-weight:950; letter-spacing:.2px; }
.ui-subtitle{ font-size:13px; color:var(--muted); margin-top:2px; }

.ui-card{
    border-radius:var(--r);
    border:1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    box-shadow:var(--shadow);
    overflow:hidden;
}

.ui-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:14px 16px;
    border-bottom:1px solid var(--border);
    background: rgba(0,0,0,.18);
}

.ui-card-title{ font-weight:950; font-size:14px; letter-spacing:.2px; }
.ui-card-body{ padding:16px; }
.ui-pad-0{ padding:0 !important; }

.ui-label{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.ui-field{ min-width:0; }
.ui-field-actions{ display:flex; gap:10px; align-items:flex-end; }

.ui-input{
    height:var(--h);
    width:100%;
    border-radius:14px;
    background:rgba(255,255,255,.03);
    border:1px solid var(--border);
    color:var(--text);
    padding:10px 12px;
    outline:none;
}
.ui-input:focus{
    border-color: rgba(110,168,254,.35);
    box-shadow: 0 0 0 .25rem rgba(110,168,254,.14);
}

.btn-ui{
    height:var(--h);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 14px;
    border-radius:14px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.03);
    color:var(--text);
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
}
.btn-ui:hover{ background:rgba(255,255,255,.06); }
.btn-ui-primary{ background:rgba(110,168,254,.16); border-color:rgba(110,168,254,.30); }
.btn-ui-dark{ background:rgba(0,0,0,.35); }

.btn-ui-chip{
    height:34px;
    padding:0 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
}

.ui-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding: 10px 16px 14px;
}

.ui-filter{ padding:30px; }

.ui-grid{ display:grid; gap:12px; }
.ui-grid-6{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ui-grid-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ui-grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ui-grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ui-span-2{ grid-column: span 2; }

@media (max-width: 1100px){
    .ui-grid-6{ grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ui-field-actions{ grid-column: span 3; }
}
@media (max-width: 780px){
    .ui-top{ align-items:flex-start; flex-direction:column; }
    .ui-grid-6{ grid-template-columns: 1fr; }
    .ui-field-actions{ grid-column: auto; }
    .ui-grid-4{ grid-template-columns: 1fr 1fr; }
    .ui-grid-3{ grid-template-columns: 1fr; }
    .ui-grid-2{ grid-template-columns: 1fr; }
    .ui-span-2{ grid-column: auto; }
}

.ui-mt{ margin-top:12px; }

.ui-kpi{
    border-radius:var(--r);
    border:1px solid var(--border);
    background:rgba(255,255,255,.02);
    box-shadow:var(--shadow);
    padding:14px 16px;
    min-height:96px;
}
.ui-kpi-label{ font-size:12px; color:var(--muted); }
.ui-kpi-value{ font-size:30px; font-weight:950; line-height:1.1; margin-top:6px; }
.ui-kpi-note{ font-size:12px; color:var(--muted); margin-top:8px; }

.ui-kpi-primary{ border-color:rgba(110,168,254,.30); background:rgba(110,168,254,.07); }
.ui-kpi-warn{ border-color:rgba(255,218,106,.28); background:rgba(255,218,106,.06); }
.ui-kpi-danger{ border-color:rgba(255,107,107,.28); background:rgba(255,107,107,.06); }

.ui-badge{
    font-size:12px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.03);
    padding:6px 10px;
    border-radius:999px;
}

.ui-mini{ margin-top:10px; font-size:12px; color:var(--muted); }

.ui-table-wrap{ overflow:auto; }
.ui-table{
    width:100%;
    border-collapse:collapse;
    font-size: 13px;
}
.ui-table thead th{
    text-align:left;
    font-size:12px;
    color:var(--muted);
    background:rgba(0,0,0,.18);
    border-bottom:1px solid var(--border);
    padding:12px 14px;
    position: sticky;
    top: 0;
}
.ui-table td{
    border-top:1px solid var(--border);
    padding:12px 14px;
    vertical-align:middle;
}
.ui-table tbody tr:hover{ background:rgba(255,255,255,.02); }

.ui-qty{
    display:inline-flex;
    min-width:46px;
    justify-content:center;
    padding:6px 10px;
    border-radius:999px;
    font-weight:950;
    border:1px solid var(--border);
    background:rgba(255,255,255,.03);
}
.ui-qty-warn{ border-color: rgba(255,218,106,.32); }
.ui-qty-danger{ border-color: rgba(255,107,107,.32); }

.fw{ font-weight:900; }
.muted{ color:var(--muted); }
.t-right{ text-align:right; }
.t-center{ text-align:center; }
.pad-y{ padding:18px 14px; }


/* =========================================================
   TYPOGRAPHY (BOLD = Avenir Bold)
   ========================================================= */
.ui-title,
.ui-card-title,
.ui-kpi-value,
.fw-bold{
    font-family: "Avenir Next Georgian Bold";
    font-optical-sizing: auto;
    -webkit-font-feature-settings: "case" on;
    font-feature-settings: "case" on;
}

.ui-title{
    font-size: 26px;
    letter-spacing: .3px;
}

.ui-subtitle{
    font-size: 13px;
    color: var(--muted);
}



.ui-top{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}

.ui-actions{
    display: flex;
    gap: 10px;
}

/* =========================================================
   GRID
   ========================================================= */
.ui-grid{ display: grid; gap: 14px; }
.ui-grid-2{ grid-template-columns: repeat(2,1fr); }
.ui-grid-3{ grid-template-columns: repeat(3,1fr); }
.ui-grid-4{ grid-template-columns: repeat(4,1fr); }
.ui-grid-6{ grid-template-columns: repeat(6,1fr); }
.ui-span-2{ grid-column: span 2; }

@media (max-width: 1100px){
    .ui-grid-6{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 780px){
    .ui-grid-2,
    .ui-grid-3,
    .ui-grid-4,
    .ui-grid-6{ grid-template-columns: 1fr; }
    .ui-span-2{ grid-column: auto; }
}

/* =========================================================
   CARDS
   ========================================================= */
.ui-card{
    background: linear-gradient(180deg,var(--panel-strong),var(--panel));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.ui-card-head{
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-card-title{
    font-size: 14px;
}

.ui-card-body{
    padding: 16px;
}

/* =========================================================
   FILTERS / CONTROLS
   ========================================================= */
.ui-label{
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.ui-input{
    width: 100%;
    height: var(--control-h);
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    color: var(--text);
    outline: none;
}

.ui-input:focus{
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.btn-ui{
    height: var(--control-h);
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-family: "Avenir Next Georgian Medium";
}

.btn-ui-primary{
    background: rgba(96,165,250,.18);
    border-color: rgba(96,165,250,.35);
}

.btn-ui-chip{
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-family: "Avenir Next Georgian Bold";
}

/* =========================================================
   KPI
   ========================================================= */
.ui-kpi{
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg,var(--panel-strong),var(--panel));
    border: 1px solid var(--border);
}

.ui-kpi-label{
    font-size: 12px;
    color: var(--muted);
}

.ui-kpi-value{
    font-size: 32px;
    margin-top: 6px;
}

.ui-kpi-note{
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.ui-kpi-danger{
    box-shadow: 0 0 30px var(--red-glow);
}

/* =========================================================
   TABLES
   ========================================================= */
.ui-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ui-table th{
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    padding: 12px 14px;
    background: rgba(0,0,0,.35);
    border-bottom: 1px solid var(--border);
}

.ui-table td{
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}

.ui-table tr:hover{
    background: rgba(255,255,255,.03);
}

/* =========================================================
   BADGES
   ========================================================= */
.ui-qty{
    display: inline-flex;
    min-width: 44px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-family: "Avenir Next Georgian Bold";
}

.ui-qty-warn{ border-color: var(--yellow); }
.ui-qty-danger{
    border-color: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}

/* ===============================
   FILTER TOOLBAR
================================ */
.ui-filter-bar{
    display: flex;
    gap: 18px;
    padding: 16px;
    align-items: flex-end;
}

.ui-filter-group{
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding-right: 18px;
    border-right: 1px dashed var(--border);
}

.ui-filter-group:last-child{
    border-right: none;
}

.ui-filter-title{
    font-family: "Avenir Next Georgian Bold";
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
    white-space: nowrap;
}

.ui-filter-actions{
    display: flex;
    gap: 10px;
    align-items: center;
}

.ui-quick-range{
    display: flex;
    gap: 6px;
    margin-left: 6px;
}

.ui-chip{
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 12px;
    font-family: "Avenir Next Georgian Bold";
    cursor: pointer;
}

.ui-chip:hover{
    background: rgba(255,255,255,.08);
}

/* Responsive */
@media (max-width: 1100px){
    .ui-filter-bar{
        flex-direction: column;
        align-items: stretch;
    }

    .ui-filter-group{
        border-right: none;
        padding-right: 0;
    }

    .ui-filter-actions{
        justify-content: space-between;
    }
}

/* ===============================
   PERIOD FILTER (X / Y ONLY)
================================ */
.ui-period-filter{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
}

.ui-period-left{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-period-title{
    font-family: "Avenir Next Georgian Bold";
    font-size: 13px;
    color: var(--muted);
}

.ui-period-fields{
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ui-period-sep{
    font-family: "Avenir Next Georgian Bold";
    font-size: 14px;
    color: var(--muted);
    padding-bottom: 6px;
}

.ui-period-actions{
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-quick-range{
    display: flex;
    gap: 6px;
}

.ui-chip{
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 12px;
    font-family: "Avenir Next Georgian Bold";
    cursor: pointer;
}

.ui-chip:hover{
    background: rgba(255,255,255,.08);
}

/* ===============================
   OPTION CARDS
================================ */
.ui-option-card{
    padding: 14px 16px 18px;
}

.ui-option-title{
    font-family: "Avenir Next Georgian Bold";
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 900px){
    .ui-period-filter{
        flex-direction: column;
        align-items: stretch;
    }

    .ui-period-actions{
        justify-content: space-between;
    }
}


/* ===============================
   POS – CASHIER UI
=============================== */
.pos{
    display:grid;
    grid-template-columns: 1fr 380px;
    gap:20px;
}

.pos-card{
    padding:20px;
}

/* scan */
.pos-scan{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border-radius: var(--radius);
    background: rgba(0,0,0,.7);
    border:1px solid var(--border);
    margin-bottom:16px;
}

.pos-scan i{
    font-size:22px;
    color: var(--red);
}

.pos-scan input{
    background:none;
    border:0;
    outline:none;
    color:var(--text);
    font-size:18px;
    width:100%;
}

/* table */
.pos-table{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.pos-row{
    display:grid;
    grid-template-columns: 1.8fr .7fr .7fr .8fr .3fr;
    align-items:center;
    padding:12px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
}

.pos-head{
    background: transparent;
    color: var(--muted);
    font-size:12px;
}

.product{
    display:flex;
    align-items:center;
    gap:12px;
}

.product img{
    width:46px;
    height:46px;
    object-fit:contain;
    border-radius: 10px;
    background:#000;
}

/* pay */
.pos-pay h3{
    margin-bottom:14px;
}

.promo-row{
    display:flex;
    gap:10px;
}

.totals{
    margin:20px 0;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.totals div{
    display:flex;
    justify-content:space-between;
}

.totals .grand{
    font-size:18px;
    font-family:"Avenir Next Georgian Bold";
}

.pos-submit{
    width:100%;
    padding:18px;
    font-size:16px;
}


.scan-status{
    margin-top:10px;
    font-size:13px;
    min-height:18px;
}

.scan-status.success{
    color:#86efac;
}

.scan-status.error{
    color:#fca5a5;
}


/* ===============================
   POS – PRODUCT ROW UPGRADE
=============================== */

.product{
    display:flex;
    align-items:center;
    gap:12px;
}

.product img{
    width:56px;
    height:56px;
    object-fit:contain;
    border-radius: 12px;
    background:#000;
    border:1px solid var(--border);
}

.product .info{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.product .title{
    font-size:14px;
    font-family:"Avenir Next Georgian Bold";
}

.product .barcode{
    font-size:11px;
    color:var(--muted);
}

/* qty buttons */
.qty-control{
    display:flex;
    align-items:center;
    gap:10px;
}

.qty-control button{
    width:36px;
    height:36px;
    border-radius: 10px;
    border:1px solid var(--border);
    background: rgba(255,255,255,.06);
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

.qty-control button:hover{
    background: rgba(220,38,38,.25);
    border-color: rgba(220,38,38,.45);
}

.qty-control span{
    min-width:24px;
    text-align:center;
    font-family:"Avenir Next Georgian Bold";
    font-size:15px;
}

/* ===============================
   CATALOG – FIXED ACTION BAR
=============================== */

.catalog-actions{
    position: fixed;
    bottom: 20px;
    right: 24px;
    z-index: 50;
}

.catalog-download{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 20px;
    border-radius: 16px;
    border:0;
    cursor:pointer;

    font-family:"Avenir Next Georgian Bold";
    font-size:14px;

    color:#fff;
    background:
            linear-gradient(135deg, #dc2626, #ef4444);

    box-shadow:
            0 10px 30px rgba(220,38,38,.45),
            inset 0 0 0 1px rgba(255,255,255,.15);
}

.catalog-download:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(220,38,38,.65);
}

/* ===============================
   CATALOG TABLE
=============================== */

.catalog-table{
    width:100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.catalog-table thead th{
    font-size:12px;
    color:#9ca3af;
    font-weight:500;
    text-align:left;
    padding:8px 12px;
}

.catalog-table tbody tr{
    background: rgba(255,255,255,.03);
    border-radius: 14px;
    transition:.15s;
    cursor:pointer;
}

.catalog-table tbody tr:hover{
    background: rgba(220,38,38,.08);
}

.catalog-table tbody tr.selected{
    background: rgba(220,38,38,.18);
    box-shadow: inset 0 0 0 1px rgba(220,38,38,.45);
}

.catalog-table td{
    padding:14px 12px;
    vertical-align:middle;
}

.catalog-table td:first-child{
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.catalog-table td:last-child{
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.table-img{
    width:50px;
    height:50px;
    object-fit:contain;
    border-radius:10px;
    background:#000;
}


.filters-panel{
    padding:18px;
    border-radius:18px;
    background: rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}

.filters-grid{
    display:grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap:14px;
}

.filter-input,
.filter-select{
    background: rgba(0,0,0,.6);
    border:1px solid rgba(255,255,255,.14);
    border-radius:14px;
    padding:12px 14px;
    color:#fff;
}

.filter-btn{
    padding:12px 18px;
    border-radius:14px;
    background: linear-gradient(135deg,#dc2626,#ef4444);
    color:#fff;
    border:0;
    cursor:pointer;
}


/* ===============================
   STOCK PAGE
=============================== */

.stock-page{
    color:#fff;
}

.page-title{
    font-family:"Avenir Next Georgian Bold";
    margin-bottom:20px;
}

/* TABLE */
.stock-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 12px;
}

.stock-table tbody tr{
    background:rgba(255,255,255,.03);
    border-radius:16px;
    cursor:pointer;
    transition:.15s;
}

.stock-table tbody tr:hover{
    background:rgba(220,38,38,.08);
}

.stock-table tbody tr.selected{
    background:rgba(220,38,38,.18);
    box-shadow:inset 0 0 0 1px rgba(220,38,38,.45);
}

.stock-table td{
    padding:14px;
    vertical-align:middle;
}

.stock-img{
    width:90px;
    height:60px;
    object-fit:contain;
    border-radius:10px;
    background:#000;
}

/* INPUT */
.qty-input{
    width:80px;
    background:#000;
    border:1px solid rgba(255,255,255,.15);
    color:#fff;
    border-radius:12px;
    padding:6px 10px;
}

/* FIXED ACTION BAR */
.stock-actions{
    position:fixed;
    bottom:20px;
    right:24px;
    display:flex;
    gap:14px;
    z-index:60;
}

.action-btn{
    padding:14px 22px;
    border-radius:16px;
    border:0;
    cursor:pointer;
    font-family:"Avenir Next Georgian Bold";
    color:#fff;
}

.action-btn.primary{
    background:linear-gradient(135deg,#dc2626,#ef4444);
    box-shadow:0 10px 30px rgba(220,38,38,.45);
}

.action-btn.danger{
    background:linear-gradient(135deg,#7f1d1d,#dc2626);
}


/* ===============================
   STOCK FILTERS
=============================== */

.stock-filters{
    margin-bottom:22px;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}

.filters-grid{
    display:grid;
    grid-template-columns: 1.6fr 1fr 1fr auto auto;
    gap:14px;
}

.filter-input,
.filter-select{
    background:#000;
    border:1px solid rgba(255,255,255,.15);
    border-radius:14px;
    padding:12px 14px;
    color:#fff;
}

.filter-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 18px;
    border-radius:14px;
    border:0;
    cursor:pointer;
    color:#fff;
    background:linear-gradient(135deg,#dc2626,#ef4444);
}

.filter-clear{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 18px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.2);
    color:#9ca3af;
    text-decoration:none;
}
/* ===============================
   CUSTOM MODAL SYSTEM
=============================== */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    z-index:100;
}

.modal{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) scale(.96);
    width:100%;
    max-width:420px;
    background:#0b0b0b;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 30px 80px rgba(0,0,0,.8);
    z-index:101;
    transition:.18s ease;
}



.modal.show{
    transform:translate(-50%,-50%) scale(1);
}

.modal-header{
    padding:18px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.modal-header h4{
    font-family:"Avenir Next Georgian Bold";
    margin:0;
}

.modal-close{
    background:none;
    border:0;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}

.modal-body{
    padding:20px;
}

.modal-footer{
    padding:16px 20px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    border-top:1px solid rgba(255,255,255,.08);
}

.modal-label{
    font-size:13px;
    color:#9ca3af;
    display:block;
    margin-bottom:6px;
}

.modal-input,
.modal-select{
    width:100%;
    background:#000;
    border:1px solid rgba(255,255,255,.15);
    border-radius:14px;
    padding:12px 14px;
    color:#fff;
}

.modal-btn{
    padding:10px 18px;
    border-radius:14px;
    border:0;
    cursor:pointer;
    font-family:"Avenir Next Georgian Bold";
}

.modal-btn.primary{
    background:linear-gradient(135deg,#dc2626,#ef4444);
    color:#fff;
}

.modal-btn.danger{
    background:linear-gradient(135deg,#7f1d1d,#dc2626);
    color:#fff;
}

.modal-btn.ghost{
    background:#111;
    color:#9ca3af;
    border:1px solid rgba(255,255,255,.15);
}

.hidden{
    display:none;
}
.qty-input.error{
    border-color:#dc2626 !important;
    box-shadow:0 0 0 2px rgba(220,38,38,.35);
    background:rgba(220,38,38,.08);
}


/* ===============================
   SWEETALERT – COLLECTORS THEME
=============================== */

.swal-popup{
    border-radius:20px !important;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 30px 80px rgba(0,0,0,.85);
}

.swal-title{
    font-family:"Avenir Next Georgian Bold";
    font-size:18px;
}

.swal-text{
    font-size:14px;
    color:#d1d5db;
}

.swal-confirm{
    border-radius:14px !important;
    padding:10px 18px !important;
    font-family:"Avenir Next Georgian Bold";
}

.swal-cancel{
    border-radius:14px !important;
    padding:10px 18px !important;
    background:#111 !important;
    border:1px solid rgba(255,255,255,.2) !important;
}


/* ===============================
   STOCK IN
=============================== */

.stockin-page{
    max-width:640px;
    margin:auto;
}

.stockin-card{
    background:#0b0b0b;
    padding:26px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.12);
}

.form-group{
    margin-bottom:22px;
}

.form-label{
    font-size:13px;
    color:#9ca3af;
    margin-bottom:8px;
    display:block;
}

.form-input{
    width:100%;
    background:#000;
    border:1px solid rgba(255,255,255,.18);
    border-radius:14px;
    padding:12px 14px;
    color:#fff;
}

.form-error{
    margin-top:6px;
    color:#ef4444;
    font-size:12px;
}

/* PRODUCT SELECT */
.product-select{
    background:#000;
    border:1px solid rgba(255,255,255,.18);
    border-radius:14px;
    padding:12px 14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
}

.selected-product{
    color:#9ca3af;
}

.product-list{
    margin-top:10px;
    background:#000;
    border:1px solid rgba(255,255,255,.12);
    border-radius:16px;
    max-height:300px;
    overflow:auto;
}

.product-option{
    display:flex;
    gap:12px;
    padding:12px;
    cursor:pointer;
    transition:.15s;
}

.product-option:hover{
    background:rgba(220,38,38,.12);
}

.product-option img{
    width:54px;
    height:40px;
    object-fit:contain;
    border-radius:8px;
    background:#000;
}

.product-title{
    font-weight:500;
}

.product-stock{
    font-size:12px;
    color:#9ca3af;
}

.primary-btn{
    width:100%;
    padding:14px;
    border-radius:16px;
    border:0;
    cursor:pointer;
    font-family:"Avenir Next Georgian Bold";
    color:#fff;
    background:linear-gradient(135deg,#dc2626,#ef4444);
}

.hidden{ display:none; }

#saleModal {
    max-width: 1000px;
}
/* header info */
.receipt-meta {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.receipt-meta div {
    background: #111;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

/* table */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}
.receipt-table th {
    text-align: left;
    font-size: 12px;
    color: #aaa;
    border-bottom: 1px solid #222;
    padding: 8px;
}
.receipt-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
}

.receipt-product {
    display: flex;
    align-items: center;
    gap: 10px;
}
.receipt-product img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
}
.receipt-product .title {
    font-size: 14px;
}

/* totals */
.receipt-totals {
    margin-top: 10px;
    border-top: 1px dashed #333;
    padding-top: 14px;
}
.receipt-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.receipt-line.total {
    font-size: 20px;
    font-weight: 600;
    color: #f43f5e;
}

.stat-card {
    background: linear-gradient(145deg,#0b0b0b,#111);
    border-radius: 16px;
    padding: 16px;
}

.stat-card h4 {
    margin-bottom: 10px;
}

.stat-line {
    display:flex;
    justify-content:space-between;
    margin-bottom:6px;
    font-size:13px;
}

.stat-line.total {
    font-size:17px;
    color:#f43f5e;
}

.payment-breakdown {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
}

.avatar.glow {
    animation: pulse 1.6s infinite;
}

.session-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.session-card {
    background: linear-gradient(180deg, #111, #0b0b0b);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #1f1f1f;
    transition: .3s ease;
}

.session-card:hover {
    transform: translateY(-4px);
    border-color: #333;
}

.session-card.active {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34,197,94,.25);
}

.session-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    font-family: "Avenir Next Georgian Bold";
    font-optical-sizing: auto;
    font-style: normal;
    -webkit-font-feature-settings: "case" on;
    font-feature-settings: "case" on;
}

.avatar.glow {
    background: #22c55e;
    box-shadow: 0 0 15px rgba(34,197,94,.8);
}

.user-info .name {
    font-weight: 600;
    font-family: "Avenir Next Georgian Bold";
    font-optical-sizing: auto;
    font-style: normal;
    -webkit-font-feature-settings: "case" on;
    font-feature-settings: "case" on;
}

.user-info .time {
    font-size: 12px;
    opacity: .7;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: #222;
}

.badge.active {
    background: #22c55e;
    color: #000;
    font-weight: 700;
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.session-stats span {
    font-size: 11px;
    opacity: .6;
}

.session-stats strong {
    display: block;
    font-size: 15px;
}

.btn.full {
    width: 100%;
}



@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
    70%  { box-shadow: 0 0 0 14px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.session-card:not(.active) {
    opacity: .75;
}

.session-dashboard {
    margin-bottom: 40px;
}

/* HEADER */
.session-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.session-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #22c55e;
    color: #000;
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-title {
    font-size: 20px;
    font-weight: 700;
}

.session-sub {
    font-size: 13px;
    opacity: .7;
}

/* SUMMARY */
.session-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.summary-card {
    background: #111;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    border: 1px solid #1f1f1f;
}

.summary-card span {
    font-size: 11px;
    opacity: .6;
}

.summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
}

/* TABLE */
.session-table {
    width: 100%;
    border-collapse: collapse;
}

.session-table th {
    text-align: left;
    font-size: 12px;
    opacity: .6;
    padding: 10px;
}

.session-table td {
    padding: 12px 10px;
    border-top: 1px solid #1f1f1f;
    vertical-align: middle;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-cell img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    background: #222;
}

.modal-footer {
    margin-top: 24px;
    text-align: right;
}

#sessionModal {
    max-width: 1000px;
}

.ui-filter .ui-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-filter .ui-label {
    font-size: 12px;
    opacity: .7;
}

.ui-filter .actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-tag {
    background: #111;
    border: 1px solid #1f1f1f;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-result {
    margin-left: auto;
    font-size: 13px;
    opacity: .8;
}

.ui-input-icon {
    position: relative;
}

.ui-input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .6;
    pointer-events: none;
}

.ui-input-icon .ui-input {
    padding-left: 38px;
}

.ui-input {
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    height: 42px;
}

.ui-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,.15);
}

.ui-filter .actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}


.ui-filter {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ზედა row */
.ui-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

/* გამყოფი ხაზი */
.ui-filter-divider {
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            #1f1f1f,
            transparent
    );
}

/* ქვედა actions */
.ui-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #1f1f1f;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-btn i {
    font-size: 16px;
}

.icon-btn.view {
    color: #38bdf8;
}

.icon-btn.edit {
    color: #facc15;
}

.icon-btn.cancel {
    color: #f87171;
}

.icon-btn:hover {
    background: #1a1a1a;
}

.badge.paid {
    background: #22c55e;
    color: #000;
}

.badge.canceled {
    background: #ef4444;
}


.sale-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sale-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-cell img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}


.mt-30 {
    margin-top: 30px;
}

/* ===============================
   PAGINATION (ADMIN)
================================ */

nav .pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.pagination .page-item{
    list-style: none;
}

/* base link */
.pagination .page-link{
    min-width: 38px;
    height: 38px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);

    color: var(--text);
    font-size: 13px;
    font-family: "Avenir Next Georgian Bold";

    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
}

/* hover */
.pagination .page-link:hover{
    background: rgba(255,255,255,.08);
    transform: translateY(-1px);
}

/* active page */
.pagination .page-item.active .page-link{
    background: linear-gradient(
            180deg,
            rgba(96,165,250,.35),
            rgba(96,165,250,.15)
    );
    border-color: rgba(96,165,250,.55);
    box-shadow:
            0 0 0 3px var(--blue-glow),
            0 10px 25px rgba(96,165,250,.25);
    color: #fff;
    pointer-events: none;
}

/* disabled arrows */
.pagination .page-item.disabled .page-link{
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* arrows */
.pagination .page-link{
    font-size: 14px;
}

/* compact on mobile */
@media (max-width: 600px){
    .pagination{
        gap: 4px;
        flex-wrap: wrap;
    }

    .pagination .page-link{
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 10px;
    }
}


.image-back {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-back img {
    height: 60px;
    object-fit: contain;
    width: 100%;
}

/* ===============================
   PRODUCT EDIT
=============================== */

/*.product-edit-page{*/
/*    max-width:1100px;*/
/*    margin:auto;*/
/*    color:#fff;*/
/*}*/

.edit-header h3{
    font-family:"Avenir Next Georgian Bold";
    margin-bottom:18px;
}

.edit-header span{
    color:#9ca3af;
    font-size:14px;
}

.edit-card{
    background:#0b0b0b;
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    padding:26px;
}

.form-section{
    margin-bottom:30px;
}

.form-section h4{
    font-size:14px;
    margin-bottom:14px;
    color:#ef4444;
    font-family:"Avenir Next Georgian Bold";
}

.form-grid{
    display:grid;
    gap:16px;
}

.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

.form-group label{
    font-size:12px;
    color:#9ca3af;
    margin-bottom:6px;
    display:block;
}

.form-group input,
.form-group textarea{
    width:100%;
    background:#000;
    border:1px solid rgba(255,255,255,.18);
    border-radius:14px;
    padding:12px 14px;
    color:#fff;
}

.form-group textarea{
    resize:vertical;
}

.edit-actions{
    position:sticky;
    bottom:0;
    padding-top:16px;
    background:linear-gradient(to top,#0b0b0b 70%,transparent);
    text-align:right;
}

.primary-btn{
    padding:14px 26px;
    border-radius:18px;
    border:0;
    cursor:pointer;
    font-family:"Avenir Next Georgian Bold";
    color:#fff;
    background:linear-gradient(135deg,#dc2626,#ef4444);
}
