/* CHEFO-Mthunzi Funeral Cover — brand layer over AdminLTE.
   Deep maroon for dignity, heritage gold for accents. */
:root {
  --chefo-maroon: #6b1d2a;
  --chefo-maroon-dark: #4e1520;
  --chefo-maroon-soft: #f6ecee;
  --chefo-gold: #c9a227;
  --chefo-gold-soft: #fbf5e3;
}

body { font-family: 'Source Sans Pro', -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* Top bar & brand */
.navbar-chefo { background: var(--chefo-maroon) !important; border-bottom: 3px solid var(--chefo-gold) !important; }
.navbar-chefo .nav-link, .navbar-chefo .navbar-brand { color: #fff !important; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--chefo-gold); color: var(--chefo-maroon-dark); font-weight: 700; font-size: .95rem;
}
.headline-pill {
  background: rgba(255,255,255,.14); border-radius: 20px; padding: 5px 14px; margin-right: 8px;
  display: flex; align-items: center; color: #fff !important; text-decoration: none !important; white-space: nowrap;
}
.headline-pill:hover { background: rgba(255,255,255,.24); }
.headline-pill .lbl { font-size: .8rem; opacity: .85; margin-right: 6px; }
.headline-pill i { color: var(--chefo-gold); margin-right: 6px; }

/* Sidebar */
.main-sidebar { background: #2a1116 !important; }
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--chefo-maroon) !important; color: #fff; box-shadow: inset 3px 0 0 var(--chefo-gold);
}
.nav-sidebar .nav-header { color: var(--chefo-gold) !important; opacity: .75; font-size: .72rem; letter-spacing: .08em; }
.brand-link { border-bottom: 1px solid rgba(201,162,39,.35) !important; }
.user-panel-role { font-size: .75rem; color: var(--chefo-gold); display: block; line-height: 1.1; }

/* Primary colour → maroon */
.btn-primary { background: var(--chefo-maroon); border-color: var(--chefo-maroon); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active { background: var(--chefo-maroon-dark) !important; border-color: var(--chefo-maroon-dark) !important; }
.btn-outline-primary { color: var(--chefo-maroon); border-color: var(--chefo-maroon); }
.btn-outline-primary:hover { background: var(--chefo-maroon); border-color: var(--chefo-maroon); color: #fff; }
.card-primary.card-outline { border-top-color: var(--chefo-maroon); }
.card-primary:not(.card-outline) > .card-header { background: var(--chefo-maroon); }
.bg-primary, .badge-primary { background-color: var(--chefo-maroon) !important; }
.text-primary { color: var(--chefo-maroon) !important; }
a { color: var(--chefo-maroon); }
a:hover { color: var(--chefo-maroon-dark); }
.page-item.active .page-link { background: var(--chefo-maroon); border-color: var(--chefo-maroon); }
.page-link { color: var(--chefo-maroon); }
.nav-pills .nav-link.active { background: var(--chefo-maroon); }
.nav-tabs .nav-link.active { border-top: 3px solid var(--chefo-gold); font-weight: 600; }
.form-control:focus { border-color: var(--chefo-gold); box-shadow: 0 0 0 .15rem rgba(201,162,39,.25); }
.custom-control-input:checked ~ .custom-control-label::before { background: var(--chefo-maroon); border-color: var(--chefo-maroon); }
.bg-gold { background: var(--chefo-gold) !important; color: #3a2a00 !important; }
.bg-maroon-soft { background: var(--chefo-maroon-soft) !important; }
.bg-gold-soft { background: var(--chefo-gold-soft) !important; }

/* KPI boxes */
.info-box { min-height: 88px; }
.info-box .info-box-number { font-size: 1.45rem; font-weight: 700; }
.info-box .info-box-text { text-transform: none; font-weight: 600; color: #555; }
.info-box small.sub { color: #888; display: block; }
a.info-box-link { color: inherit; text-decoration: none; }
a.info-box-link:hover .info-box { box-shadow: 0 0 0 2px var(--chefo-gold); }

/* Demo ribbon */
.demo-ribbon {
  background: repeating-linear-gradient(45deg, var(--chefo-gold-soft), var(--chefo-gold-soft) 12px, #fff 12px, #fff 24px);
  border: 1px dashed var(--chefo-gold); color: #6b5200; font-size: .82rem; padding: 4px 12px; border-radius: 4px;
}

/* Tables */
.table td, .table th { vertical-align: middle; }
.table-sm td, .table-sm th { padding: .4rem .5rem; }
tr.voided td { text-decoration: line-through; color: #999; }
tr.voided td.keep { text-decoration: none; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Paper-form feel for registration */
.form-section-title {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  color: var(--chefo-maroon); border-bottom: 2px solid var(--chefo-gold); padding-bottom: 4px; margin: 8px 0 14px;
}
.office-use { background: var(--chefo-gold-soft); border-left: 4px solid var(--chefo-gold); }

/* Claim workflow stepper */
.claim-steps { display: flex; margin: 0; padding: 0; list-style: none; }
.claim-steps li { flex: 1; text-align: center; position: relative; font-size: .85rem; color: #aaa; }
.claim-steps li .dot {
  width: 34px; height: 34px; line-height: 34px; border-radius: 50%; margin: 0 auto 6px;
  background: #e9ecef; color: #999; font-weight: 700;
}
.claim-steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 17px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 3px; background: #e9ecef;
}
.claim-steps li.done { color: #333; }
.claim-steps li.done .dot { background: var(--chefo-maroon); color: #fff; }
.claim-steps li.done:not(:last-child)::after { background: var(--chefo-maroon); }
.claim-steps li.current .dot { background: var(--chefo-gold); color: #3a2a00; box-shadow: 0 0 0 4px rgba(201,162,39,.25); }
.claim-steps li.declined .dot { background: #dc3545; color: #fff; }

/* Login */
.login-side {
  background: linear-gradient(160deg, var(--chefo-maroon-dark) 0%, var(--chefo-maroon) 60%, #8a3140 100%);
  color: #fff;
}
.login-side .gold { color: var(--chefo-gold); }
.demo-accounts td { padding: .25rem .4rem; font-size: .85rem; }
.demo-accounts tr { cursor: pointer; }
.demo-accounts tr:hover { background: var(--chefo-gold-soft); }

/* Print: statements and reports print without the chrome */
@media print {
  .main-sidebar, .main-header, .main-footer, .no-print, .dataTables_filter, .dataTables_length,
  .dataTables_paginate, .dataTables_info, .dt-buttons, .card-tools, .btn { display: none !important; }
  .content-wrapper { margin-left: 0 !important; padding-top: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd; }
  .print-only { display: block !important; }
  body { font-size: 12px; }
}
.print-only { display: none; }

/* Login fits one screen: compact column, no page scroll on laptop heights */
.login-compact { width: 380px; max-width: 100%; }
.login-compact .card-body { padding: 1.1rem 1.25rem; }
.demo-account { line-height: 1.2; font-size: .82rem; }
.demo-account:hover { background: var(--chefo-gold-soft); border-color: var(--chefo-gold) !important; }
.login-side .lead { font-size: 1.05rem; }
@media (max-height: 700px) {
  .login-side ul { display: none !important; }
}
