/*
 * The admin panel on laptops, tablets and phones.
 *
 * One place for the rules that keep every screen inside the window below the desktop
 * layout: the drawer, the top bar, the page title, lists and their toolbars, forms,
 * dialogs and tables. Loaded after every other stylesheet in partials/head.ejs, so a
 * selector of the same weight here wins.
 *
 * Everything sits inside a max-width query: at 1200px and wider (the fixed sidebar)
 * nothing in this file applies, so the desktop layout is exactly what it was.
 *
 *   1199.98px and below  the sidebar is a drawer
 *    991.98px and below  tablets
 *    767.98px and below  phones, either way up: tables turn into cards
 *    575.98px and below  phones upright: tighter spacing, toolbars stack
 */

/* --- Spacing ------------------------------------------------------------- */

/* The theme's spacing utilities (p-24, px-24, mb-24, gap-24 …) all read a --size-*
   step, and nothing else does, so the steps themselves shrink rather than every
   screen being re-padded one by one. 24px of card padding on each side, twice over
   (the page and the card), left a phone barely 280px for a form field. */
@media (max-width: 991.98px) {
  :root {
    --size-24: 1.25rem;
    --size-28: 1.25rem;
    --size-32: 1.5rem;
    --size-36: 1.75rem;
    --size-40: 2rem;
    --size-44: 2.25rem;
    --size-48: 2.5rem;
    --size-50: 2.5rem;
    --size-56: 2.75rem;
    --size-60: 3rem;
    --size-64: 3.25rem;
    --size-72: 3.5rem;
    --size-76: 3.75rem;
    --size-80: 4rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --size-20: 1rem;
    --size-24: 1rem;
    --size-28: 1.125rem;
    --size-32: 1.25rem;
    --size-36: 1.375rem;
    --size-40: 1.5rem;
    --size-44: 1.75rem;
    --size-48: 2rem;
    --size-50: 2rem;
    --size-56: 2.25rem;
    --size-60: 2.5rem;
    --size-64: 2.75rem;
    --size-72: 3rem;
    --size-76: 3rem;
    --size-80: 3.25rem;
    --size-90: 3.5rem;
    --size-110: 4rem;
    --size-120: 4.5rem;
  }
}

/* --- The drawer (below 1200px) ------------------------------------------- */

