:root {
  --app-primary: #1f4e78;
  --app-primary-dark: #163a5a;
  --app-accent: #c8962e;
  --app-bg: #f4f6f9;
}
body { background: var(--app-bg); }
.app-nav { background: #1f2329; border-bottom: 3px solid var(--app-accent); }
.app-nav .nav-link.active { color: #fff; border-bottom: 2px solid var(--app-accent); }
.topbar-actions { display: flex; gap: .35rem; align-items: center; }
.topbar-actions .btn { white-space: nowrap; }
@media print { .app-nav, footer { display: none !important; } }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--app-accent); color: #fff; font-weight: 700; font-size: .9rem;
}
.btn-primary { --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary-dark); --bs-btn-hover-border-color: var(--app-primary-dark); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.page-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.stat { border-radius: .6rem; padding: .9rem 1rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.07); height: 100%; }
.stat .n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat .l { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.stat.good { border-left: 4px solid #198754; }
.stat.fair { border-left: 4px solid #0dcaf0; }
.stat.repair { border-left: 4px solid #ffc107; }
.stat.unusable { border-left: 4px solid #dc3545; }
.stat.total { border-left: 4px solid var(--app-primary); }
.c-good { color: #198754; } .c-fair { color: #0a8ca5; } .c-repair { color: #b78700; } .c-unusable { color: #dc3545; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #555; white-space: nowrap; }
.qty-input { width: 4.2rem; text-align: center; padding: .25rem; }
.qty-row.has-value { background: #f0f7ff; }
.cat-head { background: #e9eef4; font-weight: 600; color: var(--app-primary); }
.room-card { transition: transform .1s; }
.room-card:hover { transform: translateY(-2px); }
.condition-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #e9ecef; }
.condition-bar span { display: block; }
.sticky-save { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #dee2e6; padding: .75rem; z-index: 10; }
@media (max-width: 576px) {
  .qty-input { width: 3.1rem; font-size: .9rem; }
  .bulk-table td, .bulk-table th { padding: .3rem .2rem; }
  .bulk-table .item-name { font-size: .88rem; }
}
