/* --- dialogs, notifications -------------------------------------------------- */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); color: var(--ink); width: min(640px, 94vw); padding: 0; box-shadow: var(--shadow-3); }
dialog::backdrop { background: rgb(0 0 0 / .35); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 18px; }
.dlg-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.dlg-body p { margin: var(--s1) 0 0; font-size: 14px; }
.import-item { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; }
.import-result:empty { display: none; }
.import-result { display: grid; gap: var(--s2); font-size: 14px; }
.setting { display: grid; gap: var(--s2); }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; }
.form-error { color: var(--bad); font-size: 14px; margin: 0; }
.report-btn { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: var(--r-sm); white-space: nowrap; }
.report-btn:hover { color: var(--bad); background: var(--bad-soft); }
.reported { font-size: 12px; color: var(--warn); }
.reported.status-fixed { color: var(--ok); }
.reported.status-rejected { color: var(--muted); }
.tab-tools { display: flex; justify-content: flex-end; margin-bottom: var(--s2); }
.reports-page { max-width: 1400px; margin: 0 auto; padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0; }
.page-head p { margin: var(--s1) 0 0; font-size: 14px; }
.admin-filters { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.admin-filters label { display: flex; gap: var(--s2); align-items: center; font-size: 14px; }
.admin-filters select { width: auto; }
.admin-table { max-height: none; min-height: 120px; }
.admin-table td { font-size: 14px; }
.admin-table .row-actions { display: flex; gap: var(--s1); flex-wrap: wrap; margin-top: var(--s1); }
.admin-table .row-actions button { font-size: 12px; min-height: 28px; padding: 0 var(--s2); }
.progress { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .5s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s3); }
.stats div { display: grid; gap: 2px; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.setting .row { display: flex; gap: var(--s2); }
.toasts { position: fixed; z-index: 60; right: var(--s5); bottom: var(--s5); display: grid; gap: var(--s2); width: min(380px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 20px 1fr auto; gap: var(--s2); align-items: start; padding: var(--s3) var(--s3) var(--s3) var(--s4);
  border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow-3); font-size: 14px; }
.toast.warn { border-left-color: var(--warn); }
.toast.error { border-left-color: var(--bad); }
.toast .ic { font-weight: 700; }
.toast.error .ic { color: var(--bad); }
.toast.warn .ic { color: var(--warn); }
.toast.success .ic, .toast.info .ic { color: var(--accent); }

/* "Finanse do uzupełnienia" */
dialog.dlg-wide { width: min(980px, 96vw); }
.fin-todo-upload { display: flex; gap: var(--s3); align-items: center; justify-content: center; flex-wrap: wrap;
  padding: var(--s4); border: 2px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.fin-todo-upload.over { border-color: var(--accent); background: var(--accent-soft, rgb(0 128 96 / .08)); }
.fin-todo td.mono { font-family: var(--mono); white-space: nowrap; }
.fin-todo tr.fin-todo-seen td { opacity: .6; }
.fin-todo .sub { display: block; color: var(--muted); font-size: 12px; }
