
@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);
}




/* ============================================================
   GLOBAL SELECT2 CUSTOM STYLES (48px & Dark Theme)
   ============================================================ */

/* მთავარი კონტეინერი */
.select2-container--default {
    width: 100% !important;
}

/* სელექციის არე (48px სიმაღლე) */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    width: 100%;
    height: 48px !important;
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 8px !important; /* მომრგვალებული Collectors სტილში */
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease;
}

/* Single Select ტექსტის გასწორება */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
    line-height: 46px !important; /* სიმაღლესთან გასწორება */
    padding-left: 15px !important;
    font-size: 14px;
}

/* Single Select ისარი */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #ef4444 transparent transparent transparent !important; /* წითელი ისარი */
}

/* Multiple Select (ჩიპების განლაგება) */
.select2-container--default .select2-selection--multiple {
    padding: 0 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 0 !important;
}

/* ჩიპები (Tags) - წითელი გრადიენტით */
.select2-container--default .select2-selection--multiple .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;
    margin: 0 !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    border: none !important;
}

/* Dropdown მენიუ */
.select2-dropdown {
    background-color: #020202 !important;
    border: 1px solid #334155 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    z-index: 9999;
}

.select2-results__option {
    padding: 10px 15px !important;
    color: #cbd5e1 !important;
    font-size: 14px;
}

/* მონიშვნის ეფექტები */
.select2-results__option--highlighted[aria-selected] {
    background-color: rgba(220,38,38,.25) !important;
    color: #fff !important;
}

.select2-results__option--selected {
    background-color: rgba(220,38,38,.35) !important;
}

/* Focus ეფექტი */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #ef4444 !important;
}

/* Placeholder */
.select2-container--default .select2-search--inline .select2-search__field {
    color: #94a3b8 !important;
    margin-top: 0 !important;
}


.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);
}


/* Overlay & Modal Styles */
.pos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* მუქი ლურჯი გამჭვირვალობა */
    backdrop-filter: blur(8px); /* ფონის დაბინდვა */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pos-modal {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pos-modal-header {
    padding: 25px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.pos-modal-header h3 { margin: 0; color: #1e293b; font-size: 20px; }
.pos-modal-header p { margin: 5px 0 0; color: #64748b; font-size: 14px; }

.pos-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    background: #f8fafc;
}

/* პროდუქტის ბარათი მოდალში */
.pos-selection-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pos-selection-card:hover {
    border-color: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

.pos-selection-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 12px;
}

.pos-selection-card .product-title {
    font-weight: 600;
    font-size: 15px;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.pos-selection-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.badge-price { background: #dcfce7; color: #166534; padding: 4px 10px; border-radius: 8px; font-weight: 700; }
.badge-stock { color: #64748b; font-size: 12px; }

.pos-modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.pos-btn-secondary {
    background: #f1f5f9;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    color: #475569;
    cursor: pointer;
    font-weight: 600;
}

/* ======================================================
   POS PAGE WRAPPER (იზოლაცია)
   ====================================================== */

.pos-page {
    min-height: 100vh;
    padding: 24px;
    color: #e5e7eb;

    background:
            radial-gradient(1200px 700px at 0% 0%, rgba(56,189,248,.12), transparent 65%),
            radial-gradient(900px 600px at 100% 0%, rgba(251,191,36,.10), transparent 60%),
            radial-gradient(800px 600px at 50% 100%, rgba(239,68,68,.10), transparent 65%),
            linear-gradient(180deg, #020617 0%, #000 100%);
}

/* ======================================================
   GRID LAYOUT
   ====================================================== */

.pos-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
}

/* ======================================================
   POS CARD (LOCAL, არ ეხება .card სხვაგან)
   ====================================================== */

.pos-page .pos-card {
    background: linear-gradient(
            180deg,
            rgba(15,23,42,.85),
            rgba(2,6,23,.85)
    );
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);

    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.06);

    box-shadow:
            0 30px 80px rgba(0,0,0,.6),
            inset 0 1px 0 rgba(255,255,255,.04);
}

/* ======================================================
   SCAN INPUT
   ====================================================== */

.pos-page .scan-card {
    margin-bottom: 18px;
}

.pos-page .scan-input {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;
    border-radius: 16px;

    background: linear-gradient(
            180deg,
            rgba(2,6,23,.95),
            rgba(15,23,42,.95)
    );

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
            0 0 0 1px rgba(59,130,246,.25),
            0 0 35px rgba(59,130,246,.15);
}

.pos-page .scan-input:focus-within {
    box-shadow:
            0 0 0 1px rgba(34,197,94,.6),
            0 0 55px rgba(34,197,94,.35);
}

.pos-page .scan-input input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    width: 100%;
}

/* ======================================================
   CART TABLE
   ====================================================== */

.pos-page .cart-card {
    padding-top: 16px;
}

.pos-page .cart-header,
.pos-page .pos-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1.2fr 1fr .5fr;
    align-items: center;
    gap: 12px;
}

.pos-page .cart-header {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.pos-page .pos-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .2s ease, transform .15s ease;
}

.pos-page .pos-row:hover {
    background: rgba(255,255,255,.02);
    transform: translateY(-1px);
}

.pos-page .pos-row img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

/* ======================================================
   QTY CONTROLS
   ====================================================== */

.pos-page .qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-page .qty-control button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}

.pos-page .qty-control button:hover {
    background: rgba(255,255,255,.12);
}

/* ======================================================
   SUMMARY
   ====================================================== */

.pos-page .summary-card h3 {
    margin-bottom: 16px;
}

.pos-page .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #cbd5f5;
}

.pos-page .summary-row.discount {
    color: #fca5a5;
}

.pos-page .summary-row.total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,.2);

    font-size: 22px;
    color: #fff;
    text-shadow: 0 0 30px rgba(34,197,94,.45);
}

/* ======================================================
   PAYMENT
   ====================================================== */

.pos-page .payment-card .field {
    margin-bottom: 14px;
}

.pos-page .payment-card label {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 13px;
}

.pos-page .nice-select,
.pos-page .promo-box input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;

    background: rgba(2,6,23,.95);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
}

.pos-page .promo-box {
    display: flex;
    gap: 10px;
}

.pos-page .promo-box button {
    padding: 0 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,.08);
    color: #fff;
}

.pos-page .promo-box button:hover {
    background: rgba(255,255,255,.15);
}

/* ======================================================
   PRIMARY BUTTON
   ====================================================== */

.pos-page .btn-primary {
    width: 100%;
    margin-top: 12px;
    padding: 16px;

    border-radius: 14px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    font-size: 16px;
    font-weight: 600;

    box-shadow:
            0 10px 30px rgba(34,197,94,.35),
            inset 0 1px 0 rgba(255,255,255,.4);
}

.pos-page .btn-primary:hover {
    transform: translateY(-1px);
}

/* ======================================================
   RESPONSIVE (tablet)
   ====================================================== */

@media (max-width: 1024px) {
    .pos-page .pos-layout {
        grid-template-columns: 1fr;
    }
}


:root {
    --bg-dark: #0a0a0c;
    --card-dark: #121214;
    --red: #dc2626;
    --red-2: #7f1d1d;
    --red-glow: rgba(220, 38, 38, 0.3);
    --neon-green: #00ff88;
    --text-gray: #94a3b8;
}

.dark-reports-theme {
    color: #e2e8f0;
}

.reports-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}
.header-text h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; margin: 0; }
.neon-red { color: var(--red); text-shadow: 0 0 15px var(--red); }
.header-text p { color: var(--text-gray); margin-top: 5px; }

.live-status {
    background: #1e1e22;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 0.85rem;
    font-weight: bold;
}
.pulse-dot {
    height: 10px; width: 10px; background: var(--red); border-radius: 50%;
    display: inline-block; margin-right: 8px;
    box-shadow: 0 0 10px var(--red);
    animation: pulse 1.5s infinite;
}

/* Cyber Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.cyber-card {
    background: var(--card-dark);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.main-glow {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.1);
}
.alert-glow {
    background: linear-gradient(135deg, #121214, #2a0a0a);
    border-color: var(--red);
    box-shadow: 0 0 40px var(--red-glow);
}
.cyber-card:hover { transform: scale(1.03); border-color: var(--red); }

.val { font-size: 2.2rem; font-weight: 800; margin-top: 10px; z-index: 2; position: relative; }
.neon-text { color: var(--red); text-shadow: 0 0 10px var(--red); }
.card-bg-icon {
    position: absolute; right: -15px; bottom: -15px;
    font-size: 5rem; opacity: 0.03; font-weight: 900; color: white;
}

/* Layout */
.main-layout {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; margin-bottom: 40px;
}

.filter-panel {
    background: linear-gradient(135deg, var(--red), var(--red-2));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px var(--red-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.cyber-input-group { margin-bottom: 20px; }
.cyber-input-group label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; color: rgba(255,255,255,0.8); }
.cyber-input-group input, .cyber-input-group select {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
    color: white; outline: none; transition: 0.3s;
}
.cyber-input-group input:focus { border-color: white; background: rgba(0,0,0,0.4); }

/* Button */
.btn-cyber-red {
    width: 100%; padding: 18px; background: white; color: black;
    border: none; border-radius: 12px; font-weight: 900;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-cyber-red:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); background: #f0f0f0; }

.action-columns { display: flex; flex-direction: column; gap: 20px; }
.action-cyber-card {
    background: var(--card-dark); padding: 25px; border-radius: 15px;
    border: 1px solid #222; text-decoration: none; color: white;
    display: flex; align-items: center; transition: 0.3s;
}
.action-cyber-card:hover { border-color: var(--red); background: #1a1a1d; box-shadow: 0 0 20px var(--red-glow); }
.act-icon { font-size: 2.5rem; margin-right: 25px; opacity: 0.8; }

/* Table */
.table-section-cyber { background: var(--card-dark); padding: 30px; border-radius: 20px; border: 1px solid #222; }
.cyber-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.cyber-table th { text-align: left; padding: 15px; color: var(--text-gray); font-size: 0.75rem; text-transform: uppercase; border-bottom: 1px solid #333; }
.cyber-table td { padding: 20px 15px; border-bottom: 1px solid #222; font-weight: 600; }
.sku-tag { background: #222; padding: 5px 10px; border-radius: 6px; font-family: monospace; color: var(--red); border: 1px solid #444; }
.neon-text-green { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Triple Layout Grid */
.cyber-triple-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Panel Column Styles */
.filter-panel-column {
    background: #121214;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.filter-panel-column:hover {
    border-color: var(--red);
    box-shadow: 0 0 30px var(--red-glow);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

.panel-header i { font-size: 1.5rem; color: var(--red); }
.panel-header h4 { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* Borders for visual separation */
.sales-border { border-color: rgba(220, 38, 38, 0.4); }
.supply-border { border-color: rgba(59, 130, 246, 0.4); }
.inventory-border { border-color: rgba(16, 185, 129, 0.4); }

.cyber-info-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    min-height: 40px;
}

/* White Button for Inventory to stand out */
.btn-cyber-white {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cyber-white:hover {
    box-shadow: 0 0 20px #fff;
    transform: translateY(-3px);
}

@media (max-width: 1100px) {
    .cyber-triple-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MODERN WAREHOUSE DASHBOARD STYLES
   ========================================= */

:root {
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --accent: #ef4444; /* Collectors Red */
    --accent-hover: #dc2626;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- გვერდის სათაური ---------- */
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- ფილტრები (Buttons) ---------- */
.status-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding: 4px;
    background: #111;
    width: fit-content;
    border-radius: 14px;
}

.status-filter {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
}

.status-filter:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.status-filter.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

/* ---------- ცხრილის სტილი ---------- */
.collector-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* სტილიზებული დაშორება სტრიქონებს შორის */
}

.collector-table thead th {
    padding: 12px 20px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.collector-table tbody tr {
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collector-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: rgba(239, 68, 68, 0.3);
}

.collector-table tbody td {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.collector-table tbody td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 12px 0 0 12px;
}

.collector-table tbody td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 12px 12px 0;
}

/* ---------- პროდუქტი და თაროს კოდი ---------- */
.prod-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 0;
}

.prod-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #000;
}

.shelf-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-top: 6px;
}

/* ---------- სტატუსების Badge ---------- */
.status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.st-new { background: rgba(234, 179, 8, 0.1); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.2); }
.st-pack { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.st-sent { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }
.st-done { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }

/* ---------- ქმედების ღილაკები ---------- */
.actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* ---------- ანიმაცია ახალი შეკვეთისთვის ---------- */
@keyframes blink {
    0% { background-color: var(--card-bg); }
    50% { background-color: rgba(239, 68, 68, 0.05); }
    100% { background-color: var(--card-bg); }
}

.new-order-pulse {
    animation: blink 2s infinite;
}

/* მუქი და სუფთა დიზაინი */
.stock-page { padding-bottom: 120px; }
.table-card { background: #1e1e1e; border: 1px solid #333; border-radius: 12px; }
.custom-table { color: #eee; margin-bottom: 0; }
.custom-table thead { background: #252525; }
.custom-table th { border-bottom: 2px solid #333; padding: 15px; color: #aaa; text-transform: uppercase; font-size: 12px; }
.custom-table td { padding: 12px 15px; vertical-align: middle; border-bottom: 1px solid #2a2a2a; }

.stock-row { transition: background 0.2s; cursor: pointer; }
.stock-row:hover { background: #2a2a2a; }
.stock-row.selected { background: rgba(52, 152, 219, 0.15) !important; }

.qty-input { background: #121212; border: 1px solid #444; color: #fff; text-align: center; }
.qty-input.error { border-color: #e74c3c; box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }

/* ACTION BAR */
.stock-actions-bar {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #2c3e50; padding: 15px 30px; border-radius: 50px;
    z-index: 1000; display: flex; align-items: center; border: 1px solid #34495e;
}
.btn-action {
    border: none; padding: 10px 25px; border-radius: 30px; font-weight: bold;
    display: flex; align-items: center; gap: 10px; transition: 0.2s;
}
.btn-transfer { background: #3498db; color: white; }
.btn-writeoff { background: #e74c3c; color: white; }
.btn-action:hover { transform: translateY(-3px); filter: brightness(1.1); }