/* V24: All dense, supported tables use responsive records by default.
   Table mode is retained for comparisons, Excel-like reading and printing.
   Original elements (and all their actions) are preserved; no data is cloned. */
body.abanrah-app-body .ar-v24-view-mode {
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  margin:12px 0 8px; padding:5px; max-width:max-content;
  background:#eef3fb; border:1px solid #d3e1f0; border-radius:12px;
}
body.abanrah-app-body .ar-v24-view-mode button {
  border:0; border-radius:9px; background:transparent; color:#34516f;
  padding:8px 16px; font-weight:700; font-size:13px; cursor:pointer;
}
body.abanrah-app-body .ar-v24-view-mode button[aria-pressed="true"] {
  background:#fff; color:#233e75; box-shadow:0 2px 9px #1e3b6a1e;
}
body.abanrah-app-body .ar-v24-data-shell.ar-v24-cards-on {
  overflow:visible !important; overflow-x:visible !important;
  border:0 !important; border-radius:0 !important; background:transparent !important;
  box-shadow:none !important; max-width:100% !important; width:100%;
  margin:0 !important; padding:0 !important;
}
body.abanrah-app-body .ar-v24-data-shell.ar-v24-cards-on .ar-v24-card-table {
  display:block !important; width:100% !important; max-width:100% !important;
  min-width:0 !important; border:0 !important; margin:0 !important;
  background:transparent !important; box-shadow:none !important;
}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table > thead,
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table > tbody > tr:not(.ar-v24-record),
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table > tr:not(.ar-v24-record) {display:none !important;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table > tbody,
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table > tfoot {display:grid !important; width:100%; gap:14px;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record {
  display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr));
  width:100% !important; min-width:0 !important; align-items:stretch; gap:0;
  padding:12px; background:#fff !important; border:1px solid #dbe5ef;
  border-radius:16px; box-shadow:0 5px 17px #1b47730c;
  overflow:hidden;
}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record:hover {background:#fff !important; border-color:#b7cde4;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field {
  display:flex !important; flex-direction:column; gap:5px; min-width:0 !important; max-width:none !important;
  padding:10px 12px !important; width:auto !important; height:auto !important;
  white-space:normal !important; overflow-wrap:anywhere; word-break:normal;
  font-size:13px; line-height:1.75; text-align:start !important; vertical-align:top !important;
  border:0 !important; box-shadow:none !important; background:transparent !important;
  color:#233b57 !important; font-weight:500;
}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field::before {
  content:attr(data-ar-label); display:block; color:#667e99;
  font-size:11px; font-weight:700; line-height:1.5; margin-bottom:2px;
}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-main-id {
  color:#152f56 !important; font-size:14px; font-weight:800;
}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field.ar-v24-secondary {display:none !important;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-expanded .ar-v24-secondary {display:flex !important;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field:has(.ar-v24-delay-alert) {
  grid-column:span 2; padding:7px 10px !important;
}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field .btn,
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field a {align-self:flex-start; max-width:100%; white-space:normal;}
body.abanrah-app-body .ar-v24-row-actions {margin-top:auto; padding-top:8px;}
body.abanrah-app-body .ar-v24-more {
  border:1px solid #cad9ea; background:#f4f8fd; color:#294b7d;
  border-radius:10px; padding:6px 10px; font:inherit; font-size:12px; font-weight:700;
  cursor:pointer; width:100%; text-align:center;
}
body.abanrah-app-body .ar-v24-more:hover {background:#e6effa;}
body.abanrah-app-body .ar-v24-delay-alert {
  display:flex !important; flex-direction:column !important; gap:5px;
  background:#fff3e8; color:#8b2e18; border:1px solid #f5c6a7;
  border-inline-start:4px solid #db6d32; border-radius:10px;
  max-width:100%; width:100%; padding:10px 12px;
  line-height:1.7; white-space:normal !important; overflow-wrap:anywhere;
  font-weight:600; font-size:12px; text-align:start;
}
body.abanrah-app-body .ar-v24-delay-duration {font-size:15px; font-weight:800;}
body.abanrah-app-body .ar-v24-delay-duration .ar-metric-number,
body.abanrah-app-body .ar-v24-stop-number {font-size:18px; font-weight:900; font-variant-numeric:tabular-nums;}
body.abanrah-app-body .ar-v24-delay-explain {font-size:12px; font-weight:600;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .blink1 {animation:none !important;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field .ar-v24-delay-alert + br {display:none;}
body.abanrah-app-body .ar-v24-select-all {
  display:inline-flex; align-items:center; gap:9px; margin:6px 0 8px;
  font-size:13px; font-weight:700; color:#35516e;
}
body.abanrah-app-body .ar-v24-select-all input {width:17px; height:17px;}
body.abanrah-app-body .ar-v22-scroll-toolbar.ar-v24-toolbar-hidden {display:none !important;}
body.abanrah-app-body .ar-v24-data-shell.ar-v24-table-on {overflow-x:auto !important;}
body.abanrah-app-body .ar-v24-data-shell.ar-v24-table-on .ar-v24-card-table {min-width:max-content !important; width:100% !important;}
body.abanrah-app-body .ar-v24-data-shell.ar-v24-table-on .ar-v24-row-actions {display:none;}
body.abanrah-app-body .ar-v24-data-shell.ar-v24-table-on .ar-v24-card-table .ar-v24-delay-alert {min-width:170px;max-width:290px;}
/* Even 15-column records become readable two-column cards on mobile. */
@media (max-width:1500px) {
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:870px) {
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record {grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;}
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field {padding:8px !important;}
}
@media (max-width:410px) {
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record {grid-template-columns:repeat(2,minmax(0,1fr));gap:0;}
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table .ar-v24-field:has(.ar-v24-delay-alert) {grid-column:1/-1;}
}
@media print {
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record .ar-v24-secondary {display:flex !important;}
 body.abanrah-app-body .ar-v24-view-mode, body.abanrah-app-body .ar-v24-more {display:none !important;}
 body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record {break-inside:avoid;box-shadow:none;}
}
/* Local containment also protects pages that omit older shell resets. */
body.abanrah-app-body .ar-v24-data-shell,
body.abanrah-app-body .ar-v24-data-shell *,
body.abanrah-app-body .ar-v24-data-shell *::before,
body.abanrah-app-body .ar-v24-data-shell *::after {box-sizing:border-box;}
body.abanrah-app-body .ar-v24-cards-on .ar-v24-card-table tr.ar-v24-record > .ar-v24-field {min-width:0 !important;}
/* A less intrusive navigation rail and a full-width, readable search area. */
@media (min-width:992px) {
 body.abanrah-app-body.ar-v24-card-layout {--ar-sidebar-width:248px;}
}
@media (min-width:992px) and (max-width:1199px) {
 body.abanrah-app-body.ar-v24-card-layout {--ar-sidebar-width:230px;}
}
body.abanrah-app-body.ar-v24-card-layout .abanrah-content {
 min-width:0; width:100%; max-width:100%; padding-inline:clamp(12px,1.8vw,28px) !important;
}
body.abanrah-app-body.ar-v24-card-layout .filter-container {
 width:100% !important; max-width:100% !important; min-width:0;
 border:1px solid #dde7f0 !important; border-radius:16px !important;
 background:#fff !important; box-shadow:0 4px 18px #1e426b0a;
}
body.abanrah-app-body.ar-v24-card-layout .filter-container form > .d-flex:first-child {
 display:grid !important; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));
 align-items:stretch !important; justify-content:stretch !important; gap:10px !important;
}
body.abanrah-app-body.ar-v24-card-layout .filter-container .form-group {
 margin:0 !important; min-width:0; width:100%;
}
body.abanrah-app-body.ar-v24-card-layout .filter-container :is(input.form-control,select.form-control) {
 width:100% !important; max-width:100%; min-height:39px; border-radius:9px;
}
body.abanrah-app-body.ar-v24-card-layout .filter-container form > .d-flex:last-child {
 display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px !important;
}
body.abanrah-app-body.ar-v24-card-layout .abanrah-content {box-sizing:border-box;}
