/* Caledonia Books — extras on top of Direct brand.css */

.books-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  color: #fff !important;
}
.books-brand img { height: 36px; width: auto; }
.books-brand .brand-mark strong { color: #fff; font-size: 0.95rem; letter-spacing: 0.01em; }
.books-brand .brand-mark span { color: var(--cd-gold); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }

.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar-filters { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.period-form label { flex-direction: row; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.period-form input[type="month"] { padding: 0.25rem 0.4rem; }

.unit-switch, .filter-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--cd-line-strong);
  color: var(--cd-ink-soft); font-size: 0.82rem; font-weight: 600;
  text-decoration: none !important; background: #fff;
}
.chip:hover { border-color: var(--cd-primary); color: var(--cd-navy); }
.chip.on { background: var(--cd-navy); color: #fff !important; border-color: var(--cd-navy); }

.amt { font-variant-numeric: tabular-nums; }
.amt-neg { color: var(--cd-danger); }
.amt-pos { color: var(--cd-navy); }
.amt-zero { color: var(--cd-muted); }

.muted, .note { color: var(--cd-muted); font-size: 0.88rem; }
tr.total td { font-weight: 700; border-top: 1px solid var(--cd-line-strong); }
.gross, .net { font-weight: 700; color: var(--cd-navy); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pl-col h2 { font-size: 1.05rem; }

.cat-form { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.cat-form select { min-width: 8rem; max-width: 12rem; }
.inline { display: inline-block; margin: 0; }

label.check { flex-direction: row; align-items: center; font-weight: 500; }
label.check input { width: auto; }

.filter-bar { margin: 0 0 1rem; }

@media (max-width: 800px) {
  .pl-grid { grid-template-columns: 1fr; }
}
