:root { --brand: #4b2a85; }
body { background: #f4f5fa; font-size: .93rem; }
.bg-brand { background: var(--brand) !important; }
.text-brand { color: var(--brand) !important; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: color-mix(in srgb, var(--brand) 85%, black); border-color: color-mix(in srgb, var(--brand) 85%, black); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.nav-tabs .nav-link.active { color: var(--brand); font-weight: 600; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
a { color: color-mix(in srgb, var(--brand) 80%, #0a58ca); }

.sidebar { width: 245px; background: #fff; border-right: 1px solid #e6e6ef; min-height: calc(100vh - 56px); }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex-shrink: 0; } }
.sidebar .nav-link { color: #333; padding: .38rem 1rem; border-left: 3px solid transparent; font-size: .9rem; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; color: #777; }
.sidebar .nav-link:hover { background: #f3f0fa; }
.sidebar .nav-link.active { background: #efe9fb; border-left-color: var(--brand); color: var(--brand); font-weight: 600; }
.sidebar .nav-link.active i { color: var(--brand); }
.nav-section { font-size: .68rem; letter-spacing: .08em; color: #999; padding: .8rem 1rem .2rem; font-weight: 700; }
.main-content { min-width: 0; }

.card { border: 0; box-shadow: 0 1px 3px rgba(20, 20, 50, .08); border-radius: .6rem; }
.card-header { background: #fff; border-bottom: 1px solid #eee; }
.stat .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.table > :not(caption) > * > * { padding: .45rem .55rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #666; letter-spacing: .03em; background: #fafafc; white-space: nowrap; }
.thumb { height: 38px; width: 38px; object-fit: cover; border-radius: 6px; }
.avatar { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.avatar-ph { width: 110px; height: 110px; border-radius: 50%; background: #e9e3f7; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; }
.pipeline .col { min-width: 210px; }
.pipeline .stage { background: #fff; border-radius: .6rem; padding: .5rem; min-height: 200px; }
.pipeline .vcard { background: #f8f7fc; border-radius: .4rem; padding: .45rem .55rem; margin-bottom: .4rem; font-size: .85rem; }
.search-filter { margin-bottom: .25rem; }
.qr svg, .qr img { max-width: 100%; height: auto; }
.kiosk-big { font-size: 1.6rem; }
.lyrics-view { background: #000; color: #fff; min-height: 100vh; font-size: 2.6rem; text-align: center; padding: 4vh 6vw; white-space: pre-wrap; line-height: 1.35; }

@media print {
  .no-print, .navbar, .sidebar, .btn, form.no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  main { padding: 0 !important; }
  a { color: #000; text-decoration: none; }
}
.cert { border: 12px double var(--brand); padding: 40px; max-width: 900px; margin: 20px auto; background: #fffdf7; text-align: center; font-family: Georgia, serif; }
.cert h1 { font-size: 2.6rem; color: var(--brand); letter-spacing: .05em; }
.cert .name { font-size: 2rem; font-style: italic; border-bottom: 1px solid #999; display: inline-block; padding: 0 30px; margin: 10px 0; }
.idcard { width: 340px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.2); background: #fff; display: inline-block; margin: 8px; vertical-align: top; page-break-inside: avoid; }
.idcard .top { background: var(--brand); color: #fff; padding: 8px 12px; font-weight: 700; }
.stat .fs-4 { font-size: 1.3rem !important; line-height: 1.25; }
