/* ==========================================================================
   Rasanah Business theme for prebuilt Bootstrap 5.3 (bootstrap.rtl.min.css)
   Use this when the project does NOT compile SCSS (typical Blazor template).
   Load AFTER bootstrap and rasanah-tokens.css.
   ========================================================================== */
:root, [data-bs-theme=light] {
  --bs-primary: #0F3D46;          --bs-primary-rgb: 15,61,70;
  --bs-secondary: #5B6668;        --bs-secondary-rgb: 91,102,104;
  --bs-success: #2F7D57;          --bs-success-rgb: 47,125,87;
  --bs-warning: #A86A12;          --bs-warning-rgb: 168,106,18;
  --bs-danger: #B4412E;           --bs-danger-rgb: 180,65,46;
  --bs-info: #2E6DA4;             --bs-info-rgb: 46,109,164;
  --bs-body-font-family: var(--rb-font);
  --bs-body-font-size: 0.9375rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: #172326;       --bs-body-color-rgb: 23,35,38;
  --bs-body-bg: #F7F5F0;          --bs-body-bg-rgb: 247,245,240;
  --bs-secondary-color: #5B6668;
  --bs-tertiary-bg: #EFECE5;
  --bs-border-color: #E4DFD4;
  --bs-border-radius: 8px; --bs-border-radius-sm: 4px; --bs-border-radius-lg: 12px;
  --bs-link-color: #155260; --bs-link-color-rgb: 21,82,96;
  --bs-link-hover-color: #0A2A31; --bs-link-hover-color-rgb: 10,42,49;
  --bs-focus-ring-color: rgba(184,137,59,.45);
  --bs-primary-bg-subtle: #E2EEF0; --bs-primary-border-subtle: #BFD6DA; --bs-primary-text-emphasis: #0A2A31;
}
body { font-feature-settings: "tnum" 1; }                       /* aligned figures in tables */
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { color: var(--rb-ink); font-weight: 600; line-height: 1.35; }

.btn { --bs-btn-font-weight: 500; --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1.1rem; --bs-btn-focus-box-shadow: var(--rb-focus); }
.btn-primary { --bs-btn-bg:#0F3D46; --bs-btn-border-color:#0F3D46; --bs-btn-hover-bg:#155260; --bs-btn-hover-border-color:#155260;
  --bs-btn-active-bg:#0A2A31; --bs-btn-active-border-color:#0A2A31; --bs-btn-disabled-bg:#0F3D46; --bs-btn-disabled-border-color:#0F3D46; }
.btn-outline-primary { --bs-btn-color:#0F3D46; --bs-btn-border-color:#BFD6DA; --bs-btn-hover-bg:#E2EEF0; --bs-btn-hover-color:#0A2A31;
  --bs-btn-hover-border-color:#0F3D46; --bs-btn-active-bg:#BFD6DA; --bs-btn-active-color:#0A2A31; --bs-btn-active-border-color:#0F3D46; }
.btn-accent  { --bs-btn-color:#fff; --bs-btn-bg:#8A6220; --bs-btn-border-color:#8A6220; --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#744F16;
  --bs-btn-hover-border-color:#744F16; --bs-btn-active-bg:#5F4112; --bs-btn-active-color:#fff; }
.btn-success { --bs-btn-bg:#2F7D57; --bs-btn-border-color:#2F7D57; --bs-btn-hover-bg:#266848; --bs-btn-hover-border-color:#266848; }
.btn-danger  { --bs-btn-bg:#B4412E; --bs-btn-border-color:#B4412E; --bs-btn-hover-bg:#973626; --bs-btn-hover-border-color:#973626; }

.form-control, .form-select { border-color: #CFC8BA; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: #B8893B; box-shadow: var(--rb-focus); }
.form-label { font-weight: 500; color: #172326; font-size: .875rem; }

.card { --bs-card-border-color:#E4DFD4; --bs-card-border-radius:12px; --bs-card-cap-bg:#fff; box-shadow: var(--rb-shadow-1); }
.table { --bs-table-color:#172326; --bs-table-border-color:#E4DFD4; --bs-table-striped-bg:#FAF8F4; --bs-table-hover-bg:#F1F7F8; font-size:.875rem; }
.table > thead th { color:#5B6668; font-weight:600; font-size:.8125rem; background:#EFECE5; border-bottom-width:1px; }
.badge { font-weight: 500; }
.nav-tabs .nav-link.active { color:#0F3D46; border-bottom: 2px solid var(--rb-module); }

/* ---- App shell ---- */
.rb-topbar   { background:#0F3D46; color:#fff; height:56px; display:flex; align-items:center; gap:12px; padding-inline:16px; }
.rb-topbar .rb-module-name { font-weight:500; opacity:.9; padding-inline-start:12px; border-inline-start:1px solid rgba(255,255,255,.25); }
.rb-sidebar  { background:#fff; border-inline-end:1px solid #E4DFD4; }
.rb-sidebar .nav-link { color:#172326; border-radius:8px; }
.rb-sidebar .nav-link.active { background:#E2EEF0; color:#0F3D46; font-weight:600; box-shadow: inset -3px 0 0 var(--rb-module); }
[dir=ltr] .rb-sidebar .nav-link.active { box-shadow: inset 3px 0 0 var(--rb-module); }
.rb-module-accent { border-top: 3px solid var(--rb-module); }
.rb-id, .rb-num { font-family: var(--rb-font-mono); direction: ltr; unicode-bidi: isolate; }  /* IDs, IBANs, CR numbers */
