/* AbanRah V22 — wide-table UI, after V20. Existing LTR/RTL shell is preserved. */
body.abanrah-app-body.ar-v22-has-tables {
  --ar-page-table-border: #dce5ef;
  --ar-page-table-ink: #1d314d;
}
body.ar-v22-has-tables .abanrah-content {
  padding-inline: clamp(10px, 1.6vw, 24px) !important;
  padding-block: clamp(12px, 1.8vw, 25px) !important;
}
body.ar-v22-has-tables .abanrah-content > .card,
body.ar-v22-has-tables .abanrah-content > .filter-container,
body.ar-v22-has-tables .abanrah-content > section,
body.ar-v22-has-tables .abanrah-content > .col-lg-12 {
  max-width: 100%;
  min-width: 0;
}
body.ar-v22-has-tables .ar-v22-scroll-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 7px 12px 2px;
  gap: 6px 12px;
  margin-top: 12px;
  color: #54708b;
  background: linear-gradient(180deg, #eff5fc, #f9fbff);
  border: 1px solid var(--ar-page-table-border);
  border-radius: 15px 15px 0 0;
}
body.ar-v22-has-tables .ar-v22-scroll-toolbar[hidden] { display: none !important; }
body.ar-v22-has-tables .ar-v22-scroll-hint {font-size: 12px; font-weight: 600; line-height: 1.6;}
body.ar-v22-has-tables .ar-v22-scroll-controls { display: inline-flex; align-items: center; gap: 5px; }
body.ar-v22-has-tables .ar-v22-scroll-arrow {
  border: 1px solid #c2d5e8;
  background: #fff;
  color: #264c7c;
  border-radius: 9px;
  width: 30px;
  height: 27px;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 20px;
  cursor: pointer;
}
body.ar-v22-has-tables .ar-v22-scroll-arrow:hover,
body.ar-v22-has-tables .ar-v22-scroll-arrow:focus-visible { background: #e8f0fa; outline-color:#527da9; }
body.ar-v22-has-tables .ar-v22-top-scroll {
  grid-column: 1 / -1;
  height: 17px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
body.ar-v22-has-tables .ar-v22-scroll-spacer { height: 1px; min-width: 1px; }
body.ar-v22-has-tables .ar-v22-table-scroll {
  border: 1px solid var(--ar-page-table-border);
  border-radius: 0 0 15px 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(18,46,82,.045);
  margin-bottom: 13px;
  scrollbar-width: auto;
}
body.ar-v22-has-tables .ar-v22-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--ar-page-table-ink);
  font-size: clamp(12px, .88vw, 14px);
}
body.ar-v22-has-tables .ar-v22-table th,
body.ar-v22-has-tables .ar-v22-table td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  white-space: normal;
  text-align: start;
  border-bottom: 1px solid #e6edf4;
  border-top: 0 !important;
  line-height: 1.7;
}
body.ar-v22-has-tables .ar-v22-table th { font-weight: 700; }
body.ar-v22-has-tables .ar-v22-table > thead > tr > th,
body.ar-v22-has-tables .ar-v22-table > tbody > tr:first-child > th,
body.ar-v22-has-tables .ar-v22-table > tr:first-child > th {
  background: #eef4fb !important;
  color: #263e63 !important;
  border-bottom-color: #c8d7e9 !important;
}
body.ar-v22-has-tables .ar-v22-table tbody tr:nth-child(even) { background: #f8fafc; }
body.ar-v22-has-tables .ar-v22-table tbody tr:hover { background-color: #eaf4fc !important; }
body.ar-v22-has-tables .ar-v22-table th[scope="row"] { max-width: 250px; overflow-wrap: anywhere; }
body.ar-v22-has-tables .ar-v22-table .ar-metric-number,
body.ar-v22-has-tables .ar-v22-table time {font-variant-numeric: tabular-nums; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
body.ar-v22-has-tables .ar-v22-table .ar-empty-value {color: #71839a; font-size: .94em; font-weight: 500;}
body.ar-v22-has-tables .ar-v22-table .btn {font-size: 12px; min-height: 31px; padding: 5px 10px; border-radius: 9px;}
@media (max-width: 991.98px) {
 body.ar-v22-has-tables .abanrah-content { padding-inline: 9px !important; }
 body.ar-v22-has-tables .ar-v22-table th, body.ar-v22-has-tables .ar-v22-table td { padding: 9px 10px !important; }
 body.ar-v22-has-tables .ar-v22-scroll-hint {font-size: 11px;}
}
@media print {
 body.ar-v22-has-tables .ar-v22-scroll-toolbar {display: none !important;}
 body.ar-v22-has-tables .ar-v22-table-scroll {box-shadow: none; border: 0; overflow:visible !important;}
}

/* Replace the heavy black title strips and cramped filter cards on older data pages. */
body.ar-v22-has-tables .abanrah-content > div[style*="background-color: #222"],
body.ar-v22-has-tables .abanrah-content > div[style*="background-color:#222"] {
  background: linear-gradient(115deg, #263e69, #142c57) !important;
  box-shadow: 0 10px 28px rgba(21,43,84,.14);
  border-radius: 15px !important;
  padding: 17px 22px !important;
}
body.ar-v22-has-tables .abanrah-content > .filter-container {
  background: #fff !important;
  border-color: #e0e9f2 !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 23px rgba(22,48,90,.055);
}
body.ar-v22-has-tables .ar-v22-table-scroll + .pagination { padding-inline: 8px; }
body.ar-v22-has-tables .ar-v22-table-scroll .ar-secondary-date {
  display: block; color: #71849a; font-size: 11px; font-weight: 400;
}
body.ar-v22-has-tables .ar-v22-scroll-focus {
  border: 1px solid #bed2e8; border-radius: 9px;
  color: #274e7c; background: #fff;
  font: inherit; font-size: 11px; font-weight: 700;
  min-height: 27px; padding: 3px 9px; cursor: pointer;
}
body.ar-v22-has-tables .ar-v22-scroll-focus:hover {background:#e7effa;}
