:root {
  --sidebar-w: 270px;
}

html, body {
  height: 100%;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0b1f3a;
  color: #fff;
  overflow-y: auto;
}

.app-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 4px;
}

.app-navlink {
  color: rgba(255,255,255,.85);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 6px;
}

.app-navlink:hover {
  color: #fff;
  background: rgba(255,255,255,.10);
}

.app-navlink.active {
  color: #fff;
  background: rgba(255,255,255,.18);
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-breadcrumb {
  font-size: .95rem;
}

.pre-wrap {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 991px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: relative;
    height: auto;
  }
}

/* ============================
   Effecti-like UI helpers
   ============================ */

.toolbar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.toolbar .form-control,
.toolbar .form-select{
  height: 36px;
  padding-top: .35rem;
  padding-bottom: .35rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  font-size: .85rem;
  line-height: 1.2;
}

.chip.active{
  border-color: rgba(13,110,253,.35);
  background: rgba(13,110,253,.08);
}

.chip .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: .7;
}

.table thead th{
  white-space: nowrap;
}

.table tbody td{
  vertical-align: middle;
}

.kpi{
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.kpi .label{
  font-size: .85rem;
  color: rgba(0,0,0,.60);
}

.kpi .value{
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kpi .sub{
  font-size: .85rem;
  color: rgba(0,0,0,.55);
}

.saved-filter-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
}

.saved-filter-item:hover{
  background: rgba(0,0,0,.04);
}
