/* =====================================================================
   Atmtah Pro — Design System (hand-written, no framework, RTL/LTR safe)
   Uses CSS logical properties so Arabic RTL works out of the box.
   ===================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-text: #94a3b8;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --info: #0284c7;
  --info-soft: #f0f9ff;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, .12);
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --font: "Segoe UI", Tahoma, "Cairo", "Noto Kufi Arabic", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }

/* ---------------------------------------------------------- App layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: var(--topbar-h);
}
.sidebar-brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 30px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.nav-section { margin-bottom: 6px; }
.nav-section-title {
  padding: 12px 12px 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: .875rem;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--sidebar-hover); color: #e2e8f0; text-decoration: none; }
.nav-item.active {
  background: rgba(37, 99, 235, .18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--primary);
}
[dir="rtl"] .nav-item.active { box-shadow: inset -3px 0 0 var(--primary); }
.nav-item .icon { width: 20px; text-align: center; font-size: .95rem; flex: none; }

.main {
  flex: 1;
  margin-inline-start: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ------------------------------------------------------------- Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
}
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-family: inherit;
  font-size: .875rem;
  outline: none;
}
.topbar-search input:focus { border-color: var(--primary); background: #fff; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s;
}
.icon-btn:hover { background: var(--bg); text-decoration: none; }
.badge-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
}

.lang-switch {
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.user-menu { position: relative; }
.user-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 999px;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--bg); }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}
.user-meta { line-height: 1.15; }
.user-meta .u-name { font-weight: 600; font-size: .85rem; color: var(--text); }
.user-meta .u-role { font-size: .7rem; color: var(--muted); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 6px;
  z-index: 60;
}
.dropdown-panel a, .dropdown-panel button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 12px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .85rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.dropdown-panel a:hover, .dropdown-panel button:hover { background: var(--bg); text-decoration: none; }
.dropdown-divider { height: 1px; background: var(--border); margin: 5px 0; }

/* ----------------------------------------------------------- Content */
.content {
  flex: 1;
  padding: 22px;
  min-width: 0;
}
.content-footer {
  padding: 14px 22px;
  color: var(--muted);
  font-size: .78rem;
  border-top: 1px solid var(--border);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-header .page-title { display: flex; align-items: center; gap: 10px; }
.page-header h1 { margin: 0; }
.page-header .subtitle { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------------------------------------- Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-header {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fafcff;
}
.card-header h2, .card-header h3 { margin: 0; font-size: .98rem; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: #fafcff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.kpi-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  background: var(--primary-soft);
  flex: none;
}
.kpi-icon.green { background: var(--success-soft); }
.kpi-icon.red { background: var(--danger-soft); }
.kpi-icon.amber { background: var(--warning-soft); }
.kpi-icon.cyan { background: var(--info-soft); }
.kpi-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.kpi-label { color: var(--muted); font-size: .78rem; }
.kpi-hint { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------- Tables */
.table-responsive { overflow-x: auto; }
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.table th {
  text-align: start;
  padding: 10px 14px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f8fbff; }
.table td.amount, .table th.amount {
  text-align: end;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: embed;
  white-space: nowrap;
}
.table tfoot td {
  font-weight: 700;
  background: #f8fafc;
  border-top: 2px solid var(--border);
}
.table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table-sm th, .table-sm td { padding: 7px 10px; }
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 34px 16px !important;
}
.empty-state .empty-icon { font-size: 2rem; display: block; margin-bottom: 6px; }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  background: #fff;
  color: var(--text);
  line-height: 1.35;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-light { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 11px; font-size: .78rem; border-radius: 6px; }
.btn-lg { padding: 11px 22px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 6px 9px; }

/* -------------------------------------------------------------- Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 16px;
}
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid .span-2 { grid-column: span 1; } }

.form-group { margin-bottom: 4px; display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
}
.form-group label .req { color: var(--danger); margin-inline-start: 2px; }

.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .875rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.form-control[readonly] { background: #f8fafc; color: var(--muted); }
.form-control.is-error, .form-select.is-error { border-color: var(--danger); }
textarea.form-control { min-height: 78px; resize: vertical; }
.form-error { color: var(--danger); font-size: .76rem; }
.form-hint { color: var(--muted); font-size: .76rem; }
input[type="date"].form-control, input[type="month"].form-control { min-height: 37px; }

.form-check { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }

.money, .ltr { direction: ltr; text-align: end; unicode-bidi: embed; font-variant-numeric: tabular-nums; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.filter-bar .form-group { margin-bottom: 0; min-width: 150px; }
.filter-bar .grow { flex: 1; min-width: 220px; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* -------------------------------------------------------------- Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: #15803d; }
.badge-info    { background: var(--info-soft); color: #0369a1; }
.badge-warning { background: var(--warning-soft); color: #b45309; }
.badge-danger  { background: var(--danger-soft); color: #b91c1c; }
.badge-muted   { background: #f1f5f9; color: var(--muted); }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }

/* -------------------------------------------------------------- Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 16px;
  font-size: .87rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: var(--success-soft); color: #166534; border-color: #bbf7d0; }
.alert-danger, .alert-error { background: var(--danger-soft); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-soft); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-soft); color: #075985; border-color: #bae6fd; }
.alert .alert-close {
  margin-inline-start: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  opacity: .6;
}
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; }

/* ---------------------------------------------------------- Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
}
.pagination { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding-inline: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-item.disabled .page-link { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------- Detail pages */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 20px;
}
.detail-grid .dt-item { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.detail-grid .dt-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.detail-grid .dt-value { font-weight: 600; }

/* --------------------------------------------------------- Tree views */
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 0; padding-inline-start: 22px; border-inline-start: 1px dashed var(--border); }
.tree li { position: relative; }
.tree .tree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
}
.tree .tree-row:hover { background: #f8fafc; }
.tree .tree-code { font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; min-width: 52px; }
.tree .tree-name { flex: 1; }
.tree .group > .tree-row { font-weight: 700; background: #f8fafc; }

/* --------------------------------------------------------- Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%;
  max-width: 46px;
  background: linear-gradient(180deg, var(--primary), #60a5fa);
  border-radius: 6px 6px 0 0;
  min-height: 3px;
  position: relative;
}
.bar.alt { background: linear-gradient(180deg, var(--danger), #fca5a5); }
.bar-label { font-size: .68rem; color: var(--muted); }
.bar-value { font-size: .68rem; font-weight: 700; }

/* ---------------------------------------------------------- Misc util */
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-start { text-align: start; }
.text-bold { font-weight: 700; }
.text-sm { font-size: .8rem; }
.text-xs { font-size: .74rem; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 22px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 22px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.w-100 { width: 100%; }
.mw-100 { max-width: 100%; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--primary); }
.mono { font-family: Consolas, "Courier New", monospace; font-size: .84em; }

/* ---------------------------------------------------------- Guest/auth */
.guest-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(37, 99, 235, .18), transparent),
    radial-gradient(800px 500px at 110% 110%, rgba(124, 58, 237, .16), transparent),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}
