.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions input { width: 220px; }
.primary:disabled { opacity: .6; cursor: wait; }
#notice { position: fixed; right: 24px; top: 18px; z-index: 10; padding: 0; border-radius: 9px; color: white; box-shadow: 0 8px 30px #0002; transition: .2s; }
#notice.ok, #notice.error { padding: 11px 16px; background: #218739; }
#notice.error { background: var(--red); }
tr[hidden] { display: none; }
.row-actions { display: flex; gap: 6px; white-space: nowrap; }
.row-actions button { border: 1px solid #b9c8d8; background: white; color: var(--blue); padding: 6px 9px; border-radius: 7px; cursor: pointer; }
.row-actions button:hover { background: #eef5ff; }
.row-actions .danger { color: var(--red); border-color: #e5b9b9; }
.row-actions .danger:hover { background: #fff0f0; }
.row-actions .view { color: #14733c; border-color: #a9d6ba; }
.detail-dialog { width: min(1050px, 95vw); max-height: 92vh; }
.detail-shell { padding: 24px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 12px 0 20px; color: var(--muted); }
.detail-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.detail-cards > div { border: 1px solid var(--line); border-radius: 10px; padding: 15px; background: #f8fafc; }
.detail-cards span { color: var(--muted); }
.detail-cards strong { display: block; font-size: 21px; margin-top: 7px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.detail-grid section { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.detail-shell h3 { font-size: 15px; margin: 22px 0 10px; }
.detail-grid h3 { margin-top: 0; }
.category-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.category-row small { color: var(--muted); }
.budget-bar { height: 10px; background: #e6edf5; border-radius: 99px; overflow: hidden; }
.budget-bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.detail-dialog .panel { margin-top: 0; }
.detail-empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 9px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hidden-cost { border-color: #e8c98e; background: #fffaf0; }
.hidden-cost strong { color: #9a5b00; }
.hidden-cost small { display: block; margin-top: 7px; color: var(--muted); }
.company-total { border-color: #9bbce7; background: #f3f8ff; }
.company-total strong { color: #124f9c; }
.company-total small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.4; }
.export-btn { border: 1px solid #8bb39a; background: #f2fbf5; color: #176538; padding: 10px 13px; border-radius: 9px; font-weight: bold; cursor: pointer; white-space: nowrap; }
.income-card { border-color: #a9d6ba; background: #f2fbf5; }
.income-card strong { color: #176538; }
.net-card { border-color: #b9c9dd; }
@media (max-width: 800px) {
  header { align-items: flex-start; gap: 12px; flex-direction: column; }
  .header-actions { width: 100%; }
  .header-actions input { min-width: 0; flex: 1; }
  .detail-cards, .detail-grid { grid-template-columns: 1fr; }
  .detail-shell { padding: 17px; }
}
