:root{
  --ink:#161B22;
  --steel:#22303F;
  --paper:#F2F3F0;
  --card:#FFFFFF;
  --line:#DFE1DA;
  --line-dark:#3A4B5C;
  --orange:#E8631C;
  --orange-dark:#B94A0F;
  --orange-light:#FDE9DD;
  --blue:#3A6EA5;
  --blue-light:#E7EFF7;
  --green:#2F8F5B;
  --green-light:#E6F3EB;
  --amber:#C98A17;
  --amber-light:#FBF0DA;
  --red:#C0392B;
  --red-light:#FBE8E6;
  --purple:#6D4FA3;
  --purple-light:#EEE8F6;
  --slate:#6B7280;
  --radius:9px;
  --shadow: 0 2px 8px rgba(22,27,34,0.06), 0 1px 2px rgba(22,27,34,0.08);
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
.mono{font-family:'JetBrains Mono',monospace;}

/* ================= LOGIN SCREEN ================= */
  #loginScreen{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--ink);
    padding:20px;
  }
  .login-card{
    background:var(--card);
    border-radius:14px;
    width:100%;
    max-width:380px;
    padding:34px 30px;
    box-shadow:0 20px 60px rgba(0,0,0,0.35);
  }
  .login-brand{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:center;
    margin-bottom:6px;
  }
  .login-brand .mark{
    width:38px;height:38px;border-radius:8px;
    background:var(--orange);
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:19px;
  }
  .login-brand .label{
    font-family:'Barlow Condensed',sans-serif;
    font-weight:700;
    font-size:22px;
    text-transform:uppercase;
    letter-spacing:0.03em;
  }
  .login-sub{
    text-align:center;
    color:var(--slate);
    font-size:13px;
    margin:0 0 26px;
  }
  .login-error{
    background:var(--red-light);
    color:var(--red);
    font-size:12.5px;
    font-weight:600;
    padding:9px 12px;
    border-radius:7px;
    margin-bottom:14px;
    display:none;
  }
  .login-error.show{display:block;}
  .field{margin-bottom:14px;}
  .field label{
    font-size:12px;
    color:var(--slate);
    display:block;
    margin-bottom:5px;
    font-weight:600;
  }
  .field input, .field select{
    width:100%;
    padding:11px 13px;
    border-radius:7px;
    border:1px solid var(--line);
    font-family:'Inter',sans-serif;
    font-size:14px;
  }
  .field input:focus, .field select:focus{outline:2px solid var(--orange); outline-offset:1px;}
  .login-row-between{
    display:flex;
    justify-content:flex-end;
    margin:-6px 0 18px;
  }
  .link-btn{
    background:none;
    border:none;
    color:var(--blue);
    font-size:12.5px;
    font-weight:600;
    cursor:pointer;
    padding:0;
    text-decoration:underline;
  }
  .submit-btn{
    width:100%;
    padding:13px;
    background:var(--orange);
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:14.5px;
    font-weight:700;
    cursor:pointer;
  }
  .submit-btn:hover{background:var(--orange-dark);}
  .submit-btn:disabled{background:#C9C7C0; cursor:not-allowed;}
  .login-demo-hint{
    margin-top:20px;
    background:var(--blue-light);
    color:var(--blue);
    font-size:11.5px;
    padding:10px 12px;
    border-radius:7px;
    font-family:'JetBrains Mono',monospace;
    line-height:1.6;
  }

/* ================= AUTH PAGES (login / forgot / reset) ================= */
.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--ink);
  padding:20px;
}
.auth-card{
  background:var(--card);
  border-radius:14px;
  width:100%;
  max-width:380px;
  padding:34px 30px;
  box-shadow:0 20px 60px rgba(0,0,0,0.35);
}
.auth-brand{display:flex; align-items:center; gap:10px; justify-content:center; margin-bottom:6px;}
.auth-brand .mark{
  width:38px;height:38px;border-radius:8px; background:var(--orange);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:19px;
}
.auth-brand .label{font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:22px; text-transform:uppercase; letter-spacing:0.03em;}
.auth-sub{text-align:center; color:var(--slate); font-size:13px; margin:0 0 26px;}
.alert{font-size:12.5px; font-weight:600; padding:10px 12px; border-radius:7px; margin-bottom:16px;}
.alert.error{background:var(--red-light); color:var(--red);}
.alert.success{background:var(--green-light); color:var(--green);}
.auth-links{display:flex; justify-content:space-between; margin:-6px 0 18px; font-size:12.5px;}
.link-btn{color:var(--blue); font-weight:600; text-decoration:underline;}
.auth-demo-hint{
  margin-top:20px; background:var(--blue-light); color:var(--blue);
  font-size:11.5px; padding:10px 12px; border-radius:7px; font-family:'JetBrains Mono',monospace; line-height:1.6;
}

