/* details.css — the "Show Details" panel on the Aircraft / Engines tables (built by tables.js).
 * The open row sits on the site's navy highlight, so colours here are light-on-navy. */

/* ---------- availability badge under the model name ---------- */
.avail-badge { display: inline-block; vertical-align: 2px; margin: 0 0 0 10px; padding: 2px 9px 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5; color: #fff; white-space: nowrap; }
/* phone / tablet scrolling table: keep the first column narrow by putting the badge under the model */
@media (max-width: 900px) {
  .aircraftcontent:not(.tbl-fit) .avail-badge, .enginecontent:not(.tbl-fit) .avail-badge { display: block; width: max-content; margin: 5px 0 0; }
}
.avail-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .85; margin-right: 6px; vertical-align: 1px; }
.b-sale { background: #1f9d61; } .b-lease { background: #b7791f; } .b-both { background: #2f5bd3; } .b-loi { background: #6b7280; }

/* ---------- panel ---------- */
.sd { container-type: inline-size; padding: 6px 16px 18px; text-align: left; white-space: normal; font-size: 15px; line-height: 1.4; }
.sd * { box-sizing: border-box; }

.sd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 2px 0 18px; }
.sd-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.sd-tile small, .sd-box h4 { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin: 0 0 4px; }
.sd-tile small { color: #c6a361; }
.sd-tile b { display: block; font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }

.sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 26px; align-items: start; }
.sd-box { min-width: 0; }
.sd-box h4 { color: #c9d3ee; margin-bottom: 8px; }

.sd-kv { margin: 0; padding: 0; }
.sd-kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.sd-kv > div:last-child { border-bottom: 0; }
.sd-kv dt { color: #c9d3ee; font-weight: 400; margin: 0; }
.sd-kv dd { margin: 0; font-weight: 600; text-align: right; }
.sd-apu { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.11); }

.sd-eng { display: grid; column-gap: 14px; font-size: 14.5px; }
.sd-eng > span { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.sd-eng .sd-eh { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #c6a361; text-align: right; border-bottom: 0; padding-top: 0; }
.sd-eng > span:first-child { border-bottom: 0; padding-top: 0; }
.sd-eng .sd-el { color: #c9d3ee; white-space: nowrap; }
.sd-eng .sd-ev { text-align: right; font-weight: 600; }
.sd-limiter { display: inline-block; background: rgba(227,163,59,.2); color: #f6cd80; border-radius: 4px; padding: 0 6px; }

/* bullets keep the site's JMI logo bullets (table li rules); just tidy spacing */
.sd-bul { margin: 0; padding: 0; list-style: none; }
.sd .sd-bul li { margin: 0 0 4px !important; padding: 2px 0 2px 42px !important; font-size: 15px !important; line-height: 1.4 !important;
  background-position: 2px .35em !important; background-size: 28px auto !important; }

/* ---------- actions ---------- */
.sd-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.sd-note { margin-right: auto; font-size: 12.5px; color: #aeb9d8; }
.sd .sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14.5px; line-height: 1.2;
  color: #fff !important; background: transparent; border: 2px solid rgba(255,255,255,.6); border-radius: 2em; padding: 8px 18px;
  text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.sd .sd-btn svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
.sd .sd-btn:hover, .sd .sd-btn:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; outline: none; }
.sd .sd-primary { background: #c6a361; border-color: #c6a361; color: #16213f !important; font-weight: 700; }
.sd .sd-primary:hover, .sd .sd-primary:focus-visible { background: #d6b77a; border-color: #d6b77a; }

/* ---------- narrow panels (phones, small tablets) ---------- */
@container (max-width: 640px) {
  .sd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .sd-grid { grid-template-columns: 1fr; gap: 14px; }
  .sd-actions { flex-direction: column; align-items: stretch; }
  .sd-note { margin: 0 0 2px; text-align: center; order: 9; }
  .sd .sd-btn { width: 100%; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .sd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-actions { flex-direction: column; align-items: stretch; }
    .sd .sd-btn { width: 100%; }
  }
}

/* shield icons from the site's legacy phone rule  svg{height:150vh!important;transform:…} */
.sd svg, .view-photos svg { height: 17px !important; width: 17px !important; transform: none !important; margin: 0 !important; }

/* ---------- dark mode: the site turns the open row WHITE with navy text, so invert the panel ---------- */
.dark-mode .sd { color: #1e2e5e; }
.dark-mode .sd-tile { background: #f3f6fc; border-color: #dfe5f1; }
.dark-mode .sd-tile small, .dark-mode .sd-eng .sd-eh { color: #9a7535; }
.dark-mode .sd-tile b, .dark-mode .sd-kv dd, .dark-mode .sd-eng .sd-ev { color: #1e2e5e; }
.dark-mode .sd-box h4 { color: #6a7796; }
.dark-mode .sd-kv dt, .dark-mode .sd-eng .sd-el { color: #56637f; }
.dark-mode .sd-kv > div, .dark-mode .sd-eng > span, .dark-mode .sd-apu { border-color: rgba(30,46,94,.12); }
.dark-mode .sd-limiter { background: #fcefd6; color: #8a5a00; }
.dark-mode .sd-actions { border-top-color: rgba(30,46,94,.14); }
.dark-mode .sd-note { color: #6a7796; }
.dark-mode .sd .sd-bul li { background-image: url(cursorlogo.png) !important; color: #1e2e5e; }   /* navy logo bullets on white */
.dark-mode .sd c.b { color: #15803d; }   /* readable green on white */
.dark-mode .sd .sd-btn { color: #1e2e5e !important; border-color: #1e2e5e; }
.dark-mode .sd .sd-btn:hover, .dark-mode .sd .sd-btn:focus-visible { background: #1e2e5e; color: #fff !important; border-color: #1e2e5e; }
.dark-mode .sd .sd-primary { background: #c6a361; border-color: #c6a361; color: #16213f !important; }
.dark-mode .sd .sd-primary:hover, .dark-mode .sd .sd-primary:focus-visible { background: #1e2e5e; border-color: #1e2e5e; color: #fff !important; }

/* ---------- dark mode: keep the rounded row corners ----------
   darkmode.css paints hover/open colours (and a shadow) on the <tbody> itself, which can't have rounded
   corners. Paint them on the rounded ::before layer instead, like light mode does. */
.dark-mode #aircrafttable tbody.rows, .dark-mode #enginetable tbody.rows,
.dark-mode #aircrafttable tbody.rows:hover, .dark-mode #enginetable tbody.rows:hover {
  background-color: transparent !important; -webkit-box-shadow: none !important; box-shadow: none !important; }
.dark-mode #aircrafttable tbody.rows:hover::before, .dark-mode #enginetable tbody.rows:hover::before { background-color: #d6e1ff !important; }
.dark-mode #aircrafttable tbody.rows[data-open]::before, .dark-mode #enginetable tbody.rows[data-open]::before {
  background-color: #fff !important; box-shadow: 0 0 30px rgba(0,0,0,.55) !important; }
/* pinned first column on phones follows the same colours */
@media (max-width: 900px) {
  .dark-mode #aircrafttable tbody.rows:hover > tr.summary > :first-child,
  .dark-mode #enginetable tbody.rows:hover > tr.summary > :first-child { background: #d6e1ff !important; }
  .dark-mode #aircrafttable tbody.rows[data-open] > tr.summary > :first-child,
  .dark-mode #enginetable tbody.rows[data-open] > tr.summary > :first-child { background: #fff !important; }
}

/* ---------- phones / tablets (scrolling table): tap a row to open it ----------
   The "Details" column is hidden (it was off-screen to the right); a chevron on the
   pinned first column shows the row can be opened. */
.row-chev { display: none; }
@media (max-width: 900px) {
  .aircraftcontent:not(.tbl-fit) #aircrafttable tr.summary > :last-child,
  .enginecontent:not(.tbl-fit) #enginetable tr.summary > :last-child { display: none !important; }
  .aircraftcontent:not(.tbl-fit) #aircrafttable tbody.rows > tr.summary,
  .enginecontent:not(.tbl-fit) #enginetable tbody.rows > tr.summary { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .aircraftcontent:not(.tbl-fit) #aircrafttable tbody.rows > tr.summary > td:first-child,
  .enginecontent:not(.tbl-fit) #enginetable tbody.rows > tr.summary > td:first-child { padding-right: 40px !important; }
  .aircraftcontent:not(.tbl-fit) .row-chev, .enginecontent:not(.tbl-fit) .row-chev {
    display: block; position: absolute; right: 10px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
    border: 2px solid currentColor; opacity: .55; transition: transform .25s ease, opacity .2s; }
  .row-chev::before { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  tbody[data-open] .row-chev { transform: rotate(180deg); opacity: .9; }
  tbody.rows:hover .row-chev { opacity: .9; }
}

/* old "Images →" link bullets: the animated arrow is positioned for the old layout — hide it inside the panel */
.sd .arrowlink, .sd .arrowmobilelink { display: none !important; }

/* dark mode, phones: the pinned first column needs light text on the navy rows (and navy when the row is light) */
@media (max-width: 900px) {
  .dark-mode #aircrafttable thead tr > :first-child, .dark-mode #enginetable thead tr > :first-child,
  .dark-mode #aircrafttable thead tr > :first-child *, .dark-mode #enginetable thead tr > :first-child * { color: #fff !important; }
  .dark-mode #aircrafttable tbody.rows > tr.summary > :first-child, .dark-mode #aircrafttable tbody.rows > tr.summary > :first-child a,
  .dark-mode #enginetable tbody.rows > tr.summary > :first-child, .dark-mode #enginetable tbody.rows > tr.summary > :first-child a { color: #fff !important; }
  .dark-mode #aircrafttable tbody.rows:hover > tr.summary > :first-child, .dark-mode #aircrafttable tbody.rows:hover > tr.summary > :first-child a,
  .dark-mode #aircrafttable tbody.rows[data-open] > tr.summary > :first-child, .dark-mode #aircrafttable tbody.rows[data-open] > tr.summary > :first-child a,
  .dark-mode #enginetable tbody.rows:hover > tr.summary > :first-child, .dark-mode #enginetable tbody.rows:hover > tr.summary > :first-child a,
  .dark-mode #enginetable tbody.rows[data-open] > tr.summary > :first-child, .dark-mode #enginetable tbody.rows[data-open] > tr.summary > :first-child a { color: #1e2e5e !important; }
}

/* ---------- sortable column headers ----------
   Self-contained arrows (the old ones relied on tablesorter/arrow_*.png). A faint up/down pair shows a
   column can be sorted; the sorted column shows a solid up (A→Z / low→high) or down arrow. */
#aircrafttable th.sortable, #enginetable th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
#aircrafttable th.sortable::after, #enginetable th.sortable::after {
  content: ""; display: inline-block; position: static; vertical-align: -2px; width: 9px; height: 13px; margin: 0 0 0 7px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z M4.5 13 0 8h9z' fill='%231e2e5e' fill-opacity='.28'/%3E%3C/svg%3E");
  transition: opacity .2s; }
#aircrafttable th.sortable:hover::after, #enginetable th.sortable:hover::after { opacity: .9; filter: contrast(2); }
#aircrafttable th.sortable.asc::after, #enginetable th.sortable.asc::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%23c6a361'/%3E%3Cpath d='M4.5 13 0 8h9z' fill='%231e2e5e' fill-opacity='.2'/%3E%3C/svg%3E"); }
#aircrafttable th.sortable.desc::after, #enginetable th.sortable.desc::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%231e2e5e' fill-opacity='.2'/%3E%3Cpath d='M4.5 13 0 8h9z' fill='%23c6a361'/%3E%3C/svg%3E"); }
#aircrafttable th.sortable:focus-visible, #enginetable th.sortable:focus-visible { outline: 2px solid #c6a361; outline-offset: 2px; border-radius: 4px; }
.dark-mode #aircrafttable th.sortable:not(.asc):not(.desc)::after, .dark-mode #enginetable th.sortable:not(.asc):not(.desc)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z M4.5 13 0 8h9z' fill='%23ffffff' fill-opacity='.4'/%3E%3C/svg%3E"); }
.dark-mode #aircrafttable th.sortable.asc::after, .dark-mode #enginetable th.sortable.asc::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%23c6a361'/%3E%3Cpath d='M4.5 13 0 8h9z' fill='%23ffffff' fill-opacity='.25'/%3E%3C/svg%3E"); }
.dark-mode #aircrafttable th.sortable.desc::after, .dark-mode #enginetable th.sortable.desc::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%23ffffff' fill-opacity='.25'/%3E%3Cpath d='M4.5 13 0 8h9z' fill='%23c6a361'/%3E%3C/svg%3E"); }

/* =====================================================================
   Aircraft / Engines page extras (tables-ui.js)
   ===================================================================== */

/* ---------- 1. filter chips ---------- */
.tbl-filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 14px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tbl-filters .chip { font: inherit; font-size: 14px; line-height: 1.2; color: #1e2e5e; background: #fff; border: 1.5px solid #c9d1e3;
  border-radius: 2em; padding: 7px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.tbl-filters .chip:hover { border-color: #1e2e5e; }
.tbl-filters .chip.is-on { background: #1e2e5e; border-color: #1e2e5e; color: #fff; }
.tbl-filters .chip:focus-visible { outline: 2px solid #c6a361; outline-offset: 2px; }
.chip-n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: rgba(30,46,94,.09); text-align: center; }
.chip.is-on .chip-n { background: rgba(255,255,255,.2); }
.tbl-filter-status { font-size: 13px; color: #6b7280; min-height: 0; margin: -6px 0 8px; }
.tbl-filter-status:empty { display: none; }
.tbl-empty { text-align: center; padding: 28px 16px; color: #4b5563; border: 1.5px dashed #c9d1e3; border-radius: 12px; margin: 6px 0 10px; }
.tbl-empty[hidden] { display: none; }
.chip-reset { font: inherit; color: #1e2e5e; background: none; border: 0; border-bottom: 2px solid #c6a361; padding: 0 0 1px; margin-left: 6px; cursor: pointer; }
tbody.rows.flt-hide { display: none !important; }
.dark-mode .tbl-filters .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.dark-mode .tbl-filters .chip:hover { border-color: #fff; }
.dark-mode .tbl-filters .chip.is-on { background: #fff; color: #1e2e5e; border-color: #fff; }
.dark-mode .chip-n { background: rgba(255,255,255,.15); }
.dark-mode .chip.is-on .chip-n { background: rgba(30,46,94,.1); }
.dark-mode .tbl-filter-status { color: #c9d3ee; }
.dark-mode .tbl-empty { color: #c9d3ee; border-color: rgba(255,255,255,.3); }
.dark-mode .chip-reset { color: #fff; }
@media (max-width: 900px) {
  .tbl-filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; margin-left: -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tbl-filters::-webkit-scrollbar { display: none; }
  .chip-group { flex-wrap: nowrap; }
  .chip-group + .chip-group { padding-left: 8px; border-left: 1px solid #dfe3ec; }
  .tbl-filters .chip { font-size: 13.5px; padding: 6px 12px; }
}

/* ---------- 2. "not listed?" banner ---------- */
.tbl-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin: 26px 0 10px;
  padding: 22px 26px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #1e2e5e 0%, #2a3f7c 100%);
  box-shadow: 0 8px 26px rgba(30,46,94,.22); text-align: left; }
.tbl-cta h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: #fff; text-align: left; }
.tbl-cta p { margin: 0; font-size: 15px; line-height: 1.5; color: #d6ddf0; max-width: 640px; text-align: left; }
.tbl-cta-text { flex: 1 1 380px; min-width: 0; }
.tbl-cta-btn { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; background: #c6a361; color: #16213f !important; font-weight: 700;
  text-decoration: none !important; padding: 11px 22px; border-radius: 2em; transition: background .2s, transform .2s; white-space: nowrap; }
.tbl-cta-btn:hover, .tbl-cta-btn:focus-visible { background: #d6b77a; transform: translateY(-1px); outline: none; }
.dark-mode .tbl-cta { background: #fff; color: #1e2e5e; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.dark-mode .tbl-cta h3 { color: #1e2e5e; }
.dark-mode .tbl-cta p { color: #4b587e; }
@media (max-width: 600px) {
  .tbl-cta { padding: 18px; }
  .tbl-cta h3 { font-size: 18px; }
  .tbl-cta-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* ---------- 3. sticky column headers (desktop table layout) ---------- */
@media (min-width: 901px) {
  .aircraftcontent:not(.tbl-scroll) #aircrafttable thead th, .enginecontent:not(.tbl-scroll) #enginetable thead th {
    position: sticky; top: var(--jmi-hdr, 0px); z-index: 6; background: #fff; transition: box-shadow .2s; }
  #aircrafttable.thead-stuck thead th, #enginetable.thead-stuck thead th { box-shadow: 0 6px 10px -6px rgba(30,46,94,.35); }
  .dark-mode .aircraftcontent:not(.tbl-scroll) #aircrafttable thead th, .dark-mode .enginecontent:not(.tbl-scroll) #enginetable thead th { background: #1e2e5e; }
  .dark-mode #aircrafttable.thead-stuck thead th, .dark-mode #enginetable.thead-stuck thead th { box-shadow: 0 6px 10px -6px rgba(0,0,0,.6); }
}
@media (max-width: 900px) {
  .aircraftcontent.tbl-fit #aircrafttable thead th, .enginecontent.tbl-fit #enginetable thead th {
    position: sticky; top: var(--jmi-hdr, 0px); z-index: 6; background: #fff; }
  .dark-mode .aircraftcontent.tbl-fit #aircrafttable thead th, .dark-mode .enginecontent.tbl-fit #enginetable thead th { background: #1e2e5e; }
}

/* ---------- 4. aircraft <-> engine links + deep links ---------- */
.sd-xlinks { display: flex; flex-direction: column; gap: 6px; }
.sd .sd-xlink { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px;
  color: inherit !important; text-decoration: none !important; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  font-size: 14.5px; transition: background .2s, border-color .2s; }
.sd .sd-xlink span { color: #c6a361; font-weight: 700; transition: transform .2s; }
.sd .sd-xlink:hover, .sd .sd-xlink:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); outline: none; }
.sd .sd-xlink:hover span { transform: translateX(3px); }
.dark-mode .sd .sd-xlink { background: #f3f6fc; border-color: #dfe5f1; }
.dark-mode .sd .sd-xlink span { color: #9a7535; }
.dark-mode .sd .sd-xlink:hover { background: #e8eefb; border-color: #1e2e5e; }
tbody.rows { scroll-margin-top: calc(var(--jmi-hdr, 80px) + 60px); }
@keyframes jmi-flash { 0%, 100% { filter: none; } 30% { filter: drop-shadow(0 0 10px #c6a361); } }
tbody.rows.row-flash::before { animation: jmi-flash 1.5s ease 1; }

/* ---------- 5. PDF column: icons, and "Upon Request" looks different from Download ---------- */
#aircrafttable a.download, #aircrafttable a.sold, #enginetable a.download, #enginetable a.sold {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; }
.cell-ico { width: 16px !important; height: 16px !important; flex: 0 0 auto; fill: currentColor; transform: none !important; margin: 0 !important; }
#aircrafttable a.sold, #enginetable a.sold { border-style: dashed !important; font-style: italic; }
#aircrafttable a.sold .cell-ico, #enginetable a.sold .cell-ico { opacity: .75; }

/* ---------- search box (replaces the filter chips) ---------- */
.tbl-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 16px; }
.tbl-search-box { position: relative; display: flex; align-items: center; flex: 0 1 460px; min-width: 0; margin: 0; }
.tbl-search-box svg { position: absolute; left: 14px; width: 18px !important; height: 18px !important; fill: #6a7796; pointer-events: none; transform: none !important; margin: 0 !important; }
.tbl-search input { width: 100%; font: inherit; font-size: 15px; color: #1e2e5e; background: #fff; border: 1.5px solid #c9d1e3; border-radius: 2em;
  padding: 10px 40px 10px 42px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; margin: 0; }
.tbl-search input::placeholder { color: #8b95ad; }
.tbl-search input:focus { border-color: #1e2e5e; box-shadow: 0 0 0 3px rgba(198,163,97,.35); }
.tbl-search input::-webkit-search-cancel-button { display: none; }
.tbl-search-clear { position: absolute; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(30,46,94,.08);
  color: #1e2e5e; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tbl-search-clear[hidden] { display: none; }
.tbl-search-clear:hover { background: rgba(30,46,94,.16); }
.tbl-search-count { font-size: 13px; color: #6b7280; }
.dark-mode .tbl-search input { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.dark-mode .tbl-search input::placeholder { color: #aeb9d8; }
.dark-mode .tbl-search input:focus { border-color: #fff; }
.dark-mode .tbl-search-box svg { fill: #c9d3ee; }
.dark-mode .tbl-search-clear { background: rgba(255,255,255,.15); color: #fff; }
.dark-mode .tbl-search-count { color: #c9d3ee; }
@media (max-width: 600px) { .tbl-search-box { flex-basis: 100%; } .tbl-search input { font-size: 16px; } }  /* 16px stops iOS zooming in */

/* ---------- availability badge: pinned to the right of the model column, all the same width ---------- */
#aircrafttable tr.summary > td:first-child, #enginetable tr.summary > td:first-child { position: relative; }
#aircrafttable tr.summary > td:first-child .avail-badge, #enginetable tr.summary > td:first-child .avail-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; width: 112px; text-align: center; float: none; }
@media (min-width: 901px) {
  /* room for the badge: wider model column, text kept clear of the badge */
  #aircrafttable thead th:first-child, #enginetable thead th:first-child { width: 25%; }
  #aircrafttable tbody.rows > tr.summary > td:first-child, #enginetable tbody.rows > tr.summary > td:first-child { padding-right: 132px !important; }
}
@media (max-width: 900px) {
  .aircraftcontent.tbl-fit #aircrafttable thead th:first-child, .enginecontent.tbl-fit #enginetable thead th:first-child { width: 27%; }
  .aircraftcontent.tbl-fit #aircrafttable tbody.rows > tr.summary > td:first-child,
  .enginecontent.tbl-fit #enginetable tbody.rows > tr.summary > td:first-child { padding-right: 132px !important; }
  /* phone scrolling table: badge sits under the model instead */
  .aircraftcontent:not(.tbl-fit) #aircrafttable tr.summary > td:first-child .avail-badge,
  .enginecontent:not(.tbl-fit) #enginetable tr.summary > td:first-child .avail-badge {
    position: static; transform: none; display: block; width: max-content; margin: 5px 0 0; text-align: left; }
}

/* ---------- PDF column: Download and Upon Request buttons are the same size ---------- */
#aircrafttable a.download, #aircrafttable a.sold, #enginetable a.download, #enginetable a.sold {
  width: 172px !important; max-width: 100%; box-sizing: border-box !important; padding-left: 10px !important; padding-right: 10px !important;
  font-size: 15px !important; }
@media (max-width: 900px) {
  .aircraftcontent:not(.tbl-fit) #aircrafttable a.download, .aircraftcontent:not(.tbl-fit) #aircrafttable a.sold,
  .enginecontent:not(.tbl-fit) #enginetable a.download, .enginecontent:not(.tbl-fit) #enginetable a.sold {
    width: 152px !important; max-width: none; font-size: 13.5px !important; }
}

/* search on the right, its right edge in line with the table (the table sits inside 10px padding) */
.tbl-search { justify-content: flex-end; padding: 0 10px; }
.tbl-search-box { flex: 0 1 340px; }
.tbl-search-count { order: -1; }
@media (max-width: 900px) {
  .aircraftcontent:not(.tbl-fit) .tbl-search, .enginecontent:not(.tbl-fit) .tbl-search { padding: 0; }
}
@media (max-width: 600px) { .tbl-search-box { flex: 1 1 100%; } .tbl-search-count { order: 0; } }

/* ---------- "New" tag (listed in the last 30 days) ---------- */
.new-badge { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 1px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; color: #16213f; white-space: nowrap;
  background: linear-gradient(110deg, #c6a361 0%, #e7cf9c 45%, #c6a361 60%); background-size: 220% 100%; animation: jmi-new-sheen 4.5s ease-in-out 1s 2; }
@keyframes jmi-new-sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -20% 0; } }   /* two soft sheens, then still */

/* ---------- availability dot: a soft "live" pulse (not on Under LOI) ---------- */
.avail-badge.b-sale::before, .avail-badge.b-lease::before, .avail-badge.b-both::before { animation: jmi-pulse 2.8s ease-out infinite; }
@keyframes jmi-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 70%, 100% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .avail-badge::before, .new-badge { animation: none !important; } }

/* ---------- Copy link button ---------- */
.sd .sd-copy.is-copied { background: rgba(47,191,113,.18); border-color: #2fbf71; }
.dark-mode .sd .sd-copy.is-copied { background: #e7f8ef; border-color: #15803d; color: #15803d !important; }

/* ---------- "See our recent deliveries" in the banner ---------- */
.tbl-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 0 0 auto; }
.tbl-cta-link { color: #d6ddf0 !important; font-size: 14px; text-decoration: none !important; border-bottom: 1px solid rgba(198,163,97,.8); padding-bottom: 1px; }
.tbl-cta-link:hover { color: #fff !important; border-bottom-color: #c6a361; }
.dark-mode .tbl-cta-link { color: #4b587e !important; }
.dark-mode .tbl-cta-link:hover { color: #1e2e5e !important; }
@media (max-width: 600px) { .tbl-cta-actions { width: 100%; } }

/* ---------- Deliveries: same arrows, search hiding, sticky header ---------- */
.deliverycontent tr.listtheme.flt-hide { display: none !important; }
.deliverycontent th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.deliverycontent th.sortable::after { content: ""; display: inline-block; position: static; vertical-align: -2px; width: 9px; height: 13px; margin: 0 0 0 7px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z M4.5 13 0 8h9z' fill='%231e2e5e' fill-opacity='.28'/%3E%3C/svg%3E"); }
.deliverycontent th.sortable.asc::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%23c6a361'/%3E%3Cpath d='M4.5 13 0 8h9z' fill='%231e2e5e' fill-opacity='.2'/%3E%3C/svg%3E"); }
.deliverycontent th.sortable.desc::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z' fill='%231e2e5e' fill-opacity='.2'/%3E%3Cpath d='M4.5 13 0 8h9z' fill='%23c6a361'/%3E%3C/svg%3E"); }
.dark-mode .deliverycontent th.sortable:not(.asc):not(.desc)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 13'%3E%3Cpath d='M4.5 0 9 5H0z M4.5 13 0 8h9z' fill='%23ffffff' fill-opacity='.4'/%3E%3C/svg%3E"); }
.deliverycontent th.sortable:focus-visible { outline: 2px solid #c6a361; outline-offset: 2px; border-radius: 4px; }
.deliverycontent table tbody.rows { transition: opacity .15s; }
.deliverycontent table.is-sorting tbody.rows { opacity: .35; }
@media (min-width: 901px) {
  .deliverycontent:not(.tbl-scroll) table thead th { position: sticky; top: var(--jmi-hdr, 0px); z-index: 6; background: #fff; }
  .dark-mode .deliverycontent:not(.tbl-scroll) table thead th { background: #1e2e5e; }
}
@media (max-width: 900px) { .deliverycontent:not(.tbl-fit) .tbl-search { padding: 0; } }

/* "Looking for…" banner: same left/right inset as the table, and fades up into view */
.tbl-cta { margin-left: 10px; margin-right: 10px; }
@media (max-width: 900px) {
  .aircraftcontent:not(.tbl-fit) .tbl-cta, .enginecontent:not(.tbl-fit) .tbl-cta { margin-left: 0; margin-right: 0; }
}
.tbl-cta.fade-ready { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.tbl-cta.fade-ready.fade-in { opacity: 1; transform: none; }

/* availability badge: the whole outline pulses (a soft ring in the badge's own colour) */
.avail-badge.b-sale, .avail-badge.b-lease, .avail-badge.b-both { animation: jmi-badge-ring 2.6s ease-out infinite; }
.avail-badge.b-sale  { --ring: 31,157,97; }
.avail-badge.b-lease { --ring: 183,121,31; }
.avail-badge.b-both  { --ring: 47,91,211; }
@keyframes jmi-badge-ring {
  0%   { box-shadow: 0 0 0 0 rgba(var(--ring), .55); }
  70%  { box-shadow: 0 0 0 7px rgba(var(--ring), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--ring), 0); }
}
.avail-badge::before { animation: none !important; }   /* ring replaces the dot pulse */
.dark-mode .avail-badge.b-sale, .dark-mode .avail-badge.b-lease, .dark-mode .avail-badge.b-both { animation-name: jmi-badge-ring-dark; }
@keyframes jmi-badge-ring-dark {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .avail-badge { animation: none !important; } }

/* rows open/close with a height animation: stop the browser's scroll anchoring from jumping the page meanwhile */
#aircrafttable, #enginetable, .aircraftcontent, .enginecontent { overflow-anchor: none; }
/* the old "details-reveal" slide (table.css) fights the height animation and restarts at the start of a collapse */
#aircrafttable tbody[data-open] .details, #enginetable tbody[data-open] .details { -webkit-animation: none !important; animation: none !important; }

/* PDF column: centre the Download / Upon Request button under the centred "PDF" heading */
#aircrafttable tr.summary > td:nth-child(5), #enginetable tr.summary > td:nth-child(5) { text-align: center !important; }
#aircrafttable tr.summary > td:nth-child(5) > a, #enginetable tr.summary > td:nth-child(5) > a { margin-left: auto !important; margin-right: auto !important; }


/* ===================================================================================
   Deliveries: same row design as the aircraft / engine tables
   (one rounded white card per row with a soft shadow, navy layer on hover,
   left-aligned text, same header spacing, same dark-mode colours)
   =================================================================================== */
.deliverycontent table { border-collapse: collapse; font-weight: 500; }
.deliverycontent tbody.rows { position: relative; z-index: 2; border-radius: .35em; }
.deliverycontent tbody.rows > tr { background: transparent !important; }
.deliverycontent tbody.rows::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: .35em;
  background-color: #fff; box-shadow: 0 0 .5em rgba(0,0,0,.3); transition: background-color .3s, box-shadow .3s; }
.deliverycontent tbody.rows:hover::before { background-color: #1e2e5ecc; }
.deliverycontent tbody.rows:hover, .deliverycontent tbody.rows:hover td { color: #fff; }
.deliverycontent tbody.rows td { transition: color .3s; }
/* the old hover painted the <tr> (square corners + big glow) — the card layer does it now */
.deliverycontent tr.listtheme.DFlist:hover,
.dark-mode .deliverycontent tr.listtheme.DFlist:hover { background-color: transparent !important; box-shadow: none !important; -webkit-box-shadow: none !important; }

/* desktop layout (and phones when the desktop look fits) */
@media (min-width: 901px) {
  .deliverycontent tbody.rows > tr > td { text-align: left !important; padding: 0 15px !important; height: 57px; font-weight: 500; }
  .deliverycontent thead th { text-align: left !important; padding: 15px 25px 15px 15px !important; }
}
@media (max-width: 900px) {
  .deliverycontent.tbl-fit tbody.rows > tr > td { text-align: left !important; padding: 0 15px !important; height: 57px; font-weight: 500; }
  .deliverycontent.tbl-fit thead th { text-align: left !important; padding: 15px 25px 15px 15px !important; }
  /* scroll layout: inset so the card shadows aren't clipped, like the aircraft table */
  .deliverycontent:not(.tbl-fit) .content { padding: 6px 4px 10px !important; }
  .deliverycontent:not(.tbl-fit) tbody.rows > tr > td { text-align: left !important; font-weight: 500; padding: 14px 12px !important; }
  .deliverycontent:not(.tbl-fit) thead th { text-align: left !important; }
  .deliverycontent:not(.tbl-fit) table { border-collapse: collapse !important; }
}

/* pinned first column (scroll layouts) follows the card: white, light navy on hover, rounded left edge */
@media (max-width: 900px) {
  .deliverycontent:not(.tbl-fit) tbody.rows > tr > :first-child {
    background: #fff !important; box-shadow: 2px 0 4px rgba(0,0,0,.08);
    border-top-left-radius: .35em; border-bottom-left-radius: .35em; }
  .deliverycontent:not(.tbl-fit) tbody.rows:hover > tr > :first-child,
  .deliverycontent tr.listtheme.DFlist:hover > :first-child { background: #4b587e !important; color: #fff !important; }
  .deliverycontent.tbl-fit tbody.rows > tr > :first-child,
  .deliverycontent.tbl-fit tbody.rows:hover > tr > :first-child { background: transparent !important; box-shadow: none !important; color: inherit !important; }
}
@media (min-width: 901px) {
  .tbl-scroll.deliverycontent tbody.rows > tr > :first-child { border-top-left-radius: .35em; border-bottom-left-radius: .35em; }
  .tbl-scroll.deliverycontent tbody.rows:hover > tr > :first-child,
  .tbl-scroll.deliverycontent tr.listtheme.DFlist:hover > :first-child { background: #4b587e !important; color: #fff !important; }
}

/* dark mode: navy cards, light blue on hover with navy text (same as aircraft / engines) */
.dark-mode .deliverycontent tbody.rows::before { background-color: #1e2e5e; box-shadow: 0 0 .5em rgba(0,0,0,.45); }
.dark-mode .deliverycontent tbody.rows:hover::before { background-color: #d6e1ff; }
.dark-mode .deliverycontent tbody.rows:hover, .dark-mode .deliverycontent tbody.rows:hover td,
.dark-mode .deliverycontent tbody.rows:hover .listtheme { color: #1e2e5e !important; }
@media (max-width: 900px) {
  .dark-mode .deliverycontent:not(.tbl-fit) tbody.rows > tr > :first-child { background: #1e2e5e !important; color: #fff !important; }
  .dark-mode .deliverycontent:not(.tbl-fit) tbody.rows:hover > tr > :first-child,
  .dark-mode .deliverycontent tr.listtheme.DFlist:hover > :first-child { background: #d6e1ff !important; color: #1e2e5e !important; }
  .dark-mode .deliverycontent.tbl-fit tbody.rows > tr > :first-child { background: transparent !important; }
}
@media (min-width: 901px) {
  .dark-mode .tbl-scroll.deliverycontent tbody.rows:hover > tr > :first-child,
  .dark-mode .tbl-scroll.deliverycontent tr.listtheme.DFlist:hover > :first-child { background: #d6e1ff !important; color: #1e2e5e !important; }
}
