.manage-brand span { color: #93c5fd; }
.manage-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 600;
}
.readonly-banner {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.manager-no { font-family: 'Courier New', monospace; font-weight: 700; color: var(--primary); }
.text-danger { color: #ef4444 !important; }
.manage-sidebar-info {
  padding: 0 1rem 1rem;
}
.manage-sidebar-info .tab-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.45;
}
.manage-quick-stats {
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.manage-quick-stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.manage-quick-stats span { color: #94a3b8; }
.manage-stats-row { margin-bottom: 1.25rem; }
.stat-box-alert {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

/* Layout: main + margin panel */
.manage-layout { align-items: stretch; }
.manage-layout .admin-main { min-width: 0; }

.manage-margin-panel {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg2);
  border-left: 1px solid var(--bg3);
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  position: sticky;
  top: 0;
}
.margin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid var(--bg3);
}
.margin-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #fca5a5;
}
.margin-panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--bg3);
  color: var(--gray-300);
  font-size: 0.75rem;
  font-weight: 800;
}
.margin-panel-count.has-alert {
  background: #ef4444;
  color: #fff;
}
.margin-panel-hint {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.4;
  border-bottom: 1px solid var(--bg3);
}
.margin-call-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.margin-call-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.5;
}
.margin-call-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--bg3);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.margin-call-row:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.06);
}
.margin-call-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.margin-call-main .manager-no {
  font-size: 0.72rem;
}
.margin-call-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.margin-call-pct {
  font-size: 0.82rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
}
.margin-call-pct.alert { color: #f59e0b; }
.margin-call-pct.warning { color: #f97316; }
.margin-call-pct.critical { color: #ef4444; }
.margin-panel-foot {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--bg3);
  color: var(--gray-500);
  font-size: 0.68rem;
  text-align: center;
}

.online-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.online-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.online-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.kimlik-queue-list { display: flex; flex-direction: column; gap: 0.65rem; }
.kimlik-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--bg3);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.contact-masked { color: var(--gray-500); letter-spacing: 0.15em; font-weight: 700; }

@media (max-width: 1200px) {
  .manage-margin-panel {
    width: 260px;
  }
}
@media (max-width: 992px) {
  .manage-layout {
    flex-direction: column;
  }
  .manage-margin-panel {
    width: 100%;
    max-height: none;
    position: static;
    border-left: none;
    border-top: 1px solid var(--bg3);
  }
  .margin-call-list {
    max-height: 280px;
  }
  .manage-quick-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .manage-role-pill {
    font-size: 0.72rem;
  }
  .finans-form-box .form-row {
    grid-template-columns: 1fr;
  }
}