@media (max-width: 1199.98px) {
  /* 100vh runs on under a phone's address bar, so the last rows of the menu sat
     behind it; dvh is the height actually showing. Never wider than the screen
     less a strip of the dimmed page to tap away on. */
  .sidebar {
    height: 100vh;
    height: 100dvh;
    width: min(17.1875rem, calc(100vw - 3.5rem));
    transition: inset-inline-start 0.25s ease;
  }

  /* The page behind the open drawer stays put: a swipe on the menu used to scroll
     the screen under it once the menu reached its end. */
  body.overlay-active {
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .sidebar-menu-area {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

/* --- The bar across the top ---------------------------------------------- */

@media (max-width: 575.98px) {
  .navbar-header {
    padding-inline: 1rem;
  }

  .navbar-header > .row {
    flex-wrap: nowrap;
  }

  .navbar-header .sidebar-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-inline-start: -0.5rem;
    border-radius: 10px;
  }

  .navbar-header .sidebar-mobile-toggle:active {
    background-color: var(--neutral-100);
  }

  /* The profile menu opens from the right edge and stays on the screen. */
  .navbar-header .dropdown-menu {
    max-width: calc(100vw - 1.5rem);
  }
}

/* --- The page ------------------------------------------------------------ */

@media (max-width: 1199.98px) {
  .dashboard-main {
    min-width: 0;
  }

  .dashboard-main-body {
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .dashboard-main-body {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .dashboard-main-body {
    padding: 0.875rem 0.75rem 1.25rem;
  }

  /* The title and the breadcrumb: the trail wraps under the title instead of
     running off the edge with a long screen name. */
  .dashboard-main-body > .d-flex:first-child {
    row-gap: 0.25rem !important;
  }

  .dashboard-main-body > .d-flex:first-child > ul {
    flex-wrap: wrap;
    row-gap: 0;
    font-size: 0.8125rem;
  }

  .dashboard-main-body > .d-flex:first-child > ul iconify-icon {
    font-size: 1rem;
  }

  .d-footer {
    padding: 1rem;
    text-align: center;
  }

  .d-footer > .row {
    justify-content: center !important;
  }

  .d-footer p {
    font-size: 0.75rem;
  }
}

/* Long words — an email address, a web address, a slug — break rather than push
   the screen sideways. Tables keep their own rules (they scroll, or stack below). */
@media (max-width: 767.98px) {
  .dashboard-main-body :is(p, li, dd, dt, label, .alert, .form-text, .card-body > div, h1, h2, h3, h4, h5, h6) {
    overflow-wrap: break-word;
  }

  .dashboard-main-body code,
  .dashboard-main-body .font-monospace {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* --- Cards ---------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .dashboard-main-body .card-header {
    min-width: 0;
  }

  /* A card's title row with buttons beside it: the buttons move under the title.
     Not a column: a column that wraps takes its width from its widest child. */
  .dashboard-main-body .card-header.d-flex:not(.flex-column),
  .dashboard-main-body .card-header > .d-flex:not(.flex-column) {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  /* adminModern.css wraps every .d-flex in a card header below 992px, a column too,
     and a wrapping column is as wide as its widest child: Migration History's
     filters ran 60px off a phone. A column header stays one column. */
  .dashboard-main-body .card-header.d-flex.flex-column,
  .dashboard-main-body .card-header .d-flex.flex-column {
    flex-wrap: nowrap;
  }
}

/* --- Rows of things ------------------------------------------------------- */

/* A row laid out "this on the left, that on the right" (a heading and its buttons,
   a label and its control) wraps on a phone when the two do not fit side by side,
   instead of running past the edge. When they fit nothing moves. */
@media (max-width: 767.98px) {
  .dashboard-main-body .d-flex.justify-content-between:not(.flex-nowrap):not(.flex-column),
  .dashboard-main-body .d-flex.justify-content-end:not(.flex-nowrap):not(.flex-column),
  .dashboard-main-body .d-flex.gap-2:not(.flex-nowrap):not(.flex-column):has(> .btn),
  .dashboard-main-body .d-flex.gap-3:not(.flex-nowrap):not(.flex-column):has(> .btn) {
    flex-wrap: wrap;
  }

  .dashboard-main-body .d-flex.justify-content-between:not(.flex-nowrap):not(.flex-column) {
    row-gap: 0.5rem;
  }

  /* A flex child keeps its content's width by default, which is what pushed long
     names and inputs off the screen. */
  .dashboard-main-body .d-flex > :is(.flex-grow-1, .flex-fill, .form-control, .form-select) {
    min-width: 0;
  }

  /* Bootstrap's .btn-group stays one row; on a phone it wraps. */
  .dashboard-main-body .btn-group:not(.btn-group-vertical) {
    flex-wrap: wrap;
  }
}

/* --- Fields --------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  /* A select sizes itself to its longest option (a long role or category name),
     and a fixed width can be wider than a phone: neither may leave its box. */
  .dashboard-main-body :is(.form-control, .form-select, select, textarea, input:not([type="checkbox"]):not([type="radio"])),
  .modal :is(.form-control, .form-select, select, textarea) {
    max-width: 100%;
  }

  .dashboard-main-body input[type="file"].form-control {
    min-width: 0;
    width: 100%;
  }
}

/* Phones zoom the page in when a field under 16px takes focus, and leave it zoomed.
   Touch screens only, so a narrow desktop window keeps the theme's sizes. */
@media (max-width: 767.98px) and (hover: none) and (pointer: coarse) {
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea) {
    font-size: max(16px, 1rem) !important;
  }
}

/* A repeater row's strip (partials/sub-resource-row.ejs: a seva's preset amounts, a
   festival's programme): the name is a button, and buttons do not wrap, so a long
   name pushed Copy, the arrows and Remove off the row. The name now wraps, and the
   buttons drop under it when there is no room beside it. */
@media (max-width: 1199.98px) {
  [data-sub-head] {
    flex-wrap: wrap;
    row-gap: 0.375rem;
  }

  [data-sub-head] > [data-sub-toggle] {
    flex: 1 1 12rem;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* The resource form's section links (Pictures, Amounts, Tax and compliance …):
   one sideways row on a phone rather than five lines of buttons above the form. */
@media (max-width: 575.98px) {
  .resource-form-nav {
    flex-wrap: nowrap !important;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .resource-form-nav::-webkit-scrollbar {
    display: none;
  }

  .resource-form-nav > * {
    flex: none;
  }
}

/* --- Save and Cancel along the bottom (js/formSaveBar.js) ------------------ */

/* On a phone, while a long form's own buttons are scrolled out of view. Under the
   drawer and its dimmed backdrop (1045 / 1040, sidebar.css), over the page and over
   a wide table's sticky scroller (3, tableScroll.css). */
@media (max-width: 767.98px) {
  .hk-save-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 6;
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid var(--hk-line, var(--neutral-200));
    background-color: var(--white);
    box-shadow: 0 -8px 24px rgba(16, 36, 96, 0.08);
  }

  .hk-save-bar[hidden] {
    display: none;
  }

  .hk-save-bar .btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 2.75rem;
  }

  .hk-save-bar .btn-primary-600 {
    flex-grow: 2;
  }

  /* Room under the page for the bar, so it never covers the footer's last line. */
  body.has-save-bar .dashboard-main {
    padding-block-end: 4.5rem;
  }
}

/* --- A list's toolbar ------------------------------------------------------ */

/* Every list puts its search box in a .navbar-search, the class of the box in the
   top bar, which the theme hides below 992px (the top bar has no room for it). So on
   a tablet or a phone every list lost its search. The top bar's own box stays hidden. */
@media (max-width: 991.98px) {
  .dashboard-main-body .navbar-search {
    display: inline-block;
  }
}

@media (max-width: 575.98px) {
  /* The search box takes the whole first line. */
  .dashboard-main-body .navbar-search {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .dashboard-main-body .navbar-search input {
    width: 100% !important;
  }

  /* The toolbar's own form (search, filters, date range) and its button row each
     take the full width, filters sharing a line two by two. */
  .dashboard-main-body .card-header > form.d-flex,
  .dashboard-main-body .card-header > .d-flex:has(> .btn) {
    flex: 1 1 100%;
    min-width: 0;
  }

  .dashboard-main-body .card-header form.d-flex > :is(select, .form-select) {
    flex: 1 1 9rem;
    width: auto !important;
    min-width: 0;
  }

  .dashboard-main-body .card-header form.d-flex > :is(.btn, button, a.btn) {
    flex: 0 0 auto;
  }

  /* The buttons on the right of a list's toolbar (Trash, Import, Add …). */
  .dashboard-main-body .card-header > .d-flex:has(> .btn) {
    flex-wrap: wrap;
  }

  /* "Add …", the list's main button, fills what is left of its line. */
  .dashboard-main-body .card-header > .d-flex:has(> .btn) > :is(.btn-primary, .btn-primary-600)[href$="/new"] {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* A list's bulk bar (Bulk action… / Apply to selected). */
  .dashboard-main-body .card-body > .d-flex:has(> select[data-bulk-action]) {
    flex-wrap: wrap;
  }

  .dashboard-main-body select[data-bulk-action] {
    flex: 1 1 10rem;
    width: auto !important;
    min-width: 0;
  }

  /* The pager: centred, the "Page 2 of 7" line over the numbers. */
  .dashboard-main-body .pagination {
    justify-content: center !important;
  }

  .dashboard-main-body .d-flex:has(> .pagination) {
    justify-content: center !important;
    text-align: center;
  }
}

/* --- Tables ---------------------------------------------------------------- */

/* Every wide table scrolls sideways inside its card (js/tableScroll.js draws the
   control), with momentum under a finger on older iPhones. */
@media (max-width: 991.98px) {
  .dashboard-main-body .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

/* On a phone a list's table becomes a stack of cards, one per row: each cell on a
   line of its own under the column's name (data-label, from views/resource/list.ejs
   or js/tableStack.js), the tick box and the row's number on the card's first line,
   its buttons along the bottom. A table opts in with .hk-stack-sm. The header row
   stays as a strip of chips, so sorting and "select all" still work. */
@media (max-width: 767.98px) {
  .table-responsive:has(> table.hk-stack-sm) {
    overflow: visible;
  }

  table.hk-stack-sm,
  table.bordered-table.hk-stack-sm {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
  }

  table.hk-stack-sm > thead {
    display: block;
  }

  table.hk-stack-sm > thead > tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 0.75rem;
  }

  table.bordered-table.hk-stack-sm > thead > tr > th {
    display: none;
  }

  /* What the header row still offers: a column to sort by, select all. */
  table.bordered-table.hk-stack-sm > thead > tr > th:has(a, input) {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: auto !important;
    min-width: 0 !important;
    padding: 0.3125rem 0.75rem !important;
    border: 1px solid var(--hk-line, var(--neutral-200)) !important;
    border-radius: 999px !important;
    background-color: var(--white) !important;
    font-size: 0.6875rem !important;
    line-height: 1.4;
    white-space: nowrap;
  }

  table.bordered-table.hk-stack-sm > thead > tr > th:has(> input[type="checkbox"])::after {
    content: "Select all";
    letter-spacing: 0.04em;
  }

  table.bordered-table.hk-stack-sm > thead > tr > th:has(> input[data-export-row-page])::after {
    content: "All for export";
  }

  table.hk-stack-sm > tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  table.hk-stack-sm > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--hk-line, var(--neutral-200));
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 1px 2px rgba(16, 36, 96, 0.04);
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td {
    position: relative;
    display: block;
    flex: 1 1 100%;
    min-width: 0;
    /* Tall enough for its label when the cell itself is empty. */
    min-height: 2.125rem;
    padding: 0.375rem 0 0.375rem 7.75rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    text-align: start !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td::before {
    content: attr(data-label);
    position: absolute;
    inset-block-start: 0.4375rem;
    inset-inline-start: 0;
    width: 7rem;
    color: var(--text-secondary-light);
    font-family: var(--hk-display, inherit);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.6;
    text-transform: uppercase;
    overflow-wrap: break-word;
  }

  /* What a cell holds stays inside the card: a row of things in it wraps, a badge
     or a status pill with a long name breaks onto a second line. */
  table.bordered-table.hk-stack-sm > tbody > tr > td :is(.d-flex, .d-inline-flex, .hk-status, .hk-status-cell__head) {
    flex-wrap: wrap;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td * {
    max-width: 100% !important;
  }

  /* Kept on one line for a table's narrow column; a card has no column to keep to.
     A box cut short with an ellipsis keeps its one line. */
  table.bordered-table.hk-stack-sm > tbody > tr > td [style*="white-space: nowrap"]:not([style*="text-overflow"]) {
    white-space: normal !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td :is(.badge, span.radius-4, .hk-status__badge, .text-nowrap, .text-truncate),
  table.bordered-table.hk-stack-sm > tbody > tr > td.text-nowrap {
    white-space: normal !important;
    text-align: start;
  }

  /* A picture (a banner's desktop and phone artwork, a wallpaper, a logo) gets the
     card's whole width, its column's name over it. */
  table.bordered-table.hk-stack-sm > tbody > tr > td:has(img, video, picture, canvas):not([data-label=""]):not(:has(> input[type="checkbox"]:only-child)) {
    padding-inline-start: 0 !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:has(img, video, picture, canvas):not([data-label=""]):not(:has(> input[type="checkbox"]:only-child))::before {
    position: static;
    display: block;
    width: auto;
    margin-block-end: 0.375rem;
  }

  /* A cell with no column name (an empty header) takes the whole line. */
  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-label=""], :not([data-label])) {
    padding-inline-start: 0 !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-label=""], :not([data-label]))::before {
    content: none;
  }

  /* The card's first line: drag handle, tick box, "#3". */
  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-row-number], [data-stack-number], [data-stack-inline], :has(> input[type="checkbox"]:only-child), :has(> [data-reorder-handle])) {
    flex: 0 0 auto;
    padding: 0.25rem 0 !important;
    width: auto !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-stack-inline], :has(> input[type="checkbox"]:only-child), :has(> [data-reorder-handle]))::before {
    content: none;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-row-number], [data-stack-number]) {
    color: var(--text-secondary-light);
    font-size: 0.8125rem;
    font-weight: 600;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-row-number], [data-stack-number])::before {
    content: "#";
    display: inline;
    position: static;
    width: auto;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
  }

  /* The row's buttons, along the bottom of the card. */
  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-label="Action"], [data-label="Actions"], [data-stack-actions]) {
    margin-block-start: 0.375rem;
    padding: 0.625rem 0 0.125rem !important;
    border-block-start: 1px dashed var(--hk-line, var(--neutral-200)) !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-label="Action"], [data-label="Actions"], [data-stack-actions])::before {
    content: none;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td:is([data-label="Action"], [data-label="Actions"], [data-stack-actions]) > .d-flex {
    flex-wrap: wrap;
    justify-content: flex-start !important;
  }

  /* "No records yet." */
  table.bordered-table.hk-stack-sm > tbody > tr > td[colspan] {
    padding: 0.5rem 0 !important;
    text-align: center !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td[colspan]:not(.py-32)::before {
    content: none;
  }

  /* The hover tint is for a pointer on a table row; a card has no use for it. */
  html:not([data-theme="dark"]) table.bordered-table.hk-stack-sm > tbody > tr:hover td {
    background-color: transparent !important;
  }

  /* The sideways control under a table has nothing to scroll once it stacks. */
  .table-scroll:has(table.hk-stack-sm) > .table-scroll__bar {
    display: none !important;
  }

  .table-scroll:has(table.hk-stack-sm)::before,
  .table-scroll:has(table.hk-stack-sm)::after {
    content: none;
  }
}

@media (max-width: 575.98px) {
  table.bordered-table.hk-stack-sm > tbody > tr > td {
    padding-inline-start: 6.5rem !important;
  }

  table.bordered-table.hk-stack-sm > tbody > tr > td::before {
    width: 5.875rem;
  }
}

/* --- Wallpaper upload boxes ----------------------------------------------------- */

/* The desktop artwork's box is 16:9 with a 190px floor, and the ratio turns that
   floor into a 338px minimum width: past the edge of a phone. The ratio alone sets
   its height there. */
@media (max-width: 575.98px) {
  .wf-zone[data-wf-zone="desktop"] .wf-box {
    min-height: 0;
  }
}

/* --- The date range filter on the smallest phones ------------------------------ */

/* Its icon, two dates, arrow and quick-range button came to 321px, wider than a
   card on a 320px phone (the dashboard's chart card ran off the screen). Either
   date opens the calendar on a tap, so the leading icon goes, and a date that
   still does not fit ends in an ellipsis. */
@media (max-width: 374.98px) {
  .ihf-daterange__fields > .ihf-daterange__icon {
    display: none;
  }

  .ihf-daterange__fields {
    padding-inline-start: 2px;
  }

  .ihf-daterange__field {
    flex: 1 1 0;
    padding-inline: 6px;
  }

  .ihf-daterange__sep {
    width: 14px;
  }

  .ihf-daterange__value {
    min-width: 0;
    overflow: hidden;
    font-size: 0.8125rem;
    text-overflow: ellipsis;
  }

  /* A status pill with a long name ("Client secret: not set") breaks onto a
     second line rather than past the edge. */
  .dashboard-main-body span.radius-4.fw-medium:not(.font-monospace) {
    white-space: normal;
  }
}

/* --- Dialogs and menus ------------------------------------------------------- */

@media (max-width: 575.98px) {
  /* A dialog uses the whole width of the phone, less a margin to show it is one. */
  .modal-dialog {
    margin: 0.625rem;
    max-width: none;
  }

  .modal-dialog-centered {
    min-height: calc(100% - 1.25rem);
  }

  .modal-dialog-scrollable {
    height: calc(100% - 1.25rem);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-inline: 1rem !important;
  }

  .modal-footer {
    gap: 0.5rem;
  }

  .modal-footer > * {
    margin: 0;
  }

  /* A row of buttons in a footer wraps rather than running off the dialog. */
  .modal-footer .d-flex:has(> .btn) {
    flex-wrap: wrap;
  }

  /* Bootstrap dropdowns stay on the screen. */
  .dashboard-main-body .dropdown-menu {
    max-width: calc(100vw - 1.5rem);
  }
}

/* --- Tabs --------------------------------------------------------------------- */

/* A strip of tabs (settings sections and the like) scrolls
   sideways on a phone instead of breaking into several ragged rows. */
@media (max-width: 575.98px) {
  .dashboard-main-body .hk-tab-strip,
  .dashboard-main-body .nav-tabs,
  .dashboard-main-body .nav-pills {
    /* d-inline-flex strips size to their tabs; this keeps them to the screen. */
    max-width: 100%;
    /* Over Bootstrap's .flex-wrap, which some strips carry. */
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-main-body .hk-tab-strip {
    padding-block-end: 0.125rem;
  }

  .dashboard-main-body .hk-tab-strip::-webkit-scrollbar,
  .dashboard-main-body .nav-tabs::-webkit-scrollbar,
  .dashboard-main-body .nav-pills::-webkit-scrollbar {
    display: none;
  }

  .dashboard-main-body .hk-tab-strip > *,
  .dashboard-main-body :is(.nav-tabs, .nav-pills) > :is(.nav-item, .nav-link, li, a) {
    flex: none;
    white-space: nowrap;
  }
}
