  /* FF_TABS_ONDERSTREEPT_V1: één actieve tabstijl in het hele portaal. */
  body :is(.ff-tab, .assetgroep-top-tab, .taak-tabknop, .hoofdgroep-taak-tabknop),
  body [role="tablist"] [role="tab"] {
    position: relative !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ff-navy, #1f3b61) !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  body :is(.ff-tab, .assetgroep-top-tab, .taak-tabknop, .hoofdgroep-taak-tabknop):hover,
  body [role="tablist"] [role="tab"]:hover {
    background: #f4f8fd !important;
    color: var(--ff-tab-accent, #1473e6) !important;
  }

  body :is(
    .ff-tab.ff-tab-active,
    .assetgroep-top-tab.is-active,
    .assetgroep-top-tab[aria-current="page"],
    .taak-tabknop.actief,
    .taak-tabknop.active,
    .taak-tabknop.is-actief,
    .hoofdgroep-taak-tabknop.actief,
    .hoofdgroep-taak-tabknop.active,
    .hoofdgroep-taak-tabknop.is-actief
  ),
  body .assetgroep-tabmenu-card .assetgroep-top-tab.is-active,
  body .assetgroep-tabmenu-card .assetgroep-top-tab[aria-current="page"],
  body .taak-tabnavigatie .taak-tabknop.actief,
  body .taak-tabnavigatie .taak-tabknop.active,
  body .taak-tabnavigatie .taak-tabknop.is-actief,
  body .taak-tabnavigatie .taak-tabknop[aria-selected="true"],
  body [role="tablist"] [role="tab"][aria-selected="true"] {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ff-tab-accent, #1473e6) !important;
    box-shadow: none !important;
    text-decoration-line: underline !important;
    text-decoration-color: var(--ff-tab-accent, #1473e6) !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 9px !important;
    text-decoration-skip-ink: none !important;
  }

  body .taak-tabnavigatie .taak-tabknop:is(
    .actief,
    .active,
    .is-actief,
    [aria-selected="true"]
  ):focus,
  body .taak-tabnavigatie .taak-tabknop:is(
    .actief,
    .active,
    .is-actief,
    [aria-selected="true"]
  ):focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
  }

  body :is(
    .ff-tab.ff-tab-active,
    .assetgroep-top-tab.is-active,
    .assetgroep-top-tab[aria-current="page"],
    .taak-tabknop.actief,
    .taak-tabknop.active,
    .taak-tabknop.is-actief,
    .hoofdgroep-taak-tabknop.actief,
    .hoofdgroep-taak-tabknop.active,
    .hoofdgroep-taak-tabknop.is-actief
  ):hover,
  body .assetgroep-tabmenu-card .assetgroep-top-tab.is-active:hover,
  body .assetgroep-tabmenu-card .assetgroep-top-tab[aria-current="page"]:hover,
  body .taak-tabnavigatie .taak-tabknop.actief:hover,
  body .taak-tabnavigatie .taak-tabknop.active:hover,
  body .taak-tabnavigatie .taak-tabknop.is-actief:hover,
  body .taak-tabnavigatie .taak-tabknop[aria-selected="true"]:hover,
  body [role="tablist"] [role="tab"][aria-selected="true"]:hover {
    background: transparent !important;
    color: var(--ff-tab-accent, #1473e6) !important;
  }

  /* Hoofdnavigatie gebruikt dezelfde tekstbrede actieve onderstreping. */
  body .nav > a[aria-current="page"],
  body .nav .nav-dropdown-button.nav-current {
    background: transparent !important;
    color: var(--ff-tab-accent, #1473e6) !important;
    text-decoration-line: underline !important;
    text-decoration-color: var(--ff-tab-accent, #1473e6) !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 7px !important;
    text-decoration-skip-ink: none !important;
  }

  body .nav-dropdown-menu a[aria-current="page"] {
    color: var(--ff-tab-accent, #1473e6) !important;
    text-decoration-line: underline !important;
    text-decoration-color: var(--ff-tab-accent, #1473e6) !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
    text-decoration-skip-ink: none !important;
  }

  /* FF_CUSTOM_DROPDOWNS_V1 */
  .ff-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  .ff-dropdown-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  .ff-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--ff-control-height, 46px);
    padding: 10px 14px 10px 12px;
    border: 1px solid #dce5ef !important;
    border-radius: 10px;
    background: #fff !important;
    color: #25364d !important;
    font: inherit;
    font-weight: 400 !important;
    text-align: left !important;
    text-align-last: left !important;
    cursor: pointer;
  }

  .ff-dropdown-button::after {
    content: '';
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-left: 12px;
    border-right: 2px solid #91a5bf;
    border-bottom: 2px solid #91a5bf;
    transform: rotate(45deg) translateY(-2px);
  }

  .ff-dropdown-button:focus-visible,
  .ff-dropdown.is-open .ff-dropdown-button {
    border-color: #2563eb !important;
    outline: 2px solid rgba(29, 53, 87, 0.14);
    outline-offset: 0;
  }

  .ff-dropdown-button:disabled {
    background: #e8eef5 !important;
    border-color: #dce5ef !important;
    color: #64748b !important;
    cursor: not-allowed;
  }

  .ff-dropdown-menu {
    position: absolute;
    z-index: 11000;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 0 !important;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  }

  .ff-dropdown.is-open .ff-dropdown-menu {
    display: block;
  }

  .ff-dropdown-option {
    display: block !important;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0 !important;
    background: #fff !important;
    color: #25364d !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    font: inherit;
    text-align: left !important;
    text-align-last: left !important;
    cursor: pointer;
  }

  .ff-dropdown-option:hover,
  .ff-dropdown-option:focus-visible,
  .ff-dropdown-option.is-selected {
    background: #eef3f8 !important;
    color: #1d3557 !important;
    outline: none;
  }

  .ff-dropdown-menu [hidden] {display:none!important}
  .ff-dropdown-menu > input[type=search] {position:sticky;top:0;z-index:1;width:100%;box-sizing:border-box;margin:0;background:white}
  .ff-dropdown-menu > [role=status] {padding:8px 14px}
  .ff-dropdown-option:last-child {
    border-bottom: 0 !important;
  }

  /* FF_KLANTEN_OVERZICHT_TABEL_V1 */
  body .klanten-overzicht-card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body .klanten-overzicht-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-inline: 0 !important;
  }

  body table.klanten-overzicht-table {
    width: 100% !important;
    min-width: 760px !important;
    margin: 0 !important;
    table-layout: auto !important;
  }

  body table.klanten-overzicht-table th:first-child,
  body table.klanten-overzicht-table td:first-child {
    padding-left: 16px !important;
  }

  body table.klanten-overzicht-table tbody tr:last-child td {
    border-bottom: 0 !important;
  }