.login-brand .brand-mark {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.login-brand h1 { margin: 0; font-size: 1.3rem; }
.login-brand p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------- Error page */
.error-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; opacity: .25; }

/* ---------------------------------------------------------- Print */
@media print {
  .sidebar, .topbar, .page-actions, .pagination-wrap, .filter-bar, .btn, .content-footer { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  .card { border: none !important; box-shadow: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  body.sidebar-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 45;
  }
  .main { margin-inline-start: 0; }
  .sidebar-toggle { display: inline-flex; }
  .user-meta { display: none; }
}
@media (max-width: 560px) {
  .content { padding: 14px; }
  .topbar { padding-inline: 12px; gap: 8px; }
  .topbar-search { display: none; }
  .page-header h1 { font-size: 1.2rem; }
}

/* ------------------------------------------------ Inline new-account panel */
.quick-account {
  margin-top: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.quick-account > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--primary-dark);
  list-style: none;
}
.quick-account > summary::-webkit-details-marker { display: none; }
.quick-account[open] > summary { border-bottom: 1px dashed var(--border); }
.quick-account-body { padding: 14px; }
.quick-account-actions { margin-top: 10px; }
.quick-account-msg { font-size: .82rem; margin-top: 8px; }
.quick-account-msg.ok { color: #15803d; }
.quick-account-msg.error { color: #b91c1c; }

/* --------------------------------------- Company branding (reports/vouchers) */
.report-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.report-logo { max-height: 64px; max-width: 180px; object-fit: contain; }
.report-brand-name { font-size: 1.05rem; font-weight: 800; }
.report-brand-sub { font-size: .82rem; color: var(--muted); }

/* --------------------------------------- Trial balance running-balance mode */
.tb-block { margin-top: 18px; }
.tb-block-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 700;
}
.tb-block .table { margin-top: 8px; }

@media print {
  .report-brand { border: none; padding: 0 0 8px; }
  .report-brand-name { font-size: 1rem; }
}
