/* v2-modules (design-v2 5.3-5.6): multi-currency, fixed assets, projects, budgets. */

/* ---- exchange rates strip + quick add ---- */
.fx-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-block-end: 16px; }
.fx-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; text-align: start; cursor: pointer; font: inherit; color: inherit; }
.fx-card:hover { border-color: var(--text-3); }
.fx-card.is-active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.fx-card:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.fx-card-head { display: flex; gap: 8px; align-items: baseline; width: 100%; }
.fx-card-name { font-size: var(--fs-12); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-card-rate { font-size: var(--fs-14); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.fx-card-date { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); color: var(--text-3); }
.fx-card-date.is-warn { color: var(--warning); }
.fx-card-date.is-neg { color: var(--negative); }
.fx-card-date .ic { width: 14px; height: 14px; }
.fx-quick { margin-block-end: 16px; }
.fx-quick-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.fx-quick-row .field { margin: 0; }
.fx-quick-btn { padding-block-end: 2px; }
.fx-change { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.fx-change .ic { width: 14px; height: 14px; }

/* ---- fixed assets ---- */
.fa-life { width: 88px; text-align: end; }
.dispose-calc { margin-block: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.dispose-calc .ic { width: 14px; height: 14px; vertical-align: -2px; }
.dt tr.is-current th, .dt tr.is-current td { background: var(--primary-soft); }
.dt tr.is-muted th, .dt tr.is-muted td { color: var(--text-3); }

/* ---- projects / reports-like tables ---- */
.dt.report tr.is-section th { background: var(--surface-2); font-size: var(--fs-12); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
.dt.report tr.is-total th, .dt.report tr.is-total td { font-weight: var(--fw-semibold); border-block-start: 1px solid var(--line-strong); }
.dt.report tr.is-grand th, .dt.report tr.is-grand td { font-weight: var(--fw-bold); }

/* ---- budgets ---- */
.budget-small-hint { display: none; font-size: var(--fs-12); color: var(--text-3); }
@media (max-width: 860px) { .budget-small-hint { display: block; } }
.budget-grid abbr { text-decoration: none; }
.budget-grid .gcell-ro { display: block; text-align: end; padding-inline: 6px; }
.budget-grid .col-actions { position: static; }

@media (max-width: 640px) {
  .fx-quick-row { flex-direction: column; align-items: stretch; }
  .fx-quick-row .rate-input { width: 100%; }
}

@media print {
  .fx-quick, .budget-small-hint { display: none !important; }
  .fx-strip { grid-template-columns: repeat(4, 1fr); }
}
