/* Persian typography overrides: enforce YekanBakh and improve readability */

html, body {
  font-family: 'YekanBakh FaNum', 'YekanBakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif !important;
}

body {
  font-size: 15px;
  line-height: 1.8;
}

/* Optional: ensure headings use the same family and are readable */
h1, h2, h3, h4, h5, h6 {
  font-family: 'YekanBakh', 'YekanBakh FaNum', inherit !important;
  font-weight: 700;
  line-height: 1.5;
}

/* Sidebar brand text */
.logo .brand-text {
  font-weight: 700;
  font-size: 20px;
  color: inherit;
  display: inline-block;
}

.logo .logo-sm .brand-text {
  font-size: 16px;
}

/* Header/Topbar - surfaces driven by barex-theme-tokens.css (data-topbar-color) */
.app-topbar {
  backdrop-filter: none !important;
}

/* Grid.js styling */
.gridjs-table {
  direction: rtl !important;
}

.gridjs-th {
  text-align: left !important;
}

.gridjs-td {
  text-align: left !important;
  border-right: none !important;
  border-left: none !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.gridjs-tr {
  border-bottom: 1px solid #dee2e6;
}

/* Remove vertical borders, keep horizontal only */
.gridjs-table td:first-child,
.gridjs-table th:first-child {
  border-left: none !important;
}

.gridjs-table td:last-child,
.gridjs-table th:last-child {
  border-right: none !important;
}

/* Page title header spacing */
.page-title-head {
  margin-top: 7px;
}

/* Sidebar brand alignment with header */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand .logo {
  padding: 0;
  margin: 0;
}

html[data-bs-theme=dark] .sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
