:root {
    --app-green: #0f5c4a;
    --app-green-2: #12735c;
    --app-gold: #c9a227;
    --app-bg: #f5f6f3;
}

body { background: var(--app-bg); }

.app-nav { background: linear-gradient(90deg, var(--app-green), var(--app-green-2)); }
.app-nav .navbar-brand, .app-nav .nav-link { color: rgba(255,255,255,.85); }
.app-nav .nav-link:hover, .app-nav .nav-link.active, .app-nav .navbar-brand { color: #fff; }
.app-nav .nav-link.active { border-bottom: 2px solid var(--app-gold); }
.app-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.app-nav .navbar-toggler-icon { filter: invert(1); }

.page-title { font-weight: 600; margin: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.5rem 0 1rem; }

.card { border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 8px rgba(0,0,0,.04); }
.card-header { background: #fff; font-weight: 600; }

.stat .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.stat .value { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .85rem; color: #6c757d; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6c757d; font-weight: 600; }
.table tfoot td { font-weight: 600; border-top: 2px solid #dee2e6; }
.neg { color: #b02a37; }

.progress.thin { height: 6px; }

.owner-row { background: #eef4f1; font-weight: 600; }
.chip { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: #e9ecef; color: #495057; }
.chip-self { background: #dbe8ff; color: #1d4ed8; }
.chip-friend { background: #d9f2e6; color: #0f5c4a; }
.chip-wife, .chip-mother, .chip-family { background: #fbe3e8; color: #9d174d; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
              background: linear-gradient(135deg, var(--app-green), #0b3d32); }
.login-card { width: 100%; max-width: 380px; }

@media print {
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    a { text-decoration: none; color: inherit; }
}

/* reports */
.report-card { transition: transform .1s ease, box-shadow .1s ease; }
.report-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.report-card .icon { width: 2.25rem; height: 2.25rem; border-radius: .5rem; display: inline-flex;
                     align-items: center; justify-content: center; background: #e6f1ec; color: var(--app-green); }
.hbar { height: 8px; border-radius: 4px; background: #e9ecef; overflow: hidden; }
.hbar > span { display: block; height: 100%; background: var(--app-green-2); }
.hbar.out > span { background: #c9a227; }
.pos { color: #146c43; }
.result-pay { background: #fff4e5; }
.result-advance { background: #e7f5ee; }
.flag { color: #b5832a; }
