/* UI-4: reports, tax export, fiscal years, company settings, members, roles, subscription. */

/* ---------- report toolbar ---------- */
.ui4-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.ui4-field { min-width: 170px; flex: 0 1 200px; }
.ui4-field.wide { flex: 1 1 260px; min-width: 220px; }
.ui4-check { padding-bottom: .45rem; }
.ui4-actions { display: flex; gap: .5rem; margin-inline-start: auto; }
@media (max-width: 575.98px) {
    .ui4-field, .ui4-field.wide { flex: 1 1 100%; min-width: 0; }
    .ui4-actions { width: 100%; margin-inline-start: 0; }
    .ui4-actions .btn-primary { flex: 1; }
}

.ui4-print-head .company { font-size: 15px; font-weight: 700; }
.ui4-print-head .title { font-size: 14px; margin-top: 2px; }
.ui4-print-head .period { font-size: 12px; color: #444; margin-top: 2px; }

/* ---------- reports hub ---------- */
.ui4-hub-card { display: flex; gap: .9rem; align-items: flex-start; height: 100%; padding: 1.1rem 1.2rem; background: var(--mz-surface); border: 1px solid var(--mz-border); border-radius: var(--mz-radius); color: var(--mz-text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ui4-hub-card:hover { transform: translateY(-2px); box-shadow: var(--mz-shadow); border-color: var(--mz-teal-100); color: var(--mz-text); }
.ui4-hub-card .ico, .ui4-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mz-teal-50); color: var(--mz-teal-600); font-size: 1.25rem; }
.ui4-hub-card h2 { font-size: 1rem; margin: 0 0 .25rem; color: var(--mz-navy-900); }
.ui4-hub-card p { margin: 0; color: var(--mz-muted); font-size: .88rem; line-height: 1.8; }
@media (prefers-reduced-motion: reduce) { .ui4-hub-card, .ui4-hub-card:hover { transition: none; transform: none; } }

/* ---------- statements (P&L, balance sheet, VAT) ---------- */
.ui4-statement { width: 100%; font-size: .93rem; }
.ui4-statement td { padding: .5rem .75rem; border-bottom: 1px solid var(--mz-border); }
.ui4-statement td.amount { text-align: left; direction: ltr; font-feature-settings: "tnum" 1; white-space: nowrap; width: 1%; }
.ui4-statement tr.head td { background: var(--mz-surface-2); font-weight: 700; color: var(--mz-navy-800); }
.ui4-statement tr.sub td:first-child { padding-inline-start: 1.75rem; color: var(--mz-muted); }
.ui4-statement tr.total td { font-weight: 700; border-top: 2px solid var(--mz-border-strong); }
.ui4-statement tr.grand td { font-weight: 700; font-size: 1.02rem; background: var(--mz-teal-50); color: var(--mz-navy-900); }
.ui4-statement .code { color: var(--mz-subtle); font-size: .8rem; margin-inline-end: .4rem; }

.ui4-level-row td:first-child { font-weight: 500; }
.ui4-running { color: var(--mz-muted); }

/* ---------- permission matrix ---------- */
.ui4-matrix th, .ui4-matrix td { text-align: center; }
.ui4-matrix th:first-child, .ui4-matrix td:first-child { text-align: right; }
.ui4-matrix .form-check-input { float: none; margin: 0; width: 1.15em; height: 1.15em; }
.ui4-matrix .col-toggle { border: 0; background: none; color: var(--mz-muted); font-size: .82rem; font-weight: 500; padding: 0; }
.ui4-matrix .col-toggle:hover { color: var(--mz-teal-600); }
.ui4-role-list .list-group-item.active { background: var(--mz-teal-600); border-color: var(--mz-teal-600); }

/* ---------- subscription ---------- */
.ui4-plans .mz-plan.current { border-color: var(--mz-navy-800); }
.ui4-days { font-size: 2.2rem; font-weight: 700; color: var(--mz-navy-900); line-height: 1.1; }
.ui4-meter { height: 8px; border-radius: 999px; background: var(--mz-surface-2); overflow: hidden; }
.ui4-meter > span { display: block; height: 100%; background: var(--mz-teal-600); border-radius: 999px; }
.ui4-meter.warn > span { background: var(--mz-warning); }

/* ---------- tax export ---------- */
.ui4-columns { display: flex; flex-wrap: wrap; gap: .4rem; counter-reset: col; padding: 0; margin: 0; list-style: none; }
.ui4-columns li { counter-increment: col; background: var(--mz-surface-2); border: 1px solid var(--mz-border); border-radius: 8px; padding: .3rem .65rem; font-size: .85rem; }

.ui4-danger-box { border: 1px solid #f5c2c7; background: #fff7f7; border-radius: var(--mz-radius-sm); padding: .9rem 1rem; }
