/* AbanRah V27: unified dense-page table system (replaces V25+V26 style layers).
   No card mode. No scroll-driven JS resizing. No changes to saved information. */
@media (min-width: 992px) {
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense {
    --ar-v26-sidebar-expanded: 158px;
    --ar-v26-sidebar-slim: 54px;
    --ar-v26-sidebar-actual: var(--ar-v26-sidebar-expanded);
  }
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense {
    --ar-v26-sidebar-actual: var(--ar-v26-sidebar-slim);
  }
  /* One grid establishes actual sidebar width; no scroll-triggered layout shifts. */
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-app-shell {
    display: grid !important;
    position: relative !important;
    direction: ltr !important;
    grid-template-columns: minmax(0,1fr) var(--ar-v26-sidebar-actual) !important;
    align-items: start !important;
    width: 100% !important;
  }
  html[dir="ltr"] body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-app-shell {
    grid-template-columns: var(--ar-v26-sidebar-actual) minmax(0,1fr) !important;
  }
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar {
    grid-row: 1 !important;
    grid-column: 2 !important;
    position: relative !important;
    top: auto !important; bottom: auto !important;
    inset-inline-start: auto !important; inset-inline-end: auto !important;
    width: var(--ar-v26-sidebar-actual) !important;
    min-width: 0 !important; max-width: none !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    align-self: start !important;
    overflow: visible !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  html[dir="ltr"] body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar {grid-column:1!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar-nav {
    flex: 0 0 auto !important; height: auto !important;
    min-height: 0 !important; max-height: none !important;
    overflow: visible !important; padding: 5px 4px 9px !important;
  }
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-workspace,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-workspace,
  body.ar-v25-past-nav.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-workspace {
    display: flex !important; flex-direction: column !important;
    grid-column: 1 !important; grid-row: 1 !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    padding: 0 !important; margin: 0 !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow: visible !important;
    transition: none !important;
  }
  html[dir="ltr"] body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-workspace,
  html[dir="ltr"] body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-workspace {grid-column:2!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-topbar {
    position: relative !important;
    min-height: 48px !important; padding: 5px 10px !important;
  }
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-content {
    padding: 7px clamp(6px,.8vw,13px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar-head {min-height: 50px!important;padding:6px!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-brand-mark {width:30px!important;height:30px!important;flex-basis:30px!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-user-card {margin:4px!important;padding:6px 4px!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-user-avatar {width:29px!important;height:29px!important;flex-basis:29px!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-nav-section {margin-top:5px!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-nav-link {min-height:32px!important;padding:5px 6px!important;font-size:11.5px!important;gap:5px!important;}
  body.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-nav-label {font-size:9px!important;padding:3px!important;}
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar-head,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-user-card,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-nav-link {justify-content:center!important;}
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-nav-link {padding:6px 2px!important;}
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-nav-link > i:first-child {width:20px!important;flex-basis:20px!important;}
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-user-card {margin-inline:3px!important;}
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-brand-copy,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-user-copy,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-user-settings,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-nav-label,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-nav-link span,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-nav-chevron,
  body.sidebar-collapsed.abanrah-app-body.abanrah-app-body.ar-v27-dense .abanrah-sidebar .abanrah-submenu {display:none!important;}
}

/* Unified header + filters, shared by legacy Travel/CMR and newer Accounting. */
body.abanrah-app-body.ar-v27-dense .abanrah-content { --ar27-line:#dbe6f0; --ar27-ink:#233c61; }
body.abanrah-app-body.ar-v27-dense .abanrah-content .ar-v27-page-heading {
  display:flex!important; align-items:center!important;justify-content:space-between!important;
  gap:9px!important; min-height:0!important; height:auto!important;
  margin:0 0 8px!important; padding:9px 13px!important;
  background:linear-gradient(115deg,#243f6a,#183155)!important;
  border:1px solid #284c79!important;border-radius:10px!important;
  box-shadow:0 2px 8px rgba(25,45,85,.09)!important;
  text-align:start!important; flex-wrap:wrap!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading > div,
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading .ar-page-hero-copy {min-width:0!important;flex:1 1 250px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading :is(h1,h2,h3,h4) {
  font-family:inherit!important;font-size:clamp(14px,1.1vw,17px)!important;font-weight:750!important;line-height:1.55!important;
  margin:0!important;color:#fff!important;text-align:start!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading .ar-page-hero-copy p {display:none!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading :is(.ar-eyebrow,.ar-page-hero-icon) {display:none!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading :is(.btn,.ar-hero-action) {
  margin:0!important;min-height:30px!important;padding:4px 9px!important;
  font-size:11.5px!important;line-height:1.45!important;white-space:normal!important;
}
body.abanrah-app-body.ar-v27-dense .abanrah-content .filter-container.ar-v27-filter-shell,
body.abanrah-app-body.ar-v27-dense .abanrah-content .ar-filter-panel.ar-v27-filter-shell {
  display:block!important; min-height:0!important;height:auto!important;
  width:100%!important;margin:0 0 8px!important;padding:0!important;
  border:1px solid var(--ar27-line)!important;border-radius:10px!important;
  background:#fff!important;box-shadow:none!important;overflow:hidden!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details {margin:0!important;padding:0!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details:not([open]) > :not(summary) {display:none!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;
  min-height:38px!important;padding:7px 12px!important;margin:0!important;
  color:var(--ar27-ink)!important;background:#f5f8fc!important;
  cursor:pointer;font-size:12.5px!important;font-weight:750!important;line-height:1.5!important;
  list-style:none!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary::-webkit-details-marker {display:none!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary:before {content:'▾';color:#37629b;font-size:14px;display:inline-block;transition:transform .12s;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details[open] > .ar-v27-filter-summary:before {transform:rotate(180deg);}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary .ar-section-heading {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:7px!important; flex:1!important;margin:0!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary :is(h3,h4,h5) {font-size:12.5px!important;font-weight:750!important;line-height:1.5!important;margin:0!important;color:var(--ar27-ink)!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary :is(.ar-section-kicker,.ar-result-chip) {font-size:10px!important;margin:0!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-year {border:1px solid #d5e4f2;border-radius:7px;background:#fff;padding:2px 8px;font-family:inherit;font-weight:700;font-size:11px;line-height:1.6;white-space:nowrap;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details > form {margin:0!important;padding:10px!important;border-top:1px solid var(--ar27-line)!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details > form > .d-flex:first-child {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr));gap:8px!important;margin:0 0 8px!important;align-items:stretch!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .form-group {margin:0!important;min-width:0!important;width:100%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details :is(input.form-control,select.form-control) {width:100%!important;min-width:0!important;height:35px!important;min-height:35px!important;font-size:12px!important;padding:6px 8px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details > form > .d-flex:last-child,
body.abanrah-app-body.ar-v27-dense .ar-filter-actions {display:flex!important;flex-wrap:wrap!important;gap:6px!important;justify-content:center!important;margin:8px 0 0!important;padding:0!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-filter-form {margin:0!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-filter-grid {gap:8px!important;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-field label {font-size:11px!important;margin-bottom:3px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-field .form-control {min-height:35px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .btn {padding:6px 9px!important;font-size:11.5px!important;min-height:31px!important;}
body.abanrah-app-body.ar-v27-dense .ar-table-card {margin:0 0 10px!important;border-color:var(--ar27-line)!important;box-shadow:none!important;}
body.abanrah-app-body.ar-v27-dense .ar-table-card-head {padding:9px 12px!important;}
body.abanrah-app-body.ar-v27-dense .ar-table-card-head h3 {font-size:14px!important;}
body.abanrah-app-body.ar-v27-dense .ar-finance-overview {gap:8px!important;margin:0 0 9px!important;}
body.abanrah-app-body.ar-v27-dense .ar-finance-overview :is(.ar-metric-card,.ar-balance-card) {min-height:78px!important;padding:10px!important;}
body.abanrah-app-body.ar-v27-dense .abanrah-content > p[align="left"] {margin:4px!important;font-size:12px!important;}
/* Scrolling controls: never waste a third of the screen. */
body.abanrah-app-body.ar-v27-dense .ar-v22-scroll-toolbar {padding:5px 8px 2px!important;margin:4px 0 0!important;border-radius:9px 9px 0 0!important;gap:3px 9px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-scroll-hint {font-size:10.5px!important;line-height:1.4!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-top-scroll {height:12px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-scroll-controls {gap:3px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-scroll-arrow {width:27px!important;height:26px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-scroll-focus {min-height:27px!important;font-size:10.5px!important;padding:3px 8px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table-scroll {margin:0 0 10px!important;border-radius:0 0 9px 9px!important;}
/* Table layout: real table semantics; bounded widths; wrap text inside cells, not across the row. */
body.abanrah-app-body.ar-v27-dense .ar-v22-table {
  table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;
  margin:0!important;width:100%!important;max-width:none!important;
  font-size:12px!important;line-height:1.55!important;
  min-width:var(--ar27-table-min,100%)!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v22-table th,
body.abanrah-app-body.ar-v27-dense .ar-v22-table td {
  min-width:0!important;max-width:none!important;
  padding:7px 6px!important;font-size:12px!important;line-height:1.55!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  white-space:normal!important;vertical-align:middle!important;
  text-align:start!important;border-bottom:1px solid #e2eaf2!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v22-table thead th {padding:8px 6px!important;white-space:normal!important;font-size:11.5px!important;line-height:1.4!important;background:#edf3fb!important;color:#26436c!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table tbody tr:nth-child(even) {background:#f8fafc!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table tbody tr:hover {background:#eef6fd!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table :is(.btn,.ar-status-badge,.ar-icon-action) {font-size:11px!important;line-height:1.35!important;padding:5px 7px!important;min-height:28px!important;white-space:normal!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table .ar-row-actions {gap:4px!important;flex-wrap:wrap!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table td .ar-v27-long-text {display:block!important;unicode-bidi:plaintext;overflow-wrap:anywhere!important;white-space:normal!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table td .ar-v27-long-text.is-clamped:not(.is-expanded) {display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;cursor:pointer;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table td .ar-v27-long-text.is-expanded {display:block!important;overflow:visible!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table td .ar-v27-long-text:focus-visible {outline:2px solid #2676b1;outline-offset:2px;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table :is(.ar-mono-value,.ar-date-cell strong,.ar-date-cell small,.ar-money-cell strong,.ar-metric-number) {direction:ltr;unicode-bidi:isolate;white-space:nowrap!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table .ar-money-cell small {white-space:nowrap!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table .ar-v24-delay-alert {white-space:normal!important;overflow-wrap:break-word!important;font-size:10.5px!important;line-height:1.4!important;padding:4px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v22-table .ar-v24-delay-duration,
body.abanrah-app-body.ar-v27-dense .ar-v22-table .ar-v24-delay-explain {font-size:10.5px!important;}
/* 15-column travel listings: 1280px is a deliberate readable floor. */
body.abanrah-app-body.ar-v27-dense .ar-travels-list-table,
body.abanrah-app-body.ar-v27-dense .ar-master-travels-table {min-width:1260px!important;}
/* Using relative column widths prevents name fields from stealing all remaining space. */
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(1) {width:42px!important;position:sticky!important;inset-inline-start:0!important;z-index:2!important;text-align:center!important;white-space:nowrap!important;background:#f4f8ff!important;border-inline-end:1px solid #ccddea!important;font-variant-numeric:tabular-nums;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) thead tr > :first-child {z-index:4!important;background:#ddeafb!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(2) {width:107px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(3) {width:59px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(4) {width:84px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(5) {width:70px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(6) {width:78px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(7),
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(8) {width:125px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(9) {width:76px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(10) {width:105px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(11) {width:80px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(12) {width:77px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(13) {width:125px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(14) {width:55px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(15) {width:50px!important;}
/* Protect dates and identifiers against bidi/character splitting. */
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tbody tr > :nth-child(2) {overflow-wrap:normal!important;word-break:normal!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tbody tr > :nth-child(10) b {display:inline-block;white-space:nowrap!important;direction:ltr;unicode-bidi:isolate;}
body.abanrah-app-body.ar-v27-dense .ar-master-travels-table,
body.abanrah-app-body.ar-v27-dense .ar-travels-list-table,
body.abanrah-app-body.ar-v27-dense .ar-accounting-table {
  display:table!important; width:100%!important; max-width:none!important;
  table-layout:fixed!important;
}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table {min-width:1225px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(1) {width:118px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(2) {width:86px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(3) {width:86px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(4) {width:105px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(5) {width:100px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(6) {width:106px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(7) {width:103px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(8) {width:170px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(9),
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(10) {width:128px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tr > :nth-child(11) {width:91px!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table tbody tr > :nth-child(1) {position:sticky;inset-inline-start:0;z-index:2;background:#f3f7fc!important;border-inline-end:1px solid #d7e3f0!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table thead tr > :first-child {position:sticky;inset-inline-start:0;z-index:4;background:#ddeafb!important;}
body.abanrah-app-body.ar-v27-dense .ar-accounting-table td.ar-description-cell {overflow-wrap:anywhere!important;}
@media (max-width:991.98px) {
 body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading {padding:7px 9px!important;}
 body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary {min-height:38px!important;padding:7px 9px!important;}
 body.abanrah-app-body.ar-v27-dense .ar-v22-table {font-size:12px!important;}
}
@media print {body.abanrah-app-body.ar-v27-dense .ar-v22-scroll-toolbar {display:none!important;}body.abanrah-app-body.ar-v27-dense .ar-v22-table-scroll {overflow:visible!important;} }

/* Legacy MasterTravels title has a container which now lines up its action. */
body.abanrah-app-body.ar-v27-dense .ar-v27-page-heading > div {
  display:flex!important; align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:7px!important;
}

/* Explicit stacked money formatting; no mixed RTL/LTR line collisions. */
body.abanrah-app-body.ar-v27-dense .ar-accounting-table :is(.ar-money-cell strong,.ar-money-cell small) {
  display:block!important;text-align:start!important;unicode-bidi:isolate;
}
/* Compact finance result counts never stretch the filter summary. */
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary .ar-result-chip {max-width:100%!important;white-space:normal!important;}


/* ===============================================================
   V28 — alignment, full identifiers, shared directory/table styles
   Replaces V27 in layout: only one active final table layer.
   =============================================================== */
body.abanrah-app-body.ar-v27-dense .abanrah-content :is(.ar-v27-filter-shell,.ar-v28-list-table-scroll),
body.abanrah-app-body.ar-v27-dense .abanrah-content .ar-page,
body.abanrah-app-body.ar-v27-dense .abanrah-content .ar-v28-list-page {min-width:0!important;max-width:100%!important;}
/* Filter panels should fill their available width, but fields stay centered. */
body.abanrah-app-body.ar-v27-dense .abanrah-content .ar-v27-filter-shell {
  width:100%!important; max-width:100%!important; margin-inline:auto!important;
  border-radius:9px!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-shell > details {
  display:block!important;width:100%!important;max-width:100%!important;
  margin:0!important;float:none!important;min-width:0!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary {
  width:100%!important;min-height:36px!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  text-align:center!important;gap:9px!important;
  padding:7px 12px!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary > .ar-section-heading {
  flex:0 1 auto!important;width:auto!important;max-width:100%!important;
  justify-content:center!important;text-align:center!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary > .ar-section-heading > div {text-align:center!important;}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-summary > :is(h3,h4,h5) {
  text-align:center!important;flex:none!important;max-width:100%!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details[open] > form {
  width:min(100%,1070px)!important; max-width:1070px!important;
  box-sizing:border-box!important;display:block!important;
  margin:0 auto!important;float:none!important;clear:both!important;
  padding:10px clamp(9px,1.2vw,15px) 12px!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details > form > .d-flex:first-child,
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-filter-grid {
  display:grid!important;
  width:100%!important; min-width:0!important;
  max-width:100%!important;margin-inline:auto!important;
  grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr))!important;
  justify-content:center!important;gap:7px 9px!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .form-group {
  display:block!important;min-width:0!important;width:100%!important;
  flex:none!important;margin:0!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-field,
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-field select,
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-field input {
  min-width:0!important;max-width:100%!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details .ar-filter-actions,
body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details > form > .d-flex:last-child {
  display:flex!important;justify-content:center!important;align-items:center!important;
  flex-wrap:wrap!important;gap:7px!important;max-width:100%!important;
  width:100%!important;margin:9px auto 0!important;
}
/* General-purpose search forms in legacy CMR lists. */
body.abanrah-app-body.ar-v27-dense .ar-v28-simple-search,
body.abanrah-app-body.ar-v27-dense .ar-v28-inline-search {
  display:flex!important;justify-content:center!important;align-items:center!important;
  flex-wrap:wrap!important;gap:8px 12px!important;
  width:min(100%,840px)!important;max-width:840px!important;
  margin:8px auto 12px!important;padding:10px 12px!important;
  background:#fff!important;border:1px solid #dce6ef!important;
  border-radius:10px!important;box-shadow:none!important;
}
body.abanrah-app-body.ar-v27-dense :is(.ar-v28-simple-search,.ar-v28-inline-search) :is(input,select) {
  max-width:min(100%,320px)!important;min-width:0!important;
  height:36px!important;margin:0!important;font-size:12px!important;
}
body.abanrah-app-body.ar-v27-dense :is(.ar-v28-simple-search,.ar-v28-inline-search) label {
  display:inline-block!important;margin:0!important;font-size:12px!important;
}
body.abanrah-app-body.ar-v27-dense :is(.ar-v28-simple-search,.ar-v28-inline-search) .btn {
  min-height:33px!important;padding:6px 15px!important;margin:0!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-list-title {
  width:100%!important;margin:0 0 8px!important;padding:8px 12px!important;
  border-radius:9px!important;background:#223e67!important;color:#fff!important;
  font-size:15px!important;line-height:1.6!important;font-weight:750!important;
  text-align:start!important;
}
/* All normal data tables — unaffected forms, dashboards and internal layouts. */
body.abanrah-app-body.ar-v27-dense .abanrah-content .ar-v28-managed-table {
  width:100%!important;max-width:none!important;
  min-width:var(--ar28-min-width,100%)!important;
  table-layout:fixed!important;border-collapse:separate!important;
  border-spacing:0!important;margin:0!important;
  font-size:12px!important;line-height:1.5!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table :is(thead th,tbody td,tbody th) {
  min-width:0!important;max-width:none!important;
  padding:7px 7px!important;vertical-align:middle!important;
  white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
  text-align:start!important;border-bottom:1px solid #dfe7f0!important;
  font-size:12px!important;line-height:1.55!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table thead th {
  background:#eaf1fa!important;color:#294264!important;
  font-size:11.5px!important;font-weight:750!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table tbody tr:nth-child(even) {background:#f8fafc!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table tbody tr:hover {background:#f0f6fd!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table td .ar-v28-cell-text {
  display:block!important;width:100%!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  unicode-bidi:plaintext;line-height:1.55!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table td .ar-v28-cell-text.is-truncated:not(.is-expanded) {
  display:-webkit-box!important;-webkit-box-orient:vertical;
  -webkit-line-clamp:4;overflow:hidden!important;cursor:pointer;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table td .ar-v28-cell-text.is-expanded {
  display:block!important;overflow:visible!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table td .ar-v28-cell-text:focus-visible {
  outline:2px solid #235d92!important;outline-offset:2px;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table :is(.ar-v28-identifier,.ar-mono-value) {
  display:inline-block!important;direction:ltr!important;unicode-bidi:isolate!important;
  white-space:nowrap!important;overflow-wrap:normal!important;
  word-break:keep-all!important;max-width:none!important;
  font-variant-numeric:tabular-nums;
}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) {
  min-width:1370px!important;--ar28-min-width:1370px;
}
/* IDs get space first. Long names sacrifice width through multi-line wrapping instead. */
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(1) {width:45px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(2) {width:146px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(3) {width:66px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(4) {width:93px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(5) {width:75px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(6) {width:94px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(7),
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(8) {width:140px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(9) {width:82px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(10) {width:105px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(11) {width:77px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(12) {width:85px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(13) {width:101px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(14) {width:62px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tr > :nth-child(15) {width:59px!important;}
body.abanrah-app-body.ar-v27-dense :is(.ar-travels-list-table,.ar-master-travels-table) tbody tr > :nth-child(2) {
  direction:ltr!important;white-space:nowrap!important;
  word-break:keep-all!important;overflow-wrap:normal!important;
  text-align:center!important;
}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table {--ar28-min-width: min(100%,730px)!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tr > :nth-child(1) {width:30%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tr > :nth-child(2) {width:27%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tr > :nth-child(3) {width:13%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tr > :nth-child(4) {width:20%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tr > :nth-child(5) {width:10%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table thead th,
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tbody td {overflow-wrap:anywhere!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table tbody td:first-child .btn {display:inline-flex!important;max-width:100%!important;}
/* Two-column 'location / description' lists have a little more name space. */
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table[data-ar28-columns="2"] tr > :nth-child(1) {width:43%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table[data-ar28-columns="2"] tr > :nth-child(2) {width:57%!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-list-table-scroll,
body.abanrah-app-body.ar-v27-dense .ar-v28-created-scroll {
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow-x:auto!important;overflow-y:visible!important;
  border:1px solid #dce6f1;border-radius:9px;
  background:#fff;
}
@media (max-width:760px) {
 body.abanrah-app-body.ar-v27-dense .ar-v28-directory-table {min-width:680px!important;}
 body.abanrah-app-body.ar-v27-dense .ar-v28-managed-table {font-size:12px!important;}
 body.abanrah-app-body.ar-v27-dense .ar-v27-filter-details > form {padding:9px!important;}
 body.abanrah-app-body.ar-v27-dense .ar-v28-simple-search {justify-content:stretch!important;}
}

/* Legacy Travel tables with equivalent 15-column structures */
body.abanrah-app-body.ar-v27-dense .ar-v28-transport-table {min-width:1370px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-transport-table tr > :first-child {width:45px!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-transport-table tr > :nth-child(2) {width:146px!important;white-space:nowrap!important;direction:ltr!important;unicode-bidi:isolate!important;}
body.abanrah-app-body.ar-v27-dense .ar-v28-transport-table tr > :nth-child(7),
body.abanrah-app-body.ar-v27-dense .ar-v28-transport-table tr > :nth-child(8) {width:140px!important;}
