/* CVL KRA Portal — corporate blue palette */
:root {
  --cvl-primary: #003c71;
  --cvl-primary-hover: #005a9e;
  --cvl-light: #f5f7fa;
}

body {
  background: var(--cvl-light);
  color: #222;
}

.bg-primary-corporate {
  background-color: var(--cvl-primary) !important;
}
.bg-primary-corporate .navbar-brand,
.bg-primary-corporate .nav-link {
  color: rgba(255,255,255,0.92);
}
.bg-primary-corporate .nav-link.active,
.bg-primary-corporate .nav-link:hover {
  color: #fff;
}

.btn-primary {
  background-color: var(--cvl-primary);
  border-color: var(--cvl-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--cvl-primary-hover);
  border-color: var(--cvl-primary-hover);
}

.kpi-card .display-6 {
  font-size: 2.2rem;
}

.pan-input {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

code {
  color: #b00020;
  background: rgba(0,0,0,0.04);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  color: inherit;
  background: transparent;
  padding: 0;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* HOLD classification — orange (between green and red) */
.bg-hold {
  background-color: #fd7e14 !important;
  color: #fff !important;
}
.text-hold { color: #fd7e14 !important; }

details > summary {
  cursor: pointer;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
details[open] > summary::before {
  content: "▾ ";
}

footer {
  border-top: 1px solid #e5e8ec;
  margin-top: 3rem;
  background: #fff;
}

.table-hover tbody tr:hover {
  background-color: rgba(0,60,113,0.04);
}

/* AfterTrade brand logo (image: static/img/aftertrade-logo.png). The image is
   roughly square with the circular mark + "AFTERTRADE" wordmark + tagline; we
   scale by height so the aspect ratio stays correct. */
.brand-logo {
  height: 36px;
  width: auto;
  vertical-align: middle;
}
.brand-logo-lg {
  height: 96px;
  width: auto;
  display: block;
  margin: 0 auto 0.5rem;
}
.brand-logo-xs {
  height: 22px;
  width: auto;
  vertical-align: middle;
  opacity: 0.9;
}
