:root {
  --sb-bg: #16213a;
  --sb-fg: #b8c2d6;
  --sb-active: #2f6fed;
  --app-bg: #f3f5f9;
}
body { background: var(--app-bg); font-size: .925rem; }
.app { display: flex; min-height: 100vh; }

/* Kenar çubuğu */
.sidebar { width: 232px; background: var(--sb-bg) !important; color: var(--sb-fg); display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { position: sticky; top: 0; height: 100vh; flex-shrink: 0; visibility: visible !important; transform: none !important; }
}
@media (max-width: 991.98px) { .sidebar.offcanvas-lg { background: var(--sb-bg); width: 260px; } }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.1rem; color: #fff; font-weight: 600; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand .bi { font-size: 1.35rem; color: #6ea0ff; }
.sidebar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav { padding: .6rem .5rem; flex: 1; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: .7rem; color: var(--sb-fg); text-decoration: none; padding: .55rem .8rem; border-radius: .45rem; margin-bottom: 2px; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: var(--sb-active); color: #fff; }
.sidebar-nav .bi { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.sidebar-foot { font-size: .75rem; padding: .8rem 1.1rem; color: #6b7690; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; background: #fff; padding: .75rem 1.25rem; border-bottom: 1px solid #e3e7ee; position: sticky; top: 0; z-index: 20; }
.content { padding: 1.25rem; }
@media (max-width: 575.98px) { .content { padding: .75rem; } .topbar { padding: .6rem .75rem; } }

/* Kartlar */
.card { border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }
.stat { border-radius: .6rem; background: #fff; border: 1px solid #e3e7ee; padding: .9rem 1rem; height: 100%; }
.stat .lbl { font-size: .78rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.stat .val { font-size: 1.35rem; font-weight: 700; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: #6c757d; }

.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .5rem .6rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #6c757d; font-weight: 600; letter-spacing: .02em; white-space: nowrap; background: #f8f9fb; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-hover tbody tr[data-href] { cursor: pointer; }

/* Segment butonları (WinGSM tarzı sekmeler) */
.seg .btn { min-width: 92px; }

/* Satış ekranı */
.scan-input { font-size: 1.15rem; padding: .7rem 1rem; }
.cart-total { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-row .form-control { text-align: right; font-variant-numeric: tabular-nums; }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; max-height: 320px; overflow-y: auto; }
.suggest .list-group-item { cursor: pointer; }

/* Mini çubuk grafik */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bars .bar i { display: block; width: 100%; background: #2f6fed; border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .bar small { font-size: .68rem; color: #6c757d; margin-top: 4px; white-space: nowrap; }

/* Giriş */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: linear-gradient(135deg, #16213a 0%, #2f4a85 100%); }
.auth-card { width: 100%; max-width: 380px; }

/* Yazdırma */
@media print {
  .sidebar, .topbar, .no-print, .btn, form.no-print { display: none !important; }
  body, .content { background: #fff; padding: 0; }
  .card { border: 0; box-shadow: none; }
}
.fis { max-width: 420px; margin: 0 auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.fis hr { border-top: 1px dashed #999; opacity: 1; }
.sidebar-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7690; padding: .9rem .8rem .3rem; }
.sidebar-nav a { padding: .45rem .8rem; }
code { white-space: nowrap; }