/* ================= APP SHELL ================= */
.app{
  display:grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 60px 1fr;
  grid-template-areas: "brand topbar" "nav main";
  min-height:100vh;
}
@media (max-width: 900px){
  .app{
    grid-template-columns: 1fr;
    grid-template-rows: 56px auto 1fr;
    grid-template-areas: "topbar" "nav" "main";
  }
}
.brand{
  grid-area:brand; background:var(--ink); display:flex; align-items:center; gap:10px;
  padding:0 18px; border-right:1px solid var(--line-dark); border-bottom:1px solid var(--line-dark);
}
.brand .mark{
  width:32px;height:32px;border-radius:6px; background:var(--orange);
  display:flex;align-items:center;justify-content:center; color:#fff;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:16px;
}
.brand .label{color:#fff; font-size:16px; font-weight:700; font-family:'Barlow Condensed',sans-serif; letter-spacing:0.03em; text-transform:uppercase;}
@media (max-width:900px){ .brand{display:none;} }

.topbar{
  grid-area:topbar; background:var(--ink); color:var(--paper); display:flex;
  align-items:center; justify-content:space-between; padding:0 20px; border-bottom:1px solid var(--line-dark); gap:10px;
}
.topbar .mobile-brand{display:none; align-items:center; gap:8px; font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:17px; text-transform:uppercase;}
.topbar .mobile-brand .mark{width:26px;height:26px;border-radius:6px;background:var(--orange); display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;}
@media (max-width:900px){ .topbar .mobile-brand{display:flex;} }
.topbar .status-line{font-family:'JetBrains Mono',monospace; font-size:12px; color:#9FB0BE;}
@media (max-width:760px){ .topbar .status-line{display:none;} }
.topbar .actions{display:flex; gap:8px; align-items:center;}

.btn{
  border:none; border-radius:7px; font-weight:600; font-size:12.5px; cursor:pointer;
  padding:9px 14px; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; text-decoration:none;
}
.btn-orange{background:var(--orange); color:#fff;}
.btn-orange:hover{background:var(--orange-dark);}
.btn-ghost{background:transparent; color:#D8DEE2; border:1px solid var(--line-dark);}
.btn-ghost:hover{border-color:var(--orange); color:#fff;}
.btn-full{width:100%; justify-content:center; padding:13px; font-size:14.5px;}

.user-chip{display:flex; align-items:center; gap:8px; font-size:12.5px;}
.user-avatar{width:28px;height:28px;border-radius:50%; background:var(--orange); color:#fff; display:flex;align-items:center;justify-content:center; font-weight:700; font-size:12px; flex-shrink:0;}
@media (max-width:600px){ .user-chip .user-text{display:none;} }

/* ===== Nav ===== */
.nav{grid-area:nav; background:var(--steel); padding:16px 10px; display:flex; flex-direction:column; gap:4px; border-right:1px solid var(--line-dark); overflow-y:auto;}
@media (max-width:900px){ .nav{flex-direction:row; overflow-x:auto; overflow-y:visible; padding:10px 14px; border-right:none; border-bottom:1px solid var(--line-dark);} }
.nav-link{
  background:transparent; border:none; color:#A9B7C4; text-align:left; padding:11px 14px; border-radius:7px;
  font-size:13.5px; font-weight:500; cursor:pointer; white-space:nowrap; display:flex; align-items:center; gap:9px;
  text-decoration:none;
}
.nav-link:hover{background:rgba(255,255,255,0.06); color:#fff;}
.nav-link.active{background:var(--orange); color:#fff;}
.nav-icon{font-size:15px; width:18px; text-align:center;}

/* ===== Nav dropdown submenu (pure CSS: hover for desktop, focus-within for tap/keyboard) ===== */
.nav-group{position:relative;}
.nav-group > .nav-link{display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%;}
.nav-group .chevron{font-size:11px; color:#7C8891; transition:transform .15s ease;}
.nav-group:hover .chevron,
.nav-group:focus-within .chevron{transform:rotate(90deg); color:#fff;}

.nav-submenu{
  display:none;
  flex-direction:column;
  gap:2px;
  position:absolute;
  top:100%; left:0;
  min-width:190px;
  background:var(--ink);
  border:1px solid var(--line-dark);
  border-radius:8px;
  padding:6px;
  margin-top:4px;
  z-index:50;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu{display:flex;}

.nav-sublink{
  color:#A9B7C4; font-size:12.5px; padding:9px 12px; border-radius:6px;
  text-decoration:none; display:flex; align-items:center; gap:8px; white-space:nowrap;
}
.nav-sublink:hover{background:rgba(255,255,255,0.08); color:#fff;}

@media (max-width:900px){
  .nav-submenu{position:static; box-shadow:none; border:none; background:transparent; margin-top:2px; padding:0 0 0 12px;}
}

/* ===== Main ===== */
.main{grid-area:main; overflow-y:auto; padding:22px 26px 50px;}
.page-title{font-size:26px; margin:0 0 4px; color:var(--ink); font-family:'Barlow Condensed',sans-serif; text-transform:uppercase; letter-spacing:0.01em;}
.page-sub{color:var(--slate); font-size:13.5px; margin:0 0 20px;}

.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:26px;}
.stat-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow); border-left:3px solid var(--orange);}
.stat-card.blue{border-left-color:var(--blue);}
.stat-card.green{border-left-color:var(--green);}
.stat-card.red{border-left-color:var(--red);}
.stat-label{font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--slate); font-weight:600; margin-bottom:8px;}
.stat-value{font-family:'JetBrains Mono',monospace; font-size:24px; font-weight:700; color:var(--ink);}
.stat-note{font-size:11.5px; color:var(--slate); margin-top:4px;}

.toolbar{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; align-items:center;}
.search-box{flex:1; min-width:180px; position:relative;}
.search-box input{width:100%; padding:10px 14px 10px 14px; border-radius:7px; border:1px solid var(--line); background:var(--card); font-size:13.5px; font-family:'Inter',sans-serif;}
.search-box input:focus{outline:2px solid var(--orange); outline-offset:1px;}
select.filter-select, .toolbar input[type=text]{
  padding:10px 12px; border-radius:7px; border:1px solid var(--line); background:var(--card); font-size:13px; color:var(--ink); font-family:'Inter',sans-serif;
}

.chip{padding:6px 11px; border-radius:20px; font-size:11.5px; font-weight:600; white-space:nowrap; display:inline-block;}
.chip.ok{background:var(--green-light); color:var(--green);}
.chip.low{background:var(--amber-light); color:var(--amber);}
.chip.out{background:var(--red-light); color:var(--red);}
.chip.role-admin{background:var(--purple-light); color:var(--purple);}
.chip.role-manager{background:var(--blue-light); color:var(--blue);}
.chip.role-staff{background:var(--paper); color:var(--slate); border:1px solid var(--line);}

.table-wrap{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);}
table{width:100%; border-collapse:collapse; font-size:13.5px;}
thead th{text-align:left; padding:12px 16px; background:var(--paper); color:var(--slate); font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; border-bottom:1px solid var(--line); white-space:nowrap;}
tbody td{padding:13px 16px; border-bottom:1px solid var(--line); vertical-align:middle;}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover{background:#FAFAF8;}
.item-name{font-weight:600; color:var(--ink);}
.item-sub{font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--slate);}
.qty-cell{font-family:'JetBrains Mono',monospace; font-weight:700;}
.qty-cell.low{color:var(--amber);}
.qty-cell.out{color:var(--red);}
.row-actions{display:flex; gap:6px;}
.icon-btn{width:30px;height:30px; border-radius:6px; border:1px solid var(--line); background:var(--paper); cursor:pointer; font-size:13px; display:inline-flex;align-items:center;justify-content:center; color:var(--ink); text-decoration:none;}
.icon-btn:hover{border-color:var(--orange); color:var(--orange);}
.icon-btn.danger:hover{border-color:var(--red); color:var(--red);}
.table-scroll{overflow-x:auto;}
.table-scroll table{min-width:700px;}

.empty-state{text-align:center; padding:60px 20px; color:var(--slate);}
.empty-state .big{font-size:36px; margin-bottom:10px;}

.log-list{display:flex; flex-direction:column;}
.log-row{display:grid; grid-template-columns: 90px 1fr 90px 100px; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); align-items:center; font-size:13px;}
.log-row:last-child{border-bottom:none;}
.log-time{font-family:'JetBrains Mono',monospace; font-size:11.5px; color:var(--slate);}
.log-type{padding:3px 9px; border-radius:6px; font-size:11px; font-weight:700; text-align:center; width:fit-content;}
.log-type.in{background:var(--green-light); color:var(--green);}
.log-type.out{background:var(--red-light); color:var(--red);}
.log-qty{font-family:'JetBrains Mono',monospace; font-weight:700; text-align:right;}
@media (max-width:700px){ .log-row{grid-template-columns: 70px 1fr 60px;} .log-row .log-reason-col{display:none;} }

.cat-card-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px;}
.cat-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:8px;}
.cat-card-top{display:flex; justify-content:space-between; align-items:flex-start;}
.cat-name{font-weight:700; font-size:15px;}
.cat-count{font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--slate);}
.cat-actions{display:flex; gap:6px;}

/* ===== Form pages (Add/Edit item, category, user, stock move) ===== */
.form-page{max-width:520px;}
.form-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow);}
.field{margin-bottom:14px;}
.field label{font-size:12px; color:var(--slate); display:block; margin-bottom:5px; font-weight:600;}
.field input, .field select, .field textarea{
  width:100%; padding:10px 12px; border-radius:7px; border:1px solid var(--line); font-family:'Inter',sans-serif; font-size:13.5px;
}
.field input:focus, .field select:focus{outline:2px solid var(--orange); outline-offset:1px;}
.field-row{display:flex; gap:10px;}
.field-row .field{flex:1;}

/* Radio-pill toggle without JS (Stock In / Stock Out) */
.pill-toggle{display:flex; gap:8px; margin-bottom:16px;}
.pill-toggle input[type=radio]{display:none;}
.pill-toggle label{
  flex:1; padding:12px 8px; text-align:center; border-radius:8px; border:1.5px solid var(--line);
  cursor:pointer; font-size:13.5px; font-weight:700; color:var(--slate); background:var(--paper);
}
.pill-toggle input[value="in"]:checked + label{border-color:var(--green); background:var(--green-light); color:var(--green);}
.pill-toggle input[value="out"]:checked + label{border-color:var(--red); background:var(--red-light); color:var(--red);}

.current-stock-note{background:var(--blue-light); color:var(--blue); border-radius:7px; padding:9px 12px; font-size:12.5px; font-weight:600; margin-bottom:14px; font-family:'JetBrains Mono',monospace;}
.info-note{background:var(--paper); color:var(--slate); border-radius:7px; padding:9px 12px; font-size:12px; margin-bottom:14px; line-height:1.5;}

/* Neutral pill-toggle variant (e.g. Cash / Credit) — no green/red semantic, just orange active state */
.pill-toggle.neutral input:checked + label{border-color:var(--orange); background:var(--orange-light); color:var(--orange-dark);}

/* Repeatable item rows (Stock Out: multiple items) */
.item-row{display:flex; gap:8px; align-items:flex-end; margin-bottom:10px;}
.item-row .field{margin-bottom:0;}
.item-row .field.grow{flex:2;}
.item-row .field.shrink{flex:1;}
.remove-row-btn{
  width:38px; height:38px; flex-shrink:0; border-radius:7px; border:1px solid var(--line);
  background:var(--paper); color:var(--red); cursor:pointer; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.remove-row-btn:hover{border-color:var(--red); background:var(--red-light);}
.add-item-btn{
  width:100%; padding:10px; border-radius:7px; border:1.5px dashed var(--orange);
  background:var(--orange-light); color:var(--orange-dark); font-weight:700; font-size:13px;
  cursor:pointer; margin-bottom:16px;
}
.add-item-btn:hover{background:var(--orange); color:#fff;}

/* ===== Pure-CSS popup (no JS) — uses :target ===== */
.popup{
  position:fixed; inset:0; background:rgba(20,24,22,0.5);
  display:none; align-items:center; justify-content:center;
  z-index:100; padding:20px;
}
.popup:target{display:flex;}
.popup-box{
  background:var(--card); border-radius:12px; width:100%; max-width:600px;
  max-height:88vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.3);
}
.popup-head{
  padding:18px 22px 14px; border-bottom:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center;
}
.popup-head h2{font-size:17px; margin:0; font-family:'Barlow Condensed',sans-serif; text-transform:uppercase; letter-spacing:0.02em;}
.popup-close{
  width:30px; height:30px; border-radius:6px; border:1px solid var(--line);
  background:var(--paper); color:var(--ink); font-size:16px; text-decoration:none;
  display:flex; align-items:center; justify-content:center;
}
.popup-close:hover{border-color:var(--red); color:var(--red);}
.popup-body{padding:18px 22px;}

::-webkit-scrollbar{width:8px; height:8px;}
::-webkit-scrollbar-thumb{background:#CBCABF; border-radius:8px;}




/* Base alert styling */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Danger / Error contextual modifier */
.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Optional helper for links inside the danger alert */
.alert-danger .alert-link {
  color: #661920;
  font-weight: 700;
  text-decoration: underline;
}

/* Specific green success color theme */
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Optional styling to make links inside the alert look crisp */
.alert-success .alert-link {
  color: #0c4128;
  font-weight: 700;
  text-decoration: underline;
}
.colorange{color: var(--orange);}

.noStock{padding: 20px; text-align: center; color: var(--slate);background: var(--orange);color: #fff;}

/* ===== Reports page ===== */
.tabs{position:relative;}
.tabs > input[type="radio"]{position:absolute; opacity:0; pointer-events:none;}
.tab-labels{display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap;}
.tab-labels label{
  padding:10px 18px; border-radius:8px; border:1.5px solid var(--line);
  background:var(--card); color:var(--slate); font-weight:700; font-size:13px; cursor:pointer;
}
.tab-panel{display:none;}
#repWeekly:checked ~ .tab-labels label[for="repWeekly"],
#repMonthly:checked ~ .tab-labels label[for="repMonthly"],
#repQuarterly:checked ~ .tab-labels label[for="repQuarterly"]{
  border-color:var(--orange); background:var(--orange); color:#fff;
}
#repWeekly:checked ~ #panelWeekly{display:block;}
#repMonthly:checked ~ #panelMonthly{display:block;}
#repQuarterly:checked ~ #panelQuarterly{display:block;}

.report-section-title{font-size:14px; font-weight:700; margin:24px 0 12px;}
.report-section-title:first-child{margin-top:0;}

.pl-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;}
.pl-row{display:flex; justify-content:space-between; padding:13px 18px; border-bottom:1px solid var(--line); font-size:13.5px;}
.pl-row:last-child{border-bottom:none;}
.pl-row .label{color:var(--slate);}
.pl-row .value{font-family:'JetBrains Mono',monospace; font-weight:700;}
.pl-row.subtotal{background:var(--paper); font-weight:700;}
.pl-row.net{background:var(--green-light); font-size:16px; padding:16px 18px;}
.pl-row.net.loss{background:var(--red-light);}
.pl-row.net .value{font-size:18px;}
.pl-row.net.loss .value{color:var(--red);}
.pl-row.net:not(.loss) .value{color:var(--green);}

/* ---- Print styles: used by Customer/Supplier Khata statements and Sale invoices ---- */
@media print {
  .brand, .topbar, .nav, .toolbar, .popup, form.toolbar, .row-actions { display: none !important; }
  .app { display: block !important; min-height: 0 !important; }
  .main { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  body { background: #fff !important; }
  .table-wrap, .pl-card { box-shadow: none !important; border: 1px solid #ccc !important; }
  a[href]:after { content: "" !important; }
}

.bar-chart{display:flex; align-items:flex-end; gap:18px; height:180px; padding:16px 10px 0; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:22px;}
.bar-group{display:flex; flex-direction:column; align-items:center; justify-content:flex-end; flex:1; height:100%; gap:6px;}
.bar-pair{display:flex; align-items:flex-end; gap:5px; height:100%; width:100%; justify-content:center;}
.bar{width:16px; border-radius:4px 4px 0 0;}
.bar.sales{background:var(--green);}
.bar.purchase{background:var(--blue);}
.bar-group-label{font-size:10.5px; color:var(--slate); font-weight:600; padding-bottom:8px;}
.bar-legend{display:flex; gap:16px; justify-content:center; padding-bottom:14px; font-size:11.5px; color:var(--slate);}
.bar-legend span{display:inline-flex; align-items:center; gap:6px;}
.bar-legend i{width:10px; height:10px; border-radius:3px; display:inline-block;}
.bar-legend i.sales{background:var(--green);}
.bar-legend i.purchase{background:var(--blue);}

#paginationGallery ul.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
    gap: 5px;
}

#paginationGallery ul.pagination li a {
    color: #333;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

#paginationGallery ul.pagination li.active a {
    background-color: #ff6600; /* Aapka orange theme color */
    color: #fff;
    border-color: #ff6600;
}

#paginationGallery ul.pagination li a:hover {
    background-color: #f5f5f5;color: black;
}

#paginationGallery span.elipses {
    padding: 6px 12px;
}
thead th{background: var(--orange);color: #fff;}