/* Kassenbuch je Filiale */
.cashbook-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px 16px; margin:0 0 16px; }
.cashbook-toolbar label { display:grid; gap:4px; font-size:12px; font-weight:600; color:#4a4152; }
.cashbook-toolbar select, .cashbook-toolbar input { min-height:38px; padding:6px 10px; border:1px solid #d9d0de; border-radius:8px; background:#fff; font:inherit; }
.cashbook-toolbar .cashbook-search { flex:1 1 220px; }
.cashbook-toolbar .cashbook-search input { width:100%; }
.cashbook-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin-bottom:14px; }
.cashbook-tile { display:grid; gap:2px; padding:14px 16px; border:1px solid #e6dfea; border-radius:14px; background:#fff; box-shadow:0 6px 18px rgba(60,32,74,.05); min-width:0; }
.cashbook-tile small { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#7a7086; }
.cashbook-tile strong { font-size:22px; line-height:1.15; color:#2b2432; overflow-wrap:anywhere; }
.cashbook-tile span { font-size:12px; color:#7a7086; }
.cashbook-tile.accent { background:linear-gradient(135deg,#643182,#7a45a0); border-color:transparent; }
.cashbook-tile.accent small, .cashbook-tile.accent span { color:rgba(255,255,255,.8); }
.cashbook-tile.accent strong { color:#fff; }
.cashbook-tile.income strong { color:#246b48; }
.cashbook-tile.expense strong { color:#9a2c22; }
.cashbook-tile.warn { border-color:#f0dcb5; background:#fdf6e8; }
.cashbook-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px; }
.cashbook-actions .button { display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.cashbook-actions-spacer { flex:1 1 auto; }
.cashbook-verify { margin:0 0 14px; padding:12px 14px; border-radius:10px; border:1px solid #d9d0de; background:#f8f4fa; font-size:13.5px; }
.cashbook-verify.ok { border-color:#bfe0cd; background:#e6f3ec; color:#1f5a3c; }
.cashbook-verify.bad { border-color:#f1c2bd; background:#fbe9e7; color:#7d2019; }
.cashbook-verify ul { margin:6px 0 0 18px; }
.cashbook-card { margin-bottom:14px; padding:0; overflow:hidden; }
.cashbook-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid #eee7f1; }
.cashbook-card > header h2 { margin:0; font-size:16px; }
.cashbook-card > header span { font-size:12.5px; color:#7a7086; }
.cashbook-card > .muted, .cashbook-card .cashbook-empty { padding:18px; }
.cashbook-empty { display:grid; gap:4px; color:#6f667a; }
.cashbook-empty strong { color:#4a4152; }
.cashbook-table { width:100%; border-collapse:collapse; font-size:13px; }
.cashbook-table th { padding:10px 12px; text-align:left; font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:#7a7086; border-bottom:1px solid #eee7f1; background:#faf8fb; }
.cashbook-table td { padding:10px 12px; border-bottom:1px solid #f1ecf3; vertical-align:top; }
.cashbook-table .num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cashbook-table td.income { color:#246b48; }
.cashbook-table td.expense { color:#9a2c22; }
.cashbook-table td.ok { color:#246b48; }
.cashbook-table td.diff { color:#9a2c22; font-weight:700; }
.cashbook-table small { display:block; margin-top:3px; color:#7a7086; font-size:11.5px; overflow-wrap:anywhere; }
.cashbook-table .cashbook-text { overflow-wrap:anywhere; }
.cashbook-table tr.is-reversed .cashbook-text { text-decoration:line-through; color:#7a7086; }
.cashbook-table tr.is-reversed td.income, .cashbook-table tr.is-reversed td.expense { color:#9b93a3; text-decoration:line-through; }
.cashbook-table tr.is-storno { background:#fbf8fc; }
.cashbook-table .row-actions { text-align:right; white-space:nowrap; }
.cashbook-flags { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.cashbook-flags .flag { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-style:normal; font-weight:700; background:#f1e9f5; color:#4e2555; }
.cashbook-flags .flag.reversed { background:#fbe9e7; color:#9a2c22; }
.cashbook-flags .flag.late { background:#fdf6e8; color:#6b4a12; }
.cashbook-flags .flag.diff { background:#fdf6e8; color:#6b4a12; }
.cashbook-hint { margin:0 0 20px; padding:14px 18px; border-radius:14px; border:1px solid #e6dfea; background:#f8f4fa; font-size:13px; color:#4a4152; }
.cashbook-hint strong { display:block; margin-bottom:6px; color:#4e2555; }
.cashbook-hint ul { margin:0; padding-left:18px; display:grid; gap:4px; }
.cashbook-form .field.span-2 { grid-column:span 2; }
.cashbook-form-hint { margin:10px 0 0; font-size:12.5px; color:#6f667a; }
.cashbook-count { margin:12px 0; }
.cashbook-count summary { cursor:pointer; font-weight:600; color:#4e2555; }
.cashbook-count table { margin-top:8px; }
.cashbook-count td input { width:90px; min-height:34px; padding:4px 8px; border:1px solid #d9d0de; border-radius:6px; font:inherit; }
.cashbook-count tfoot td { font-weight:700; background:#faf8fb; }
.cashbook-close-summary { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; align-items:baseline; margin:12px 0; padding:12px 14px; border-radius:10px; background:#f8f4fa; border:1px solid #e6dfea; }
.cashbook-close-summary span { font-size:12.5px; color:#6f667a; }
.cashbook-close-summary strong { font-size:15px; font-variant-numeric:tabular-nums; }
.cashbook-close-summary strong.diff { color:#9a2c22; }
@media (max-width:700px) { .cashbook-form .form-grid { grid-template-columns:1fr; } .cashbook-form .field.span-2 { grid-column:auto; } .cashbook-card > header { padding:12px 14px; } }
.cashbook-card.cashbook-none { padding:18px; }
.cashbook-card.cashbook-none h2 { margin:0 0 6px; font-size:16px; }
