/* ===== Project details page v5 (2026-11-25): info strip, note, category chips, filters ===== */
.pd-info { margin-bottom: 1rem; }
.pd-info:empty { display: none; }
.pd-info-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.pd-chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.pd-chip { display: inline-flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .8rem; border-radius: 999px; background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0); font-size: .83rem; font-weight: 600; color: var(--text-main, #334155); text-decoration: none; white-space: nowrap; }
.pd-chip i { color: #1b5a94; font-size: .78rem; }
a.pd-chip:hover { border-color: #93b8dc; color: #0a2e50; }
.pd-chip--id { color: #64748b; font-variant-numeric: tabular-nums; }
.pd-note { flex: 1 1 280px; min-height: 34px; display: flex; align-items: center; gap: .55rem; padding: .3rem .4rem .3rem .8rem; border-radius: 12px;
  background: var(--card-bg, #fff); border: 1px dashed var(--border-color, #cbd5e1); font-size: .83rem; }
.pd-note > i { color: #94a3b8; }
.pd-note.has-note { background: #fffbeb; border: 1px solid #fde68a; }
.pd-note.has-note > i { color: #d97706; }
.pd-note-text { flex: 1; white-space: pre-wrap; line-height: 1.6; color: var(--text-main, #334155); }
.pd-note-actions { display: flex; gap: .25rem; }
.pd-note-actions .bt-icon-btn { width: 30px; height: 30px; }
.pd-rates { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; font-size: .8rem; }
.pd-rates-title { color: #64748b; font-weight: 700; }
.pd-rate { display: inline-flex; gap: .35rem; align-items: center; padding: .2rem .6rem; border-radius: 999px; background: #eaf1f8; color: #0a2e50; }
.pd-rate em { font-style: normal; color: #15803d; font-weight: 700; }

/* category chips */
#budget-items-list.pd-cat-list { display: flex; flex-wrap: nowrap; gap: .55rem; overflow-x: auto; margin: 0 0 1rem !important; padding: 2px 2px 8px; scrollbar-width: thin; }
#budget-items-list.pd-cat-list > * { width: auto; max-width: none; padding: 0; margin: 0; }
.pd-cat { flex: 0 0 auto; min-width: 178px; display: flex; gap: .6rem; align-items: flex-start; text-align: right; border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--card-bg, #fff); border-radius: 14px; padding: .65rem .75rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; color: inherit; }
.pd-cat:hover { border-color: #93b8dc; }
.pd-cat.active { border-color: #0f4170; box-shadow: 0 0 0 3px rgba(27, 90, 148, .14); background: #f5f7ff; }
.pd-cat-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: .9rem; background: #f1f5f9; color: #475569; }
.pd-cat--all .pd-cat-ic { background: #0f4170; color: #fff; }
.pd-cat-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.pd-cat-name { font-weight: 800; font-size: .84rem; color: var(--text-main, #0f172a); white-space: nowrap; }
.pd-cat-name small { font-weight: 700; color: #94a3b8; margin-inline-start: .25rem; }
.pd-cat-val { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--text-main, #0f172a); white-space: nowrap; }
.pd-cat-sub { font-size: .72rem; color: #64748b; white-space: nowrap; }
.pd-cat-sub .is-over { color: #dc2626; font-weight: 700; }
.pd-cat-bar { display: flex; height: 5px; border-radius: 99px; background: #eef2f6; overflow: hidden; margin-top: .4rem; }
.pd-cat-bar i { display: block; height: 100%; }
.pd-cat-bar .is-found { background: #1b5a94; }
.pd-cat-bar .is-fin { background: #f59e0b; }
.pd-cat-bar .is-ok { background: #16a34a; }
.pd-cat-bar .is-warn { background: #f59e0b; }
.pd-cat-bar .is-over { background: #dc2626; }
.pd-cat.is-over { border-color: #fecaca; }

/* expense filters inside the project: one compact row */
@media (min-width: 992px) {
  .pd-filters { display: flex; flex-wrap: nowrap; gap: .5rem; margin-left: 0; margin-right: 0; }
  .pd-filters > [class*="col-"] { flex: 1 1 0; width: auto; max-width: none; padding: 0; }
  .pd-filters > [class*="col-"]:first-child { flex: 2 1 0; }
}

/* expenses page: date range */
.bt-daterange { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .35rem 0 .7rem; border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 11px; background: var(--card-bg, #fff); flex: 0 1 auto; }
.bt-daterange.is-set { border-color: #93b8dc; background: #f5f7ff; }
.bt-daterange > i { color: #94a3b8; }
.bt-daterange label { font-size: .78rem; font-weight: 700; color: #64748b; margin: 0; }
.bt-daterange .form-control { height: 32px; min-height: 0; border: 0; background: transparent; padding: 0 .3rem; width: 140px; font-size: .85rem; box-shadow: none; }
.bt-daterange-clear { border: 0; background: #dbe7f3; color: #0a2e50; width: 26px; height: 26px; border-radius: 8px; font-size: .75rem; }
@media (max-width: 767.98px) {
  .bt-daterange { flex: 1 1 100%; }
  .bt-daterange .form-control { flex: 1; width: auto; min-width: 0; }
}

[data-theme="dark"] .pd-note.has-note { background: #3b2f0b; border-color: #92400e; }
[data-theme="dark"] .pd-cat.active, [data-theme="dark"] .bt-daterange.is-set { background: #1e1b4b; }
[data-theme="dark"] .pd-cat-bar { background: #334155; }
