@charset "UTF-8";
/**
 * Shared mixins.
 *
 * The breakpoint ladder is one ladder. Before this file had one, the stylesheet
 * carried seven edges - 560, 575.98, 600, 767, 768, 991.98, 1199.98 - three of
 * them inside forty pixels of each other and each governing a different
 * component, so between 560 and 600 the data list was in card mode, the drawer
 * had no backdrop and the language label was gone, all on different screens.
 *
 * The four edges below are Bootstrap's, because the base theme
 * (material-dashboard) already lays its grid out on them and a theme edge that
 * disagrees with the grid edge tears the page in half. `.98` rather than the
 * round number: `max-width: 768px` and `min-width: 768px` both match at exactly
 * 768.
 *
 *   phone    <= 575.98   one column, card mode, touch metrics
 *   narrow   <= 767.98   phone plus small tablet portrait; where multi-column
 *                        layouts collapse and strips start scrolling
 *   tablet   <= 991.98   the navbar's own collapse point
 *   compact  <= 1199.98  the range where the sidebar is an off-canvas drawer
 */
/* Phone and small tablet portrait. The default for "this layout has run out of
   width" - a two-column form, a right-aligned toolbar, a strip of steps. */
/* The range where the sidebar is a drawer rather than a rail. */
/* `on-mobile` predates the ladder and is kept because two files call it. It is
   `on-phone`; prefer that name in new code. */
/**
 * A pointer that cannot hover and cannot be precise - a finger.
 *
 * Not the same question as "is the viewport narrow": a 1280px-wide tablet is
 * touch and a 500px-wide desktop window is not. Used for the things that are
 * about the *input* (tap target size, hover-only affordances) rather than about
 * the space available.
 */
:focus-visible {
  outline: none !important;
}

.ui-html {
  padding: 20px;
  background: var(--ml-bg-surface-1);
  background-clip: border-box;
  border-radius: var(--ml-card-radius);
  box-shadow: var(--ml-shadow-2);
  color: var(--ml-text-default);
}

div:where(.swal2-container) {
  z-index: 99063 !important;
}

.print-button {
  display: none !important;
}

.navbar.shadow-none {
  box-shadow: none !important;
}

.navbar-main {
  transition: box-shadow 0.25s ease-in !important;
}
.navbar-main #navbar .navbar-nav .nav-item {
  min-height: 46px !important;
}

.main-content {
  transition: all 0.2s ease-in-out, background 0s !important;
}
.main-content .form-section #my-superset-container {
  position: relative !important;
  top: 0 !important;
}

/* The select2 single-select block that used to sit here - a 36px height, a
   surface, a border and a dark-mode variant of both - is gone: it restated the
   control recipe at a size the design system does not have, and beat the real
   one by `!important` and by loading first. `melkart/components/_inputs.scss`
   owns the widget. */
body.iframe-content {
  background: var(--ml-bg-surface-1) !important;
}

.disabled-input {
  pointer-events: none !important;
  --ml-bg-brand-default: var(--ml-text-disabled);
  --ml-text-brand-default: var(--ml-text-disabled);
  --ml-border-brand-default: var(--ml-border-default);
}
.disabled-input select, .disabled-input input {
  color: gray !important;
}

.dropdown-exports .dropdown {
  display: flex;
  flex: 1;
  width: 100%;
  justify-content: end;
}

.dropdown .dropdown-toggle i {
  font-size: var(--ml-font-size-base);
  margin-right: 4px;
}
.dropdown .dropdown-menu {
  transform-origin: initial !important;
  margin-top: 0 !important;
  inset: auto !important;
  right: 0 !important;
  top: 50px !important;
  padding: 5px !important;
}
.dropdown .dropdown-menu:before {
  right: 28px !important;
  left: auto !important;
}
.dropdown .dropdown-item {
  padding: 5px !important;
}
.dropdown .dropdown-item i {
  margin: 0 7px !important;
}

.numeric_field_controls {
  display: none !important;
}

.navbar-main.navbar:not(.with-bg) {
  box-shadow: none !important;
}

.dropdown .dropdown-menu.dropdown-menu-end.notifications {
  top: 45px !important;
  right: 14px !important;
  box-shadow: var(--ml-shadow-3) !important;
}
.dropdown .dropdown-menu.dropdown-menu-end.notifications.show {
  right: 14px !important;
  top: 0 !important;
}

.inbox-notification-badge {
  position: absolute;
  top: 0px;
  border: var(--ml-border-width) solid var(--ml-bg-surface-1);
  left: 10px;
  font-size: var(--ml-font-size-n4);
  background: var(--ml-bg-danger-default);
  color: var(--ml-color-white);
  min-width: 20px;
  padding: 0px 5px;
  height: 20px;
  border-radius: var(--ml-badge-radius);
  text-align: center;
  line-height: 19px;
  vertical-align: middle;
  display: block;
}

.navbar-collapse .navbar-nav .nav-item.dropdown.inbox-notifications {
  position: relative !important;
}

.inbox-notifications .inbox-notifications-list {
  max-height: 280px;
  overflow-y: auto;
}
.inbox-notifications .inbox-notifications-list #inboxDropdown .fa-bell.show {
  font-weight: var(--ml-font-weight-medium) !important;
}
.inbox-notifications .inbox-notifications-list .avatar {
  background: var(--ml-text-default) !important;
  color: var(--ml-bg-surface-2) !important;
  font-weight: var(--ml-font-weight-bold) !important;
  font-size: var(--ml-font-size-1) !important;
}

.nav.nav-pills {
  --nav-pills-padding: 10px;
  gap: 5px;
  padding: var(--nav-pills-padding);
}
.nav.nav-pills .nav-link {
  background-color: var(--ml-bg-strong) !important;
  transition: opacity 0.2s ease-in-out;
}
.nav.nav-pills .nav-link:hover {
  opacity: 0.7;
}
.nav.nav-pills .nav-link.active {
  background-color: transparent !important;
  color: var(--ml-text-brand-default) !important;
}
.nav.nav-pills .moving-tab {
  top: 0;
  left: 0;
  background: var(--ml-bg-brand-default) !important;
  pointer-events: none;
}
.nav.nav-pills .moving-tab.on-top {
  z-index: 10 !important;
}

.vertical-tabs .nav.nav-pills {
  gap: 10px !important;
}
.vertical-tabs .nav.nav-pills .nav-link {
  text-align: left;
}

.chosen-container-single.chosen-disabled .chosen-single abbr,
.chosen-container-single.chosen-disabled .chosen-single abbr + div {
  display: none !important;
}

select:disabled {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}

aside.sidebar-nav a.nav-link {
  gap: 6px;
  cursor: pointer;
}
aside.sidebar-nav a.nav-link .nav-link-text {
  padding: 0 !important;
  margin: 0 !important;
  flex: 1;
}
aside.sidebar-nav a.nav-link .rowCount.badge {
  background: var(--ml-bg-brand-default);
  padding: 6px 9px !important;
  line-height: 0.5 !important;
  border-radius: var(--ml-radius-full) !important;
}
aside.sidebar-nav a.nav-link.active .rowCount.badge {
  background: var(--ml-sidenav-bg) !important;
  color: var(--ml-text-brand-default) !important;
}
aside.sidebar-nav ul.navbar-nav, aside.sidebar-nav ul.nav {
  padding-right: 0 !important;
}

html[dir=rtl] .navbar-vertical .navbar-nav .nav-link[data-bs-toggle=collapse]:after {
  margin-right: auto !important;
  margin-left: 0 !important;
}

.horizontal-menu ul.navbar-nav {
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.horizontal-menu .dropdown.dropdown-hover .dropdown-menu, .horizontal-menu .dropdown .dropdown-menu {
  margin-top: 11px !important;
}
.horizontal-menu .dropdown.dropdown-hover .dropdown-menu.profile-dropdown, .horizontal-menu .dropdown .dropdown-menu.profile-dropdown {
  margin-top: 18px !important;
}
.horizontal-menu .nav-link, .horizontal-menu .dropdown-item {
  white-space: nowrap !important;
  gap: 5px !important;
}
.horizontal-menu .horizontal-menu-profile-image {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 50%;
}
.horizontal-menu .nav-item.active .nav-link {
  background: var(--ml-bg-brand-default) !important;
  border-radius: var(--ml-sidenav-item-radius) !important;
  color: var(--ml-text-on-brand) !important;
}
.horizontal-menu .dropdown-menu .list-group .nav-item:last-child .dropdown-item {
  margin-bottom: 0 !important;
}
.horizontal-menu .dropdown-menu .list-group li.active {
  background: none !important;
}
.horizontal-menu .dropdown-menu .list-group li.active a.dropdown-item {
  background: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand) !important;
}
.horizontal-menu .dropdown-menu .responsive-menu-label.active {
  background: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand) !important;
  padding: 3px 10px !important;
  border-radius: var(--ml-sidenav-item-radius) !important;
}

@media (max-width: 991.98px) {
  .dropdown.nav-item .dropdown-menu-animation {
    top: 0 !important;
    padding: 0 1rem !important;
    height: auto !important;
    overflow: auto !important;
    max-height: 250px;
    display: none;
  }
  .dropdown.nav-item .dropdown-menu-animation.show {
    display: block;
  }
  .down-arrow {
    flex: 1 !important;
    text-align: end !important;
  }
}
/**
 * Melkart theme — how far a control recipe is allowed to reach
 *
 * The control, button and label recipes used to be written as bare `input`,
 * `select`, `textarea`, `.form-control`, `.btn` and `label`, with nearly every
 * property `!important`. That is the whole page: a chart plugin's range input,
 * an embedded widget's search box and a custom form element's combobox were all
 * repainted by the theme, and none of them could be painted back, because no
 * amount of specificity beats `!important`. Restyling anything the theme did
 * not write meant `!important` on every line of the plugin's own stylesheet.
 *
 * This file is the one place that answers "which controls are ours". Three
 * ideas, and all three are weightless on purpose:
 *
 * - **Scope.** A control is the theme's to style when it sits inside markup the
 *   theme owns — Joget's form, list, profile and dialog markup, plus the login
 *   screen this theme renders itself. `$scopes` is that list, wrapped in
 *   `:where()`, so a scoped rule still scores exactly what the bare element
 *   scored. That matters: plugin stylesheets are linked from inside `<body>`,
 *   after ours, so a plugin rule at equal weight wins on order.
 * - **Opt-in.** `.form-control`, `.btn`, `.form-button` are class names that
 *   *ask* for the look, so they are honoured anywhere on the page. `.ml-input`
 *   and `.ml-button` are the theme's own names for the same request. This is
 *   how an app's own markup joins in without living inside a form.
 * - **Opt-out.** `.ml-unstyled` on the control, or on anything above it, takes
 *   the recipe off completely — including inside a form cell, which is exactly
 *   where a custom form element plugin lives. It is the escape hatch a plugin
 *   author reaches for when the theme's control look is the wrong look.
 *
 * `!important` is now the exception rather than the rule. The two base
 * stylesheets this layer overrides set none of it on `.form-control` or on a
 * label, so ordering plus the element's own weight is enough to win there.
 * `.btn` is the exception: material-dashboard forces `padding`,
 * `border-radius`, `background-color`, `text-align` and `vertical-align`, so
 * those keep theirs. Anything else that still carries `!important` is fighting
 * a named rule, and says which one in a comment.
 */
/* ── The markup the theme owns ──
   Ancestors, not the controls themselves. Every entry is a container Joget or
   this theme renders; an input with none of them above it belongs to whoever
   put it there. */
/* ── The escape hatch ──
   `:where()` keeps it at zero, so opting out costs the rule nothing and adding
   it does not make the theme harder to override. */
/* The same opt-out written without `:where()`, for a recipe that has to outrank
   the base theme rather than merely follow it.

   Buttons are the one recipe that does. material-dashboard writes its button
   base as `.btn:not([class*="waves-input-wrapper"]), .waves-button-input` and
   its lift as `.btn-primary, .btn:not([class*="btn-"], [class*="waves-input-wrapper"])`
   - both (0,2,0) on the `.btn` arm, because `:not()` counts its argument. A
   recipe at (0,1,0) loses to them no matter how late it is emitted, which is
   why every line of the button block used to carry `!important`: the shadow,
   the casing, the font size, the line height and `display` all came back from
   those two rules. Unwrapped, the opt-out contributes its own (0,1,0), the
   recipe lands at (0,2,0), and the tie is settled by order - this stylesheet is
   linked after material-dashboard.

   It costs one class of weight to override, which is what beating the base
   theme costs anyway: an app that wants its own button look already had to
   clear (0,2,0). `.ml-unstyled` still takes the recipe off entirely. */
/* ── Controls ──
   The `:not()` list is the set of inputs that are not text-like: a checkbox, a
   radio and a range have a shape of their own, and a submit or button input is
   a button and is styled as one. */
/* Class names that ask for the control look by name, honoured page-wide. */
/* ── Buttons ──
   `.btn` and `.form-button` are opt-in class names; the two bare input types
   are not, so they are scoped. */
:root {
  --radio-checkbox-bg-color: transparent;
}

.form-message {
  display: none;
  font-size: var(--ml-font-size-base);
  color: var(--ml-text-success-default);
  font-weight: var(--ml-font-weight-bold);
  padding: 5px 10px;
}
.form-message.form-errors {
  color: var(--ml-text-danger-default);
  display: inline-block;
}

.show-form-messages .form-message {
  display: block;
}

.userProfile-body-content .userProfile-body-header {
  display: none;
}
.userProfile-body-content .form fieldset {
  padding: 1.5rem;
}
.userProfile-body-content .form fieldset legend {
  padding: 0 !important;
  padding-bottom: 20px !important;
}

body.safari-browser :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)), body.safari-browser select.form-control:where(:not(.ml-unstyled, .ml-unstyled *)) {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position-x: 100% !important;
  background-position-y: 5px !important;
  padding-right: 23px !important;
}
body.safari-browser body.dark-version select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
}

/* The control recipe that used to sit here - surface, border, radius, padding,
   focus ring, dark mode - is gone. It was a second, page-wide, `!important`
   copy of `melkart/components/_inputs.scss`, emitted earlier, so between the
   two of them nothing on the page could own its own input: the melkart block
   won on the properties it restated and this one still owned the rest. That
   file is now the single recipe and is scoped through `melkart/_controls.scss`.
   Its dark-mode half is gone for the same reason - `--ml-input-bg` and
   `--ml-input-border` already flip. */
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)) {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--radio-checkbox-bg-color);
  margin: 0;
  font: inherit;
  color: var(--ml-check-accent);
  width: var(--ml-check-size) !important;
  height: var(--ml-check-size);
  border: var(--ml-check-border-width) solid var(--ml-check-accent);
  border-radius: 50%;
  transform: translateY(-0.075em);
  display: grid !important;
  place-content: center;
  outline: none !important;
  cursor: pointer;
  flex-shrink: 0;
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *))::before, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *))::before {
  content: "";
  width: calc(var(--ml-check-size) - var(--ml-space-2-5));
  height: calc(var(--ml-check-size) - var(--ml-space-2-5));
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--ml-check-accent);
  /* Windows High Contrast Mode */
  background-color: var(--ml-check-accent);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *))[type=checkbox], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *))[type=checkbox] {
  width: var(--ml-check-size) !important;
  height: var(--ml-check-size);
  border-radius: var(--ml-check-radius);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *))[type=checkbox]::before, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *))[type=checkbox]::before {
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  width: calc(var(--ml-check-size) - var(--ml-space-2));
  height: calc(var(--ml-check-size) - var(--ml-space-2));
  transform-origin: center center;
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)):checked::before, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)):checked::before {
  transform: scale(1);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)):disabled, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)):disabled {
  --ml-check-accent: var(--ml-check-accent-disabled);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)) ::-webkit-input-placeholder, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)) ::-webkit-input-placeholder {
  color: var(--ml-text-default);
}

@keyframes autofill {
  0%, 100% {
    color: inherit;
    background: transparent;
  }
}
@-webkit-keyframes autofill {
  0%, 100% {
    color: inherit;
    background: transparent !important;
  }
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:-webkit-autofill:where(:not(.ml-unstyled, .ml-unstyled *)) {
  -webkit-animation-delay: 1s; /* Safari support - any positive time runs instantly */
  -webkit-animation-name: autofill;
  -webkit-animation-fill-mode: both;
}

.form-section + .form-section,
.subform-section + .subform-section,
.userProfile-body-content .form fieldset {
  margin-top: 1.5rem;
}

.userProfile-body-content .form fieldset:first-child {
  margin-top: 0 !important;
}

:not(#_ja_inbox) form .form-section:first-of-type {
  margin-top: 0 !important;
}

.form-section,
.subform-section,
.userProfile-body-content .form fieldset {
  position: relative;
  background: var(--ml-bg-surface-1);
  background-clip: border-box;
  border-radius: var(--ml-input-radius-base);
  box-shadow: none;
  border: none;
  margin-top: 20px;
}
.form-section .form-section-title,
.form-section .subform-section-title,
.form-section legend,
.subform-section .form-section-title,
.subform-section .subform-section-title,
.subform-section legend,
.userProfile-body-content .form fieldset .form-section-title,
.userProfile-body-content .form fieldset .subform-section-title,
.userProfile-body-content .form fieldset legend {
  padding: 1.5rem;
  padding-bottom: 0;
  margin-bottom: 0;
  color: var(--bs-card-cap-color);
  font-size: var(--ml-font-size-2);
  font-weight: var(--ml-font-weight-bold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-section .form-section-title [class*=material-icons], .form-section .form-section-title [class*=fa-], .form-section .form-section-title [class*=zmdi], .form-section .form-section-title > i,
.form-section .subform-section-title [class*=material-icons],
.form-section .subform-section-title [class*=fa-],
.form-section .subform-section-title [class*=zmdi],
.form-section .subform-section-title > i,
.form-section legend [class*=material-icons],
.form-section legend [class*=fa-],
.form-section legend [class*=zmdi],
.form-section legend > i,
.subform-section .form-section-title [class*=material-icons],
.subform-section .form-section-title [class*=fa-],
.subform-section .form-section-title [class*=zmdi],
.subform-section .form-section-title > i,
.subform-section .subform-section-title [class*=material-icons],
.subform-section .subform-section-title [class*=fa-],
.subform-section .subform-section-title [class*=zmdi],
.subform-section .subform-section-title > i,
.subform-section legend [class*=material-icons],
.subform-section legend [class*=fa-],
.subform-section legend [class*=zmdi],
.subform-section legend > i,
.userProfile-body-content .form fieldset .form-section-title [class*=material-icons],
.userProfile-body-content .form fieldset .form-section-title [class*=fa-],
.userProfile-body-content .form fieldset .form-section-title [class*=zmdi],
.userProfile-body-content .form fieldset .form-section-title > i,
.userProfile-body-content .form fieldset .subform-section-title [class*=material-icons],
.userProfile-body-content .form fieldset .subform-section-title [class*=fa-],
.userProfile-body-content .form fieldset .subform-section-title [class*=zmdi],
.userProfile-body-content .form fieldset .subform-section-title > i,
.userProfile-body-content .form fieldset legend [class*=material-icons],
.userProfile-body-content .form fieldset legend [class*=fa-],
.userProfile-body-content .form fieldset legend [class*=zmdi],
.userProfile-body-content .form fieldset legend > i {
  font-size: var(--ml-font-size-5);
  color: var(--ml-text-brand-default);
}
body.dark-version .form-section .form-section-title,
body.dark-version .form-section .subform-section-title,
body.dark-version .form-section legend,
body.dark-version .subform-section .form-section-title,
body.dark-version .subform-section .subform-section-title,
body.dark-version .subform-section legend,
body.dark-version .userProfile-body-content .form fieldset .form-section-title,
body.dark-version .userProfile-body-content .form fieldset .subform-section-title,
body.dark-version .userProfile-body-content .form fieldset legend {
  color: var(--ml-text-default);
}

.form-section .subform-container,
.form-section .section-content,
.subform-section .subform-container,
.subform-section .section-content,
.userProfile-body-content .form fieldset .subform-container,
.userProfile-body-content .form fieldset .section-content {
  width: 100%;
}
.form-section .form-column,
.form-section .subform-column,
.subform-section .form-column,
.subform-section .subform-column,
.userProfile-body-content .form fieldset .form-column,
.userProfile-body-content .form fieldset .subform-column {
  float: left;
  padding: 1.5rem;
}
.form-section .form-column::empty,
.form-section .subform-column::empty,
.subform-section .form-column::empty,
.subform-section .subform-column::empty,
.userProfile-body-content .form fieldset .form-column::empty,
.userProfile-body-content .form fieldset .subform-column::empty {
  padding: 0 !important;
}
.form-section .form-cell,
.form-section .subform-cell,
.form-section .subform-row,
.form-section .form-row,
.subform-section .form-cell,
.subform-section .subform-cell,
.subform-section .subform-row,
.subform-section .form-row,
.userProfile-body-content .form fieldset .form-cell,
.userProfile-body-content .form fieldset .subform-cell,
.userProfile-body-content .form fieldset .subform-row,
.userProfile-body-content .form fieldset .form-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 4px;
  margin-bottom: 20px;
}
.form-section .form-cell:last-child,
.form-section .subform-cell:last-child,
.form-section .subform-row:last-child,
.form-section .form-row:last-child,
.subform-section .form-cell:last-child,
.subform-section .subform-cell:last-child,
.subform-section .subform-row:last-child,
.subform-section .form-row:last-child,
.userProfile-body-content .form fieldset .form-cell:last-child,
.userProfile-body-content .form fieldset .subform-cell:last-child,
.userProfile-body-content .form fieldset .subform-row:last-child,
.userProfile-body-content .form fieldset .form-row:last-child {
  margin-bottom: 0;
}
.form-section .form-cell.customHtml.no_label,
.form-section .subform-cell.customHtml.no_label,
.form-section .subform-row.customHtml.no_label,
.form-section .form-row.customHtml.no_label,
.subform-section .form-cell.customHtml.no_label,
.subform-section .subform-cell.customHtml.no_label,
.subform-section .subform-row.customHtml.no_label,
.subform-section .form-row.customHtml.no_label,
.userProfile-body-content .form fieldset .form-cell.customHtml.no_label,
.userProfile-body-content .form fieldset .subform-cell.customHtml.no_label,
.userProfile-body-content .form fieldset .subform-row.customHtml.no_label,
.userProfile-body-content .form fieldset .form-row.customHtml.no_label {
  margin: 0 !important;
}
.form-section .form-cell .custom-input-container,
.form-section .subform-cell .custom-input-container,
.form-section .subform-row .custom-input-container,
.form-section .form-row .custom-input-container,
.subform-section .form-cell .custom-input-container,
.subform-section .subform-cell .custom-input-container,
.subform-section .subform-row .custom-input-container,
.subform-section .form-row .custom-input-container,
.userProfile-body-content .form fieldset .form-cell .custom-input-container,
.userProfile-body-content .form fieldset .subform-cell .custom-input-container,
.userProfile-body-content .form fieldset .subform-row .custom-input-container,
.userProfile-body-content .form fieldset .form-row .custom-input-container {
  flex: 1;
}
.form-section .form-cell > .form-cell-value > .label, .form-section .form-cell > .form-cell-value > label,
.form-section .form-cell > .label, .form-section .form-cell > label,
.form-section .subform-cell > .form-cell-value > .label,
.form-section .subform-cell > .form-cell-value > label,
.form-section .subform-cell > .label,
.form-section .subform-cell > label,
.form-section .subform-row > .form-cell-value > .label,
.form-section .subform-row > .form-cell-value > label,
.form-section .subform-row > .label,
.form-section .subform-row > label,
.form-section .form-row > .form-cell-value > .label,
.form-section .form-row > .form-cell-value > label,
.form-section .form-row > .label,
.form-section .form-row > label,
.subform-section .form-cell > .form-cell-value > .label,
.subform-section .form-cell > .form-cell-value > label,
.subform-section .form-cell > .label,
.subform-section .form-cell > label,
.subform-section .subform-cell > .form-cell-value > .label,
.subform-section .subform-cell > .form-cell-value > label,
.subform-section .subform-cell > .label,
.subform-section .subform-cell > label,
.subform-section .subform-row > .form-cell-value > .label,
.subform-section .subform-row > .form-cell-value > label,
.subform-section .subform-row > .label,
.subform-section .subform-row > label,
.subform-section .form-row > .form-cell-value > .label,
.subform-section .form-row > .form-cell-value > label,
.subform-section .form-row > .label,
.subform-section .form-row > label,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > .label,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > label,
.userProfile-body-content .form fieldset .form-cell > .label,
.userProfile-body-content .form fieldset .form-cell > label,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > .label,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > label,
.userProfile-body-content .form fieldset .subform-cell > .label,
.userProfile-body-content .form fieldset .subform-cell > label,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > .label,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > label,
.userProfile-body-content .form fieldset .subform-row > .label,
.userProfile-body-content .form fieldset .subform-row > label,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > .label,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > label,
.userProfile-body-content .form fieldset .form-row > .label,
.userProfile-body-content .form fieldset .form-row > label {
  flex: 0 0 30%;
  margin: 0 !important;
  color: var(--ml-text-default);
}
.form-section .form-cell > .form-cell-value > .label .form-error-message, .form-section .form-cell > .form-cell-value > label .form-error-message,
.form-section .form-cell > .label .form-error-message, .form-section .form-cell > label .form-error-message,
.form-section .subform-cell > .form-cell-value > .label .form-error-message,
.form-section .subform-cell > .form-cell-value > label .form-error-message,
.form-section .subform-cell > .label .form-error-message,
.form-section .subform-cell > label .form-error-message,
.form-section .subform-row > .form-cell-value > .label .form-error-message,
.form-section .subform-row > .form-cell-value > label .form-error-message,
.form-section .subform-row > .label .form-error-message,
.form-section .subform-row > label .form-error-message,
.form-section .form-row > .form-cell-value > .label .form-error-message,
.form-section .form-row > .form-cell-value > label .form-error-message,
.form-section .form-row > .label .form-error-message,
.form-section .form-row > label .form-error-message,
.subform-section .form-cell > .form-cell-value > .label .form-error-message,
.subform-section .form-cell > .form-cell-value > label .form-error-message,
.subform-section .form-cell > .label .form-error-message,
.subform-section .form-cell > label .form-error-message,
.subform-section .subform-cell > .form-cell-value > .label .form-error-message,
.subform-section .subform-cell > .form-cell-value > label .form-error-message,
.subform-section .subform-cell > .label .form-error-message,
.subform-section .subform-cell > label .form-error-message,
.subform-section .subform-row > .form-cell-value > .label .form-error-message,
.subform-section .subform-row > .form-cell-value > label .form-error-message,
.subform-section .subform-row > .label .form-error-message,
.subform-section .subform-row > label .form-error-message,
.subform-section .form-row > .form-cell-value > .label .form-error-message,
.subform-section .form-row > .form-cell-value > label .form-error-message,
.subform-section .form-row > .label .form-error-message,
.subform-section .form-row > label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > .label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > label .form-error-message,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .form-row > .label .form-error-message,
.userProfile-body-content .form fieldset .form-row > label .form-error-message {
  color: var(--bs-danger);
  font-size: var(--ml-font-size-label);
  display: block;
}
@media (max-width: 991.98px) {
  .form-section .form-cell > .form-cell-value > .label, .form-section .form-cell > .form-cell-value > label,
  .form-section .form-cell > .label, .form-section .form-cell > label,
  .form-section .subform-cell > .form-cell-value > .label,
  .form-section .subform-cell > .form-cell-value > label,
  .form-section .subform-cell > .label,
  .form-section .subform-cell > label,
  .form-section .subform-row > .form-cell-value > .label,
  .form-section .subform-row > .form-cell-value > label,
  .form-section .subform-row > .label,
  .form-section .subform-row > label,
  .form-section .form-row > .form-cell-value > .label,
  .form-section .form-row > .form-cell-value > label,
  .form-section .form-row > .label,
  .form-section .form-row > label,
  .subform-section .form-cell > .form-cell-value > .label,
  .subform-section .form-cell > .form-cell-value > label,
  .subform-section .form-cell > .label,
  .subform-section .form-cell > label,
  .subform-section .subform-cell > .form-cell-value > .label,
  .subform-section .subform-cell > .form-cell-value > label,
  .subform-section .subform-cell > .label,
  .subform-section .subform-cell > label,
  .subform-section .subform-row > .form-cell-value > .label,
  .subform-section .subform-row > .form-cell-value > label,
  .subform-section .subform-row > .label,
  .subform-section .subform-row > label,
  .subform-section .form-row > .form-cell-value > .label,
  .subform-section .form-row > .form-cell-value > label,
  .subform-section .form-row > .label,
  .subform-section .form-row > label,
  .userProfile-body-content .form fieldset .form-cell > .form-cell-value > .label,
  .userProfile-body-content .form fieldset .form-cell > .form-cell-value > label,
  .userProfile-body-content .form fieldset .form-cell > .label,
  .userProfile-body-content .form fieldset .form-cell > label,
  .userProfile-body-content .form fieldset .subform-cell > .form-cell-value > .label,
  .userProfile-body-content .form fieldset .subform-cell > .form-cell-value > label,
  .userProfile-body-content .form fieldset .subform-cell > .label,
  .userProfile-body-content .form fieldset .subform-cell > label,
  .userProfile-body-content .form fieldset .subform-row > .form-cell-value > .label,
  .userProfile-body-content .form fieldset .subform-row > .form-cell-value > label,
  .userProfile-body-content .form fieldset .subform-row > .label,
  .userProfile-body-content .form fieldset .subform-row > label,
  .userProfile-body-content .form fieldset .form-row > .form-cell-value > .label,
  .userProfile-body-content .form fieldset .form-row > .form-cell-value > label,
  .userProfile-body-content .form fieldset .form-row > .label,
  .userProfile-body-content .form fieldset .form-row > label {
    flex: 1 1 100%;
  }
}
.form-section .form-cell .subform-cell-validator,
.form-section .form-cell .form-cell-validator,
.form-section .subform-cell .subform-cell-validator,
.form-section .subform-cell .form-cell-validator,
.form-section .subform-row .subform-cell-validator,
.form-section .subform-row .form-cell-validator,
.form-section .form-row .subform-cell-validator,
.form-section .form-row .form-cell-validator,
.subform-section .form-cell .subform-cell-validator,
.subform-section .form-cell .form-cell-validator,
.subform-section .subform-cell .subform-cell-validator,
.subform-section .subform-cell .form-cell-validator,
.subform-section .subform-row .subform-cell-validator,
.subform-section .subform-row .form-cell-validator,
.subform-section .form-row .subform-cell-validator,
.subform-section .form-row .form-cell-validator,
.userProfile-body-content .form fieldset .form-cell .subform-cell-validator,
.userProfile-body-content .form fieldset .form-cell .form-cell-validator,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-validator,
.userProfile-body-content .form fieldset .subform-cell .form-cell-validator,
.userProfile-body-content .form fieldset .subform-row .subform-cell-validator,
.userProfile-body-content .form fieldset .subform-row .form-cell-validator,
.userProfile-body-content .form fieldset .form-row .subform-cell-validator,
.userProfile-body-content .form fieldset .form-row .form-cell-validator {
  color: var(--bs-danger);
  padding: 0;
}
.form-section .form-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .form-cell > select,
.form-section .form-cell > textarea,
.form-section .form-cell .form-cell-value,
.form-section .form-cell .subform-cell-value,
.form-section .form-cell .form-fileupload,
.form-section .form-cell .form-input,
.form-section .form-cell .chosen-container,
.form-section .form-cell .password-input-container,
.form-section .subform-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .subform-cell > select,
.form-section .subform-cell > textarea,
.form-section .subform-cell .form-cell-value,
.form-section .subform-cell .subform-cell-value,
.form-section .subform-cell .form-fileupload,
.form-section .subform-cell .form-input,
.form-section .subform-cell .chosen-container,
.form-section .subform-cell .password-input-container,
.form-section .subform-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .subform-row > select,
.form-section .subform-row > textarea,
.form-section .subform-row .form-cell-value,
.form-section .subform-row .subform-cell-value,
.form-section .subform-row .form-fileupload,
.form-section .subform-row .form-input,
.form-section .subform-row .chosen-container,
.form-section .subform-row .password-input-container,
.form-section .form-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .form-row > select,
.form-section .form-row > textarea,
.form-section .form-row .form-cell-value,
.form-section .form-row .subform-cell-value,
.form-section .form-row .form-fileupload,
.form-section .form-row .form-input,
.form-section .form-row .chosen-container,
.form-section .form-row .password-input-container,
.subform-section .form-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .form-cell > select,
.subform-section .form-cell > textarea,
.subform-section .form-cell .form-cell-value,
.subform-section .form-cell .subform-cell-value,
.subform-section .form-cell .form-fileupload,
.subform-section .form-cell .form-input,
.subform-section .form-cell .chosen-container,
.subform-section .form-cell .password-input-container,
.subform-section .subform-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .subform-cell > select,
.subform-section .subform-cell > textarea,
.subform-section .subform-cell .form-cell-value,
.subform-section .subform-cell .subform-cell-value,
.subform-section .subform-cell .form-fileupload,
.subform-section .subform-cell .form-input,
.subform-section .subform-cell .chosen-container,
.subform-section .subform-cell .password-input-container,
.subform-section .subform-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .subform-row > select,
.subform-section .subform-row > textarea,
.subform-section .subform-row .form-cell-value,
.subform-section .subform-row .subform-cell-value,
.subform-section .subform-row .form-fileupload,
.subform-section .subform-row .form-input,
.subform-section .subform-row .chosen-container,
.subform-section .subform-row .password-input-container,
.subform-section .form-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .form-row > select,
.subform-section .form-row > textarea,
.subform-section .form-row .form-cell-value,
.subform-section .form-row .subform-cell-value,
.subform-section .form-row .form-fileupload,
.subform-section .form-row .form-input,
.subform-section .form-row .chosen-container,
.subform-section .form-row .password-input-container,
.userProfile-body-content .form fieldset .form-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .form-cell > select,
.userProfile-body-content .form fieldset .form-cell > textarea,
.userProfile-body-content .form fieldset .form-cell .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .subform-cell-value,
.userProfile-body-content .form fieldset .form-cell .form-fileupload,
.userProfile-body-content .form fieldset .form-cell .form-input,
.userProfile-body-content .form fieldset .form-cell .chosen-container,
.userProfile-body-content .form fieldset .form-cell .password-input-container,
.userProfile-body-content .form fieldset .subform-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .subform-cell > select,
.userProfile-body-content .form fieldset .subform-cell > textarea,
.userProfile-body-content .form fieldset .subform-cell .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-value,
.userProfile-body-content .form fieldset .subform-cell .form-fileupload,
.userProfile-body-content .form fieldset .subform-cell .form-input,
.userProfile-body-content .form fieldset .subform-cell .chosen-container,
.userProfile-body-content .form fieldset .subform-cell .password-input-container,
.userProfile-body-content .form fieldset .subform-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .subform-row > select,
.userProfile-body-content .form fieldset .subform-row > textarea,
.userProfile-body-content .form fieldset .subform-row .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .subform-cell-value,
.userProfile-body-content .form fieldset .subform-row .form-fileupload,
.userProfile-body-content .form fieldset .subform-row .form-input,
.userProfile-body-content .form fieldset .subform-row .chosen-container,
.userProfile-body-content .form fieldset .subform-row .password-input-container,
.userProfile-body-content .form fieldset .form-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .form-row > select,
.userProfile-body-content .form fieldset .form-row > textarea,
.userProfile-body-content .form fieldset .form-row .form-cell-value,
.userProfile-body-content .form fieldset .form-row .subform-cell-value,
.userProfile-body-content .form fieldset .form-row .form-fileupload,
.userProfile-body-content .form fieldset .form-row .form-input,
.userProfile-body-content .form fieldset .form-row .chosen-container,
.userProfile-body-content .form fieldset .form-row .password-input-container {
  flex: 1;
}
.form-section .form-cell .form-input input, .form-section .form-cell .form-input select, .form-section .form-cell .form-input textarea,
.form-section .subform-cell .form-input input,
.form-section .subform-cell .form-input select,
.form-section .subform-cell .form-input textarea,
.form-section .subform-row .form-input input,
.form-section .subform-row .form-input select,
.form-section .subform-row .form-input textarea,
.form-section .form-row .form-input input,
.form-section .form-row .form-input select,
.form-section .form-row .form-input textarea,
.subform-section .form-cell .form-input input,
.subform-section .form-cell .form-input select,
.subform-section .form-cell .form-input textarea,
.subform-section .subform-cell .form-input input,
.subform-section .subform-cell .form-input select,
.subform-section .subform-cell .form-input textarea,
.subform-section .subform-row .form-input input,
.subform-section .subform-row .form-input select,
.subform-section .subform-row .form-input textarea,
.subform-section .form-row .form-input input,
.subform-section .form-row .form-input select,
.subform-section .form-row .form-input textarea,
.userProfile-body-content .form fieldset .form-cell .form-input input,
.userProfile-body-content .form fieldset .form-cell .form-input select,
.userProfile-body-content .form fieldset .form-cell .form-input textarea,
.userProfile-body-content .form fieldset .subform-cell .form-input input,
.userProfile-body-content .form fieldset .subform-cell .form-input select,
.userProfile-body-content .form fieldset .subform-cell .form-input textarea,
.userProfile-body-content .form fieldset .subform-row .form-input input,
.userProfile-body-content .form fieldset .subform-row .form-input select,
.userProfile-body-content .form fieldset .subform-row .form-input textarea,
.userProfile-body-content .form fieldset .form-row .form-input input,
.userProfile-body-content .form fieldset .form-row .form-input select,
.userProfile-body-content .form fieldset .form-row .form-input textarea {
  width: 100% !important;
}
.form-section .form-cell .customHtml .form-cell-value,
.form-section .form-cell .form-cell-full,
.form-section .subform-cell .customHtml .form-cell-value,
.form-section .subform-cell .form-cell-full,
.form-section .subform-row .customHtml .form-cell-value,
.form-section .subform-row .form-cell-full,
.form-section .form-row .customHtml .form-cell-value,
.form-section .form-row .form-cell-full,
.subform-section .form-cell .customHtml .form-cell-value,
.subform-section .form-cell .form-cell-full,
.subform-section .subform-cell .customHtml .form-cell-value,
.subform-section .subform-cell .form-cell-full,
.subform-section .subform-row .customHtml .form-cell-value,
.subform-section .subform-row .form-cell-full,
.subform-section .form-row .customHtml .form-cell-value,
.subform-section .form-row .form-cell-full,
.userProfile-body-content .form fieldset .form-cell .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .form-cell-full,
.userProfile-body-content .form fieldset .subform-cell .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .form-cell-full,
.userProfile-body-content .form fieldset .subform-row .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .form-cell-full,
.userProfile-body-content .form fieldset .form-row .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .form-row .form-cell-full {
  width: 100% !important;
}
.form-section .form-cell .customHtml .form-cell-value,
.form-section .subform-cell .customHtml .form-cell-value,
.form-section .subform-row .customHtml .form-cell-value,
.form-section .form-row .customHtml .form-cell-value,
.subform-section .form-cell .customHtml .form-cell-value,
.subform-section .subform-cell .customHtml .form-cell-value,
.subform-section .subform-row .customHtml .form-cell-value,
.subform-section .form-row .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .customHtml .form-cell-value,
.userProfile-body-content .form fieldset .form-row .customHtml .form-cell-value {
  display: block !important;
}
.form-section .form-cell .password-input-container .password-toggle,
.form-section .subform-cell .password-input-container .password-toggle,
.form-section .subform-row .password-input-container .password-toggle,
.form-section .form-row .password-input-container .password-toggle,
.subform-section .form-cell .password-input-container .password-toggle,
.subform-section .subform-cell .password-input-container .password-toggle,
.subform-section .subform-row .password-input-container .password-toggle,
.subform-section .form-row .password-input-container .password-toggle,
.userProfile-body-content .form fieldset .form-cell .password-input-container .password-toggle,
.userProfile-body-content .form fieldset .subform-cell .password-input-container .password-toggle,
.userProfile-body-content .form fieldset .subform-row .password-input-container .password-toggle,
.userProfile-body-content .form fieldset .form-row .password-input-container .password-toggle {
  top: 50% !important;
  transform: translateY(-50%);
}
body.dark-version .form-section .form-cell .password-input-container .password-toggle,
body.dark-version .form-section .subform-cell .password-input-container .password-toggle,
body.dark-version .form-section .subform-row .password-input-container .password-toggle,
body.dark-version .form-section .form-row .password-input-container .password-toggle,
body.dark-version .subform-section .form-cell .password-input-container .password-toggle,
body.dark-version .subform-section .subform-cell .password-input-container .password-toggle,
body.dark-version .subform-section .subform-row .password-input-container .password-toggle,
body.dark-version .subform-section .form-row .password-input-container .password-toggle,
body.dark-version .userProfile-body-content .form fieldset .form-cell .password-input-container .password-toggle,
body.dark-version .userProfile-body-content .form fieldset .subform-cell .password-input-container .password-toggle,
body.dark-version .userProfile-body-content .form fieldset .subform-row .password-input-container .password-toggle,
body.dark-version .userProfile-body-content .form fieldset .form-row .password-input-container .password-toggle {
  color: var(--ml-text-default) !important;
}

.form-section .form-cell .password-input-container input,
.form-section .subform-cell .password-input-container input,
.form-section .subform-row .password-input-container input,
.form-section .form-row .password-input-container input,
.subform-section .form-cell .password-input-container input,
.subform-section .subform-cell .password-input-container input,
.subform-section .subform-row .password-input-container input,
.subform-section .form-row .password-input-container input,
.userProfile-body-content .form fieldset .form-cell .password-input-container input,
.userProfile-body-content .form fieldset .subform-cell .password-input-container input,
.userProfile-body-content .form fieldset .subform-row .password-input-container input,
.userProfile-body-content .form fieldset .form-row .password-input-container input {
  width: 100% !important;
}
.form-section .form-cell .form-cell-value,
.form-section .form-cell .subform-cell-value,
.form-section .subform-cell .form-cell-value,
.form-section .subform-cell .subform-cell-value,
.form-section .subform-row .form-cell-value,
.form-section .subform-row .subform-cell-value,
.form-section .form-row .form-cell-value,
.form-section .form-row .subform-cell-value,
.subform-section .form-cell .form-cell-value,
.subform-section .form-cell .subform-cell-value,
.subform-section .subform-cell .form-cell-value,
.subform-section .subform-cell .subform-cell-value,
.subform-section .subform-row .form-cell-value,
.subform-section .subform-row .subform-cell-value,
.subform-section .form-row .form-cell-value,
.subform-section .form-row .subform-cell-value,
.userProfile-body-content .form fieldset .form-cell .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .subform-cell-value,
.userProfile-body-content .form fieldset .subform-cell .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-value,
.userProfile-body-content .form fieldset .subform-row .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .subform-cell-value,
.userProfile-body-content .form fieldset .form-row .form-cell-value,
.userProfile-body-content .form fieldset .form-row .subform-cell-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
  flex-wrap: wrap;
}
.form-section .form-cell .form-cell-value label,
.form-section .form-cell .subform-cell-value label,
.form-section .subform-cell .form-cell-value label,
.form-section .subform-cell .subform-cell-value label,
.form-section .subform-row .form-cell-value label,
.form-section .subform-row .subform-cell-value label,
.form-section .form-row .form-cell-value label,
.form-section .form-row .subform-cell-value label,
.subform-section .form-cell .form-cell-value label,
.subform-section .form-cell .subform-cell-value label,
.subform-section .subform-cell .form-cell-value label,
.subform-section .subform-cell .subform-cell-value label,
.subform-section .subform-row .form-cell-value label,
.subform-section .subform-row .subform-cell-value label,
.subform-section .form-row .form-cell-value label,
.subform-section .form-row .subform-cell-value label,
.userProfile-body-content .form fieldset .form-cell .form-cell-value label,
.userProfile-body-content .form fieldset .form-cell .subform-cell-value label,
.userProfile-body-content .form fieldset .subform-cell .form-cell-value label,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-value label,
.userProfile-body-content .form fieldset .subform-row .form-cell-value label,
.userProfile-body-content .form fieldset .subform-row .subform-cell-value label,
.userProfile-body-content .form fieldset .form-row .form-cell-value label,
.userProfile-body-content .form fieldset .form-row .subform-cell-value label {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  white-space: nowrap;
  line-height: 2;
  width: auto !important;
}
.form-section#section-actions,
.subform-section#section-actions,
.userProfile-body-content .form fieldset#section-actions {
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  overflow: visible;
  z-index: 0 !important;
  padding: var(--bs-card-cap-padding-y) 0;
}
.form-section#section-actions .form-section-title,
.subform-section#section-actions .form-section-title,
.userProfile-body-content .form fieldset#section-actions .form-section-title {
  display: none;
}
.form-section#section-actions .form-cell,
.subform-section#section-actions .form-cell,
.userProfile-body-content .form fieldset#section-actions .form-cell {
  margin: 0;
  gap: 10px !important;
}
.form-section#section-actions input.form-button,
.subform-section#section-actions input.form-button,
.userProfile-body-content .form fieldset#section-actions input.form-button {
  width: 100% !important;
}
.form-section .form-column.form-column-horizontal,
.form-section .subform-column.subform-column-horizontal,
.subform-section .form-column.form-column-horizontal,
.subform-section .subform-column.subform-column-horizontal,
.userProfile-body-content .form fieldset .form-column.form-column-horizontal,
.userProfile-body-content .form fieldset .subform-column.subform-column-horizontal {
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  padding: 0;
}
.form-section .form-column.form-column-horizontal [style*=clear],
.form-section .subform-column.subform-column-horizontal [style*=clear],
.subform-section .form-column.form-column-horizontal [style*=clear],
.subform-section .subform-column.subform-column-horizontal [style*=clear],
.userProfile-body-content .form fieldset .form-column.form-column-horizontal [style*=clear],
.userProfile-body-content .form fieldset .subform-column.subform-column-horizontal [style*=clear] {
  display: none;
}

.form-section:has(+ #section-actions) .subform-cell:has(> .subform-container) {
  margin-bottom: 0 !important;
}

.customHtml.no_label {
  gap: 0 !important;
}

.subform-section:has(> .subform-column > .subform-cell > .subform-container.no-frame) {
  background: transparent !important;
  box-shadow: none !important;
}
.subform-section:has(> .subform-column > .subform-cell > .subform-container.no-frame) > .form-column, .subform-section:has(> .subform-column > .subform-cell > .subform-container.no-frame) > .subform-column {
  padding: 0 !important;
}
.subform-section:has(> .subform-column > .subform-cell > .subform-container.no-frame) > .form-section-title, .subform-section:has(> .subform-column > .subform-cell > .subform-container.no-frame) .subform-section-title {
  background: var(--ml-bg-surface-1) !important;
  border-radius: var(--ml-input-radius-base) var(--ml-input-radius-base) 0 0 !important;
}

.form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame),
.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame),
.subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame),
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) {
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 0 !important;
}
.form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .form-column, .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .subform-column,
.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .form-column,
.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .subform-column,
.subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) > .form-column,
.subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) > .subform-column,
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) > .form-column,
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) > .subform-column {
  padding: 0 !important;
}
.form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .form-section-title, .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) .subform-section-title,
.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .form-section-title,
.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) .subform-section-title,
.subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) > .form-section-title,
.subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) .subform-section-title,
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) > .form-section-title,
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .subform-column > .subform-cell > .subform-container.no-frame) .subform-section-title {
  background: var(--ml-bg-surface-1) !important;
  border-radius: var(--ml-input-radius-base) var(--ml-input-radius-base) 0 0 !important;
}

.form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) {
  margin-top: 1.5rem !important;
}

.form-section:has(.subform-container.has-frame) .form-column {
  padding: 0 !important;
}
.form-section:has(.subform-container.has-frame) .subform-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):not(:has(> .form-column > .subform-cell > .subform-container.has-frame)),
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):not(:has(> .form-column > .subform-cell > .subform-container.no-frame)):not(:has(> .form-column > .subform-cell > .subform-container.no-frame)) {
  margin-top: 0 !important;
  border-radius: 0 0 var(--ml-input-radius-base) var(--ml-input-radius-base) !important;
  border-top: 0 !important;
  top: -3px;
  margin-bottom: -3px;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
}
.no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):not(:has(> .form-column > .subform-cell > .subform-container.has-frame)) .form-column,
.no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):not(:has(> .form-column > .subform-cell > .subform-container.no-frame)):not(:has(> .form-column > .subform-cell > .subform-container.no-frame)) .form-column {
  padding-top: 4px !important;
}

.no_label > .form-section-title, .no_label > .subform-section-title {
  padding: 0 !important;
  display: none !important;
}

.chosen-container-active .chosen-choices {
  border-color: transparent !important;
  box-shadow: 0 0 0 2px var(--ml-color-brand-500) !important;
  outline: none !important;
}

.numeric_field_controls {
  position: absolute;
  right: 27px;
  bottom: 5px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.numeric_field_controls a.numeric_field_control {
  display: flex;
  padding: 2px;
}

.chosen-container .chosen-single {
  height: initial !important;
  display: flex !important;
  align-items: center;
  box-shadow: none !important;
  font-size: var(--ml-font-size-base);
  min-height: 36px;
}
.chosen-container .chosen-single abbr {
  top: 50% !important;
  transform: translateY(-50%);
}
.chosen-container .chosen-single div {
  display: flex !important;
  align-items: center;
}
.chosen-container .chosen-single div b {
  width: 10px !important;
  height: 23px !important;
}
.chosen-container .chosen-search input[type=text] {
  width: 100% !important;
}
.chosen-container .chosen-choices {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  flex-wrap: wrap;
  padding: 4px 10px !important;
  background-image: none !important;
  border-color: var(--ml-input-border) !important;
}
.chosen-container .chosen-choices > li.search-choice {
  background: var(--ml-bg-strongest) !important;
  border: none !important;
  font-size: var(--ml-font-size-label);
  padding: 7px 10px !important;
  display: flex !important;
  align-items: center;
  gap: 5px;
  border-radius: var(--ml-radius-full) !important;
  box-shadow: none !important;
  transition: box-shadow 0.2s ease;
  margin: 0 !important;
}
.chosen-container .chosen-choices > li.search-choice:hover {
  box-shadow: var(--ml-shadow-2) !important;
}
.chosen-container .chosen-choices > li.search-choice > .search-choice-close {
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
  height: 11px !important;
  background: url(https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen-sprite.png) -42px 1px no-repeat !important;
}
.chosen-container .chosen-choices > li.search-choice > .search-choice-close::after {
  color: var(--ml-text-disabled) !important;
  top: 0 !important;
  top: -1px !important;
  position: relative !important;
}
.chosen-container .chosen-choices > li.search-choice > .search-choice-close:hover::after {
  color: red !important;
}
.chosen-container .chosen-drop {
  background: var(--ml-bg-surface-1);
  border-radius: var(--ml-dropdown-radius);
  top: 60px !important;
  left: 0 !important;
  display: none;
  pointer-events: none;
  overflow: hidden;
  transform-origin: top center;
  border: none !important;
  animation: hide 0.15s ease-in-out;
  box-shadow: var(--ml-shadow-2);
}
body.dark-version .chosen-container .chosen-drop {
  background: var(--ml-bg-surface-1);
}

.chosen-container.chosen-with-drop .chosen-drop {
  display: block;
  z-index: 1010 !important;
  pointer-events: all !important;
  animation: show 0.15s ease-in-out;
}
.chosen-container .chosen-results {
  overflow: hidden;
}
.chosen-container .chosen-results li {
  padding: 9px 13px !important;
  color: var(--ml-text-default);
}
.chosen-container .chosen-results li.highlighted {
  background: var(--ml-bg-surface-2) !important;
  color: var(--ml-text-default) !important;
}
body.dark-version .chosen-container .chosen-results li.result-selected {
  color: var(--ml-bg-surface-2);
}

.chosen-container.chosen-container-single .chosen-drop {
  top: 52px !important;
}

@keyframes show {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0px, 0);
  }
}
@keyframes hide {
  from {
    display: block;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    display: none;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
}
:root {
  --ui-datepicker-width: 325px !important;
}

.datepicker-wrapper {
  max-width: initial !important;
}

.datepicker-input-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
}
.datepicker-input-wrapper input {
  width: 100%;
}

#ui-datepicker-div {
  display: none;
  border-radius: var(--ml-dropdown-radius) !important;
}

.ui-datepicker {
  border: none !important;
  width: var(--ui-datepicker-width) !important;
  box-shadow: var(--ml-shadow-2) !important;
  border-radius: var(--ml-dropdown-radius) !important;
  padding: 3px 10px !important;
  margin-top: 5px;
  background: var(--ml-bg-surface-1) !important;
}

.ui-corner-all {
  border-radius: 0 !important;
}

.ui-widget-header {
  border: 0 !important;
  width: 100% !important;
}

.ui-datepicker-header {
  text-align: center !important;
  background: transparent !important;
  padding-bottom: 15px !important;
  font-weight: var(--ml-font-weight-regular) !important;
}
.ui-datepicker-header .ui-datepicker-prev,
.ui-datepicker-header .ui-datepicker-next,
.ui-datepicker-header .ui-datepicker-title {
  border: none !important;
  outline: none !important;
}
.ui-datepicker-header .ui-datepicker-title {
  display: flex !important;
  position: relative;
  top: 5px;
  justify-content: center;
}
.ui-datepicker-header .ui-datepicker-prev,
.ui-datepicker-header .ui-datepicker-next {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.ui-datepicker-header .ui-datepicker-prev span,
.ui-datepicker-header .ui-datepicker-next span {
  display: none !important;
}
.ui-datepicker-header .ui-datepicker-prev::after,
.ui-datepicker-header .ui-datepicker-next::after {
  display: none !important;
}
.ui-datepicker-header .ui-datepicker-prev:before,
.ui-datepicker-header .ui-datepicker-next:before {
  background-image: none !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: var(--ml-font-weight-bold) !important;
  z-index: 9999 !important;
  font-size: var(--ml-font-size-base) !important;
}
.ui-datepicker-header .ui-datepicker-prev.ui-datepicker-prev-hover, .ui-datepicker-header .ui-datepicker-prev.ui-datepicker-next-hover,
.ui-datepicker-header .ui-datepicker-next.ui-datepicker-prev-hover,
.ui-datepicker-header .ui-datepicker-next.ui-datepicker-next-hover {
  top: 50% !important;
  background: var(--ml-bg-strong) !important;
  border-radius: var(--ml-radius-xs) !important;
}
.ui-datepicker-header .ui-datepicker-prev.ui-datepicker-prev-hover::before, .ui-datepicker-header .ui-datepicker-prev.ui-datepicker-next-hover::before,
.ui-datepicker-header .ui-datepicker-next.ui-datepicker-prev-hover::before,
.ui-datepicker-header .ui-datepicker-next.ui-datepicker-next-hover::before {
  color: var(--bs-dark) !important;
}
.ui-datepicker-header .ui-datepicker-prev.ui-datepicker-prev-hover,
.ui-datepicker-header .ui-datepicker-next.ui-datepicker-prev-hover {
  left: 2px !important;
}
.ui-datepicker-header .ui-datepicker-prev.ui-datepicker-next-hover,
.ui-datepicker-header .ui-datepicker-next.ui-datepicker-next-hover {
  right: 2px !important;
}
.ui-datepicker-header .ui-datepicker-next:before {
  content: "\f054" !important;
}
.ui-datepicker-header .ui-datepicker-prev:before {
  content: "\f053" !important;
}
.ui-datepicker-header select.ui-datepicker-month,
.ui-datepicker-header select.ui-datepicker-year {
  margin: 5px !important;
  font-weight: var(--ml-font-weight-regular) !important;
  padding: 8px 12px !important;
  background: var(--ml-bg-surface-1) !important;
  border-radius: var(--ml-radius-xs) !important;
  font-size: var(--ml-font-size-base) !important;
  color: var(--bs-dark) !important;
}

.ui-datepicker-prev.ui-state-hover,
.ui-datepicker-next.ui-state-hover {
  border: none !important;
  outline: none !important;
  background: rgba(var(--ml-color-brand-500-rgb), 50%) !important;
}

.ui-datepicker-calendar .ui-state-default {
  background: none !important;
  border: none !important;
  text-align: center !important;
  height: 33px !important;
  width: 33px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9em !important;
}
body.dark-version .ui-datepicker-calendar .ui-state-default {
  color: var(--ml-text-default) !important;
}

.ui-datepicker-calendar .ui-state-highlight {
  color: var(--ml-text-brand-default) !important;
}
.ui-datepicker-calendar .ui-state-active {
  border-radius: 50% !important;
  background-color: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand) !important;
}
.ui-datepicker-calendar thead th {
  color: var(--ml-text-disabled) !important;
  font-weight: var(--ml-font-weight-regular) !important;
}

.ui-datepicker-buttonpane {
  border: none !important;
}
.ui-datepicker-buttonpane .ui-state-default {
  background: var(--ml-text-default) !important;
  border: none !important;
}
.ui-datepicker-buttonpane .ui-datepicker-close,
.ui-datepicker-buttonpane .ui-datepicker-current {
  background: transparent !important;
  color: var(--ml-text-default) !important;
  text-transform: none !important;
  border: none !important;
  opacity: 1 !important;
  font-weight: var(--ml-font-weight-regular) !important;
  outline: none !important;
}
.ui-datepicker-buttonpane .ui-datepicker-close:hover,
.ui-datepicker-buttonpane .ui-datepicker-current:hover {
  background: transparent !important;
}

.hasDatepicker + a {
  position: absolute !important;
  display: inline-block !important;
  padding: 5px 10px !important;
  border-left: none !important;
  right: 2% !important;
  color: var(--ml-text-default) !important;
}
.hasDatepicker + a img {
  width: 21px !important;
  display: none !important;
}
html[dir=rtl] .hasDatepicker + a {
  left: 2% !important;
  right: initial !important;
}

.hasDatepicker + a::before {
  content: "\f073" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: var(--ml-font-weight-bold) !important;
}

.disabled-input a.trigger,
.hasDatepicker:disabled + a {
  display: none !important;
}

.trigger + .close-icon {
  display: none !important;
}

@media (max-width: 767.98px) {
  :root {
    --ui-datepicker-width: min(325px, calc(100vw - (2 * var(--ml-space-4)))) !important;
  }
  .ui-datepicker td a,
  .ui-datepicker td span {
    min-height: var(--ml-space-9);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}
.dark-version table tbody tr td .datalist-chips {
  color: var(--ml-text-default) !important;
}

.dataList .mobile_search_trigger {
  display: none !important;
}
.dataList .filter_form .filters {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.dataList .filter_form .filters .filter-cell {
  padding: 0 !important;
}
.dataList .filter_form .filters .filter-cell > [id*=_container] {
  margin: 0 !important;
  position: relative;
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select {
  padding: 10px !important;
  font-size: var(--ml-font-size-label);
  appearance: base-select;
  width: 100%;
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select::picker-icon {
  display: none !important;
  appearance: none !important;
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select::picker(select) {
  appearance: base-select !important;
  background: var(--ml-bg-surface-1);
  border: none;
  border-radius: var(--ml-dropdown-radius);
  box-shadow: var(--ml-shadow-2);
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select::picker(select) {
  transition: display allow-discrete 0.2s, opacity 0.2s, scale 0.2s, transform 0.2s, overlay 0.2s allow-discrete;
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select:not(:open)::picker(select) {
  opacity: 0;
  scale: 0.95;
  transform: translateY(10px);
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select:open::picker(select) {
  opacity: 1;
  scale: 1;
  transform: translateY(5px);
}
@starting-style {
  .dataList .filter_form .filters .filter-cell > [id*=_container] select:open::picker(select) {
    opacity: 0;
    scale: 0.95;
    transform: translateY(10px);
  }
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select option {
  padding: 4px 10px;
}
.dataList .filter_form .filters .filter-cell > [id*=_container] select option::checkmark {
  content: "";
  width: 100%;
  height: 20px;
  background: var(--ml-bg-surface-2);
  position: absolute;
  z-index: -1;
  left: 0;
}
.dataList .filter_form .filters .filter-cell > [id*=_container]::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0 !important;
  border-left: 0.3em solid transparent;
  position: absolute;
  right: 8px;
  z-index: 2;
  top: 17px;
  font-size: var(--ml-font-size-label);
}
.dataList .filter_form .filters .filter-cell label.mobile_label {
  display: block !important;
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-bold) !important;
}
.dataList .filter_form .filters .waves-button-input {
  padding: 7px 15px !important;
}
.dataList .filter_form .filters input::placeholder {
  font-size: var(--ml-font-size-label) !important;
}
.dataList .filter_form .filters input:not([type=checkbox], [type=radio], [type=submit]), .dataList .filter_form .filters select, .dataList .filter_form .filters textarea {
  box-shadow: var(--ml-shadow-2);
  border-color: transparent !important;
}
.dataList .filter_form .filters input:not([type=checkbox], [type=radio], [type=submit]) {
  width: 100% !important;
}
.dataList .filter_form .filters [id*=date_filter_container] {
  display: flex;
  align-items: center;
  position: relative;
}
.dataList .filter_form .filters [id*=date_filter_container] .ui-datepicker-trigger {
  display: none;
}
html[dir=rtl] .dataList .filter_form .filters [id*=date_filter_container]::before {
  left: 11px !important;
  right: initial !important;
}

.dataList .filter_form .filters [id*=date_filter_container]::before {
  content: "\f073";
  position: absolute;
  z-index: 1;
  right: 11px;
  font-family: "Font Awesome 5 Free";
  font-weight: var(--ml-font-weight-bold);
  color: var(--ml-text-default) !important;
  pointer-events: none;
}
.dataList .filter_form .filters [id*=_date_from] + img.ui-datepicker-trigger, .dataList .filter_form .filters [id*=_date_to] + img.ui-datepicker-trigger {
  position: relative;
  left: -8px;
  margin-left: -14px;
}
html[dir=rtl] .dataList .filter_form .filters .from_to_date_filter_container .from-date-container {
  border-right: none !important;
  border-left: var(--ml-border-width) solid var(--ml-border-weak) !important;
}

.dataList .filter_form .filters .hidden-filter {
  display: none !important;
}
.dataList .table-wrapper {
  overflow-x: auto;
}
.dataList .table-wrapper table {
  width: 100% !important;
}
.dataList .table-wrapper table td.column-hidden, .dataList .table-wrapper table th.column-hidden, .dataList .table-wrapper table td[xclass*=column-hidden] {
  display: none !important;
}
.dataList th.sorted a {
  color: gray !important;
}
.dataList {
  /* Not sorted */
}
.dataList th.sortable > a::after {
  content: "\f0dc";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 0.5rem;
}
.dataList {
  /* Sorted ascending */
}
.dataList th.sortable.sorted.order1 > a::after {
  content: "\f0de";
}
.dataList {
  /* Sorted descending */
}
.dataList th.sortable.sorted.order2 > a::after {
  content: "\f0dd";
}
.dataList table tbody tr td > p {
  font-size: inherit !important;
  line-height: inherit !important;
  font-size: var(--ml-font-size-label) !important;
  padding: 5px 22px !important;
  display: inline-block;
  border-radius: var(--ml-radius-full) !important;
}
.dataList .datalist-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  overflow: hidden;
}
.dataList .datalist-footer .pagebanner {
  white-space: nowrap;
  padding: 10px;
  text-align: right;
  font-size: var(--ml-font-size-label);
}
.dataList .datalist-footer .pagebanner, .dataList .datalist-footer .pagelinks {
  flex: 1;
}

body:not(.datalist-compact-style) .dataList .table-wrapper {
  width: 100%;
  padding: 0 10px;
}
body:not(.datalist-compact-style) .dataList table {
  border-collapse: separate;
  border-spacing: 0 var(--ml-datalist-row-spacing);
}
body:not(.datalist-compact-style) .dataList table thead tr {
  position: relative;
  box-shadow: var(--ml-shadow-2);
}
body:not(.datalist-compact-style) .dataList table thead tr th {
  border: none !important;
  background: var(--ml-bg-surface-1);
  font-size: var(--ml-font-size-label) !important;
  text-transform: none !important;
  font-weight: var(--ml-font-weight-regular);
  box-shadow: none !important;
  padding: 15px 5px !important;
}
html[dir=rtl] body:not(.datalist-compact-style) .dataList table thead tr th:first-child {
  border-radius: 0 var(--ml-datalist-radius) var(--ml-datalist-radius) 0 !important;
}
html[dir=rtl] body:not(.datalist-compact-style) .dataList table thead tr th:last-child {
  border-radius: var(--ml-datalist-radius) 0 0 var(--ml-datalist-radius) !important;
}

body:not(.datalist-compact-style) .dataList table thead tr th:first-child {
  border-radius: var(--ml-datalist-radius) 0 0 var(--ml-datalist-radius);
}
body:not(.datalist-compact-style) .dataList table thead tr th:last-child {
  border-radius: 0 var(--ml-datalist-radius) var(--ml-datalist-radius) 0;
}
body:not(.datalist-compact-style) .dataList table thead tr th:last-child::before, body:not(.datalist-compact-style) .dataList table thead tr th:last-child::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--ml-bg-surface-1);
  width: 20px;
  height: 100%;
  top: 0;
}
body:not(.datalist-compact-style) .dataList table thead tr th:last-child::before {
  left: -7px;
  border-radius: var(--ml-datalist-radius) 0 0 var(--ml-datalist-radius);
}
body:not(.datalist-compact-style) .dataList table thead tr th:last-child::after {
  right: -7px;
  border-radius: 0 var(--ml-datalist-radius) var(--ml-datalist-radius) 0;
}
body:not(.datalist-compact-style) .dataList table thead tr th.row_action.rowaction_header:empty {
  padding: 0 !important;
}
body:not(.datalist-compact-style) .dataList table th,
body:not(.datalist-compact-style) .dataList table td {
  vertical-align: middle !important;
  text-align: center;
  color: var(--ml-text-default);
}
body:not(.datalist-compact-style) .dataList table tbody {
  border-radius: var(--ml-datalist-radius);
  overflow: hidden;
  position: relative;
}
body:not(.datalist-compact-style) .dataList table tbody::before {
  content: "";
  z-index: 0;
  display: block;
  position: absolute;
  top: 2px;
  left: -7px;
  width: calc(100% + 15px);
  height: calc(100% + 8px);
  background: var(--ml-bg-surface-1);
  border-radius: var(--ml-datalist-radius);
  box-shadow: var(--ml-shadow-2);
}
body:not(.datalist-compact-style) .dataList table tbody tr:nth-of-type(odd) {
  background: var(--ml-bg-surface-2) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr:nth-of-type(odd):after {
  content: "";
}
body:not(.datalist-compact-style) .dataList table tr {
  background: transparent;
  border-radius: var(--ml-datalist-radius);
  position: relative;
  z-index: 1;
}
body.dark-version body:not(.datalist-compact-style) .dataList table tr {
  background: var(--ml-bg-surface-1) !important;
}

body:not(.datalist-compact-style) .dataList table tr td {
  padding: 6px !important;
  font-size: var(--ml-font-size-label) !important;
}
html[dir=rtl] body:not(.datalist-compact-style) .dataList table tr td:first-child {
  border-radius: 0 var(--ml-datalist-radius) var(--ml-datalist-radius) 0 !important;
}
html[dir=rtl] body:not(.datalist-compact-style) .dataList table tr td:last-child {
  border-radius: var(--ml-datalist-radius) 0 0 var(--ml-datalist-radius) !important;
}

body:not(.datalist-compact-style) .dataList table tr td:first-child {
  border-radius: var(--ml-datalist-radius) 0 0 var(--ml-datalist-radius);
}
body:not(.datalist-compact-style) .dataList table tr td:last-child {
  border-radius: 0 var(--ml-datalist-radius) var(--ml-datalist-radius) 0;
}
body:not(.datalist-compact-style) .dataList table tr td.row_action {
  position: relative;
  padding: 7px 17px !important;
  width: 1% !important;
}
body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > .btn, body:not(.datalist-compact-style) .dataList table tr td.row_action > .btn {
  padding: 5px 10px !important;
  font-size: var(--ml-font-size-n4) !important;
  font-weight: var(--ml-font-weight-regular) !important;
  width: 100%;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > .btn > i, body:not(.datalist-compact-style) .dataList table tr td.row_action > .btn > i {
  font-size: var(--ml-font-size-base) !important;
}
body:not(.datalist-compact-style) .dataList table tr td.row_action:has(> .row_action_inner > .btn), body:not(.datalist-compact-style) .dataList table tr td.row_action:has(> .btn) {
  padding: 7px 4px !important;
}
@media (max-width: 767.98px) {
  body:not(.datalist-compact-style) .dataList table tr td.row_action:has(.row_action_inner:empty) {
    display: none !important;
  }
}
body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i), body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa), body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far), body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas), body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i), body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa), body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas), body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--ml-bg-surface-2);
  text-align: center;
  line-height: 40px;
  color: var(--ml-text-default);
  box-shadow: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease-in-out;
}
body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far):hover {
  background: var(--ml-bg-highlight-dark-alpha-200);
  text-decoration: none !important;
  box-shadow: none !important;
}
body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas), body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) {
  background: var(--ml-bg-surface-3);
}
body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas):hover, body.dark-version body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far):hover {
  background: var(--ml-bg-surface-2);
}

body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> i) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fa) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .far) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > a:not(.btn):has(> .fas) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .zmdi, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) i, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .fa, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .far, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .fas, body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .zmdi {
  font-size: var(--ml-font-size-n1);
}
body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i), body:not(.datalist-compact-style) .dataList table tr td.row_action > a.btn-danger:not(.btn):has(> i) {
  color: var(--ml-icon-danger-default) !important;
}
body:not(.datalist-compact-style) .dataList table tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i):hover, body:not(.datalist-compact-style) .dataList table tr td.row_action > a.btn-danger:not(.btn):has(> i):hover {
  color: var(--ml-icon-danger-hover) !important;
}
body:not(.datalist-compact-style) .dataList .datalist-footer {
  margin-top: 15px;
  margin-right: -10px;
  margin-left: -10px;
}

.iframe-content .dataList table thead tr, .iframe-content .dataList table thead th {
  background: var(--ml-bg-surface-2) !important;
}

.rtl .dataList span.pagelinks {
  text-align: right !important;
}

.datalist-compact-style .dataList .actions.top {
  margin-bottom: 10px !important;
}
.datalist-compact-style .dataList .table-wrapper {
  margin-top: 10px !important;
  width: 100%;
  border-radius: var(--ml-datalist-radius);
  background: var(--ml-bg-surface-1);
  overflow-y: auto;
  box-shadow: var(--ml-shadow-2);
}
.datalist-compact-style .dataList table thead tr {
  position: relative;
}
.datalist-compact-style .dataList table thead tr th {
  border: none !important;
  background: var(--ml-bg-surface-2);
  font-size: var(--ml-font-size-label) !important;
  text-transform: none !important;
  font-weight: var(--ml-font-weight-regular);
  box-shadow: none !important;
  padding: 15px 5px !important;
}
.datalist-compact-style .dataList table th,
.datalist-compact-style .dataList table td {
  vertical-align: middle !important;
  text-align: center;
  color: var(--ml-text-default);
}
.datalist-compact-style .dataList table tbody {
  border-radius: var(--ml-datalist-radius);
  overflow: hidden;
  position: relative;
}
.datalist-compact-style .dataList table tbody tr {
  background: var(--ml-bg-surface-1);
  border-radius: var(--ml-datalist-radius);
  position: relative;
  z-index: 1;
  border-bottom: var(--ml-border-width) solid var(--ml-datalist-border);
}
.datalist-compact-style .dataList table tbody tr:last-child {
  border-radius: 0 0 var(--ml-datalist-radius) var(--ml-datalist-radius);
}
html[dir=rtl] .datalist-compact-style .dataList table tbody tr:last-child {
  border-radius: var(--ml-datalist-radius) var(--ml-datalist-radius) 0 0;
}

.datalist-compact-style .dataList table tbody tr td {
  padding: 7px !important;
}
.datalist-compact-style .dataList table tbody tr td.row_action {
  position: relative;
  padding: 7px 3px !important;
  width: 1%;
}
.datalist-compact-style .dataList table tbody tr td.row_action:last-child {
  padding-right: 10px !important;
}
html[dir=rtl] .datalist-compact-style .dataList table tbody tr td.row_action:last-child {
  padding-left: 10px !important;
  padding-right: 0 !important;
}

.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > .btn,
.datalist-compact-style .dataList table tbody tr td.row_action > .btn {
  padding: 5px 10px !important;
  font-size: var(--ml-font-size-n4) !important;
  font-weight: var(--ml-font-weight-regular) !important;
  width: 100%;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > .btn > i,
.datalist-compact-style .dataList table tbody tr td.row_action > .btn > i {
  font-size: var(--ml-font-size-base) !important;
}
.datalist-compact-style .dataList table tbody tr td.row_action:has(> .row_action_inner > .btn), .datalist-compact-style .dataList table tbody tr td.row_action.row_action:has(> .btn) {
  padding: 7px 4px !important;
}
.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i),
.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
  width: 40px;
  background: rgba(var(--ml-color-brand-500-rgb), 0.15);
  text-align: center;
  color: var(--ml-text-brand-default);
  box-shadow: none !important;
  text-decoration: none !important;
  border-radius: var(--ml-datalist-radius);
  transition: all 0.2s ease-in-out;
}
.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i):hover,
.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i):hover {
  background: rgba(var(--ml-color-brand-500-rgb), 0.3);
}
.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i).btn-danger,
.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i).btn-danger {
  background: var(--ml-bg-danger-weak) !important;
  color: var(--ml-text-on-danger-weak);
}
.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i).btn-danger:hover,
.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i).btn-danger:hover {
  background: var(--ml-bg-danger-weak) !important;
}
.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) i,
.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) i {
  font-size: var(--ml-font-size-n1);
}
.datalist-compact-style .dataList table tbody tr td p {
  font-size: inherit !important;
  line-height: inherit !important;
}
.datalist-compact-style .dataList .datalist-footer {
  margin-top: 0;
}

.iframe-content .dataList table thead tr, .iframe-content .dataList table thead th {
  background: var(--ml-bg-surface-2) !important;
}

.rtl .dataList span.pagelinks {
  text-align: right !important;
}

.dataList .pagelinks:has(> :last-child:nth-child(1)) {
  display: none !important;
}
.dataList .pagelinks .pc {
  background-image: none !important;
  font: normal normal normal 14px/1 FontAwesome;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: initial !important;
  height: initial !important;
}
.dataList .pagelinks .pc.first:before, .dataList .pagelinks .pc.first-disabled:before {
  content: "\f100";
}
.dataList .pagelinks .pc.prev:before, .dataList .pagelinks .pc.prev-disabled:before {
  content: "\f104";
}
.dataList .pagelinks .pc.next:before, .dataList .pagelinks .pc.next-disabled:before {
  content: "\f105";
}
.dataList .pagelinks .pc.last:before, .dataList .pagelinks .pc.next-disabled:before {
  content: "\f101";
}
.dataList .pagelinks .pc[class*=-disabled] {
  cursor: default;
  color: var(--ml-alpha-light-500);
  background: var(--ml-bg-surface-1) !important;
  color: gray !important;
}
body.dark-version .dataList .pagelinks .pc[class*=-disabled] {
  background: var(--ml-bg-surface-2) !important;
  color: var(--bs-dark) !important;
}

.dataList .pagelinks .pc[class*=-disabled]:hover {
  background: var(--ml-bg-surface-1) !important;
}
body.dark-version .dataList .pagelinks .pc[class*=-disabled]:hover {
  background: var(--ml-bg-surface-2) !important;
}

.dataList span.pagelinks {
  margin-top: 0px;
  text-align: left;
  font-size: 0 !important;
  color: transparent;
}
.dataList span.pagelinks:not([style*=display]) {
  display: flex !important;
}
.dataList span.pagelinks a, .dataList span.pagelinks strong, .dataList span.pagelinks > span, .dataList span.pagelinks .pc {
  margin: 0px 3px;
  border: none;
  border-radius: var(--ml-btn-radius-sm) !important;
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-label) !important;
  box-shadow: var(--ml-shadow-2);
  background: var(--ml-bg-surface-1);
  width: 35px !important;
  height: 35px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: var(--ml-font-size-base);
  transition: background 0.2s ease;
}
.dataList span.pagelinks a:hover, .dataList span.pagelinks strong:hover, .dataList span.pagelinks > span:hover, .dataList span.pagelinks .pc:hover {
  background: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand);
}
.dataList span.pagelinks a > .pc {
  margin: 0 !important;
}
.dataList span.pagelinks strong {
  background: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand) !important;
}

.datalist-compact-style .dataList span.pagelinks {
  background: var(--ml-bg-surface-1) !important;
  padding: 15px 5px !important;
}
.datalist-compact-style .dataList span.pagelinks a, .datalist-compact-style .dataList span.pagelinks strong, .datalist-compact-style .dataList span.pagelinks > span, .datalist-compact-style .dataList span.pagelinks .pc {
  box-shadow: none !important;
  width: 30px !important;
  height: 30px !important;
}

/** @format */
.dataList div.exportlinks {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 5px;
  font-size: var(--ml-font-size-label);
  line-height: 1;
  padding: 5px 10px;
}

span.export {
  position: relative;
  line-height: 1;
  padding: 0 4px 1px 11px !important;
  margin: 0;
  font-size: var(--ml-font-size-base) !important;
  color: var(--ml-text-default);
  text-align: center;
  background: none !important;
  transition: all 0.2s ease-in-out;
}

.dropdown-exports a:hover span.export,
span.export:hover {
  color: var(--ml-text-brand-default) !important;
}

span.export:before {
  content: "";
  font-family: "Font Awesome 5 Free";
  font-weight: var(--ml-font-weight-bold);
  font-size: var(--ml-font-size-base);
  position: relative;
  left: -7px;
  background: none !important;
}

span.export.csv:before {
  content: "\f15c";
}

span.export.excel:before {
  content: "\f1c3";
}

span.export.xml:before {
  content: "\f1c9";
}

span.export.pdf:before {
  content: "\f1c1";
}

.dataList .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dataList .actions.top {
  margin-top: 20px !important;
}
.dataList .actions.right {
  justify-content: flex-end;
}
.dataList .actions .dropdown-exports {
  display: flex;
  flex: 1;
  width: 100%;
  justify-content: end;
}
.dataList .actions .dropdown-exports .dropdown-toggle i {
  font-size: var(--ml-font-size-base);
  margin-right: 4px;
}
.dataList .actions .dropdown-exports .dropdown-menu {
  transform-origin: initial !important;
  margin-top: 0 !important;
  inset: auto !important;
  right: 0 !important;
  top: 50px !important;
  padding: 5px !important;
}
html[dir=rtl] .dataList .actions .dropdown-exports .dropdown-menu {
  left: 0 !important;
  right: initial !important;
}
html[dir=rtl] .dataList .actions .dropdown-exports .dropdown-menu:before {
  right: auto !important;
  left: 28px !important;
}

.dataList .actions .dropdown-exports .dropdown-menu:before {
  right: 28px !important;
  left: auto !important;
}
.dataList .actions .dropdown-exports .dropdown-item {
  padding: 5px !important;
}
.dataList .datalist-action-dropdown-toggle::after {
  display: none !important;
}
.dataList .datalist-action-dropdown-menu {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: all 200ms ease;
  pointer-events: none;
  box-shadow: var(--ml-shadow-2) !important;
}
.dataList .datalist-action-dropdown-menu.animate-in {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.dataList .datalist-action-dropdown-menu.animate-out {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none;
}

body.safari-browser:not(.datalist-compact-style) .dataList thead tr th:last-child::before, body.safari-browser:not(.datalist-compact-style) .dataList thead tr th:last-child::after {
  display: none !important;
}
body.safari-browser:not(.datalist-compact-style) .dataList tbody:before {
  display: none !important;
}
body.safari-browser:not(.datalist-compact-style) .dataList tbody tr {
  background: var(--ml-bg-surface-1) !important;
}

.dark-version .filters .filter-cell > .typeAheadMultiSelect .btn-group > button.multiselect {
  background: var(--ml-bg-surface-1) !important;
  letter-spacing: initial !important;
  color: var(--ml-text-default);
}
.dark-version .filters .filter-cell > .typeAheadMultiSelect .multiselect-container {
  background: var(--ml-bg-surface-1) !important;
}
.dark-version .filters .filter-cell > .typeAheadMultiSelect .multiselect-container li.active > a > label {
  background: var(--ml-bg-surface-2) !important;
}

.multiselect-container {
  position: absolute;
  list-style-type: none;
  margin: 0;
  padding: 0;
  max-height: 650px;
  overflow-y: auto;
}

.multiselect-container .input-group {
  margin: 0 !important;
  margin-bottom: 5px !important;
  box-shadow: none;
  border-bottom: var(--ml-border-width) solid var(--ml-border-default);
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
}
.multiselect-container .input-group .multiselect-search {
  box-shadow: none !important;
  border-radius: 0 !important;
}
.multiselect-container .input-group::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: var(--ml-font-weight-bold);
  padding: 10px;
  padding-right: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.multiselect-container > li {
  padding: 0;
}

.multiselect-container > li > a.multiselect-all label {
  font-weight: var(--ml-font-weight-bold);
}

.multiselect-container > li > label.multiselect-group {
  margin: 0;
  padding: 3px 20px 3px 20px;
  height: 100%;
  font-weight: var(--ml-font-weight-bold);
}

.multiselect-container > li > a > label {
  margin: 0;
  height: 100%;
  cursor: pointer;
  font-weight: var(--ml-font-weight-regular);
}

.multiselect-container > li > a > label.radio,
.multiselect-container > li > a > label.checkbox {
  margin: 0;
}

.multiselect-container > li > a > label > input[type=checkbox] {
  margin-bottom: 0 !important;
}

.btn-group > .btn-group:nth-child(2) > .multiselect.btn {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* Added style to prevent conflict with others bootstrap versions */
.typeAheadMultiSelect .btn-group {
  margin-bottom: 0 !important;
  width: 100%;
}

.filters .filter-cell > .typeAheadMultiSelect .btn-group > button.multiselect {
  background: var(--ml-bg-surface-1) !important;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--ml-font-weight-regular);
  height: 39px !important;
  text-transform: initial;
  letter-spacing: var(--ml-tracking-md) !important;
  border-radius: var(--ml-input-radius-base) !important;
  font-size: var(--ml-font-size-label) !important;
  box-shadow: var(--ml-shadow-2);
}

.typeAheadMultiSelect .multiselect-container > li {
  padding: 4px 7px;
}

.typeAheadMultiSelect .multiselect-container > li > a > label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.typeAheadMultiSelect .multiselect-container > li > a > label {
  padding: 5px;
  border-radius: var(--ml-dropdown-radius);
  transition: all 0.2s ease-in-out;
}

.typeAheadMultiSelect .multiselect-container > li.active > a > label {
  background: var(--ml-bg-surface-2);
}

:root {
  --range-slider-bullet-size: 25px;
}

.slidecontainer {
  width: 100% !important;
  position: relative;
}
.slidecontainer input[type=range] + p {
  margin: 0px;
  background: rgba(var(--ml-color-brand-500-rgb), 0.2);
  color: var(--ml-text-brand-default);
  border-radius: var(--ml-radius-full);
  padding: 1px 15px;
  font-size: var(--ml-font-size-base) !important;
}
.slidecontainer input[type=range]:focus + p {
  transform: scale(1);
}

input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 calc(var(--range-slider-bullet-size) - 13px) rgba(var(--ml-color-brand-500-rgb), 0.2) !important;
}

input[type=range]::-moz-range-thumb:hover {
  box-shadow: 0 0 0 calc(var(--range-slider-bullet-size) - 13px) rgba(var(--ml-color-brand-500-rgb), 0.2) !important;
}

input[type=range]::-webkit-slider-thumb:active, input[type=range]::-webkit-slider-thumb:focus {
  box-shadow: 0 0 0 calc(var(--range-slider-bullet-size) - 10px) rgba(var(--ml-color-brand-500-rgb), 0.3) !important;
}

input[type=range]::-moz-range-thumb:active, input[type=range]::-moz-range-thumb:focus {
  box-shadow: 0 0 0 calc(var(--range-slider-bullet-size) - 10px) rgba(var(--ml-color-brand-500-rgb), 0.3) !important;
}

.rangeSlider,
input[type=range] {
  background: linear-gradient(to right, var(--ml-color-brand-500) 0%, var(--ml-color-brand-500) 0%, rgba(var(--ml-color-brand-500-rgb), 0.2) 0%, rgba(var(--ml-color-brand-500-rgb), 0.2) 100%);
  border: none !important;
  border-radius: var(--ml-radius-sm) !important;
  height: 6px !important;
  width: 100% !important;
  outline: none !important;
  opacity: 1 !important;
  transition: background 450ms ease-in;
  -webkit-appearance: none !important;
}
.rangeSlider::-webkit-slider-thumb, .rangeSlider::-moz-range-thumb,
input[type=range]::-webkit-slider-thumb,
input[type=range]::-moz-range-thumb {
  width: var(--range-slider-bullet-size) !important;
  height: var(--range-slider-bullet-size) !important;
  border-radius: 50% !important;
  -webkit-appearance: none !important;
  border: none !important;
  cursor: pointer !important;
  background: var(--ml-bg-brand-default) !important;
  transition: 0.2s ease-in-out;
}
.rangeSlider:active::-webkit-slider-thumb, .rangeSlider:active::-moz-range-thumb,
input[type=range]:active::-webkit-slider-thumb,
input[type=range]:active::-moz-range-thumb {
  box-shadow: 0 0 0 calc(var(--range-slider-bullet-size) - 10px) rgba(var(--ml-color-brand-500-rgb), 0.3) !important;
}

.rangeSlider::-webkit-slider-thumb {
  width: var(--range-slider-bullet-size) !important;
  height: var(--range-slider-bullet-size) !important;
  border-radius: 50% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none !important;
  cursor: pointer !important;
  background: var(--ml-bg-brand-default) !important;
  transition: 0.2s ease-in-out;
}

input[type=range]:disabled {
  opacity: 0.6 !important;
}

body:not(.switch-material-style) .switch input:checked + .tSlider {
  background: var(--ml-bg-brand-default);
}
body:not(.switch-material-style) .switch input:focus + .tSlider {
  box-shadow: none !important;
}

.switch-material-style .switch .tSlider {
  height: 13px;
  display: flex;
  align-items: center;
  width: 36px !important;
  top: 8px !important;
}
.switch-material-style .switch .tSlider::before {
  bottom: initial;
  background: var(--ml-color-white);
  transform: translateX(-14px);
  box-shadow: var(--ml-shadow-2);
}
.switch-material-style .switch .tSlider::before:hover {
  box-shadow: 0 0 0 13px rgba(var(--ml-color-brand-500-rgb), 0.1);
}
.switch-material-style .switch input:checked + .tSlider {
  background: rgba(var(--ml-color-brand-500-rgb), 0.3);
}
.switch-material-style .switch input:checked + .tSlider::before {
  background: var(--ml-bg-brand-default);
  transform: translateX(17px);
}
.switch-material-style .switch input:focus + .tSlider {
  box-shadow: none !important;
}
.switch-material-style .switch input:focus + .tSlider::before {
  box-shadow: 0 0 0 13px rgba(var(--ml-color-brand-500-rgb), 0.3);
}

.listDiv {
  display: block !important;
  border-bottom: none !important;
  max-height: 300px;
  overflow-y: auto;
}
.listDiv .listSelection {
  border: none !important;
}

.starrating {
  margin-top: -3px;
}
.starrating input {
  position: absolute;
}
.starrating label {
  height: 39px;
}
.starrating label::before {
  text-shadow: none !important;
  font-size: var(--ml-font-size-1);
  font-family: "Font Awesome 5 Free";
  content: "\f005" !important;
  font-weight: var(--ml-font-weight-bold);
  transition: color 0.15s ease-in-out;
}
.starrating > label:active {
  left: 0 !important;
  top: 0 !important;
}

.dataList td .stepsIcon {
  padding: 5px !important;
  --step-size: 45px !important;
}
.dataList td .stepsIcon .step {
  margin-bottom: 0 !important;
  min-width: 70px !important;
}
.dataList td .stepsIcon .step .step-icon-wrap {
  height: auto !important;
}
.dataList td .stepsIcon .step .step-icon-wrap::before {
  width: 28% !important;
  left: calc(var(--step-size) * -1 + 35px) !important;
}
.dataList td .stepsIcon .step .step-icon-wrap .step-icon {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
}
.dataList td .stepsIcon .step .step-icon-wrap .step-icon i {
  font-size: var(--ml-font-size-1) !important;
}
.dataList td .stepsIcon .step .step-title {
  font-size: var(--ml-font-size-label) !important;
  margin-bottom: 0 !important;
  margin-top: 5px !important;
  font-weight: var(--ml-font-weight-medium) !important;
  letter-spacing: initial !important;
}

.stepsIcon {
  --step-size: 80px;
}
.stepsIcon .step {
  margin: 0 !important;
}
.stepsIcon .step .step-icon-wrap {
  height: auto !important;
}
.stepsIcon .step .step-icon-wrap::after {
  display: none !important;
}
.stepsIcon .step .step-icon-wrap::before {
  left: calc(var(--step-size) * -1 + 29px) !important;
  border-radius: var(--ml-radius-xs);
  transition: all 0.2s ease-in-out;
}
html[dir=rtl] .stepsIcon .step .step-icon-wrap::before {
  right: calc(var(--step-size) * -1 + 29px) !important;
  left: initial !important;
}

.stepsIcon .step .step-icon {
  border: none !important;
  background: var(--ml-text-disabled) !important;
  width: var(--step-size) !important;
  height: var(--step-size) !important;
  transition: all 0.2s ease-in-out;
}
.stepsIcon .step .step-icon i {
  color: var(--ml-text-on-brand) !important;
  font-size: calc(var(--step-size) - 25px) !important;
  transition: all 0.2s ease-in-out;
}
.stepsIcon .step .step-title {
  font-size: var(--ml-font-size-base) !important;
  letter-spacing: initial !important;
  transition: all 0.2s ease-in-out;
}
.stepsIcon .step.completed .step-icon-wrap .step-icon {
  background: rgba(var(--ml-color-brand-500-rgb), 0.3) !important;
  border: none !important;
}
.stepsIcon .step.completed .step-icon-wrap::before {
  background: rgba(var(--ml-color-brand-500-rgb), 0.3) !important;
}
.stepsIcon .step.completed i, .stepsIcon .step.completed h4.step-title {
  color: var(--ml-text-brand-default) !important;
}

.dropzone.form-fileupload {
  border-radius: var(--ml-input-radius-base);
  border-style: dashed !important;
  transition: all 0.2s ease;
}
.dropzone.form-fileupload:hover {
  border-color: var(--ml-border-brand-default) !important;
}
.dropzone.form-fileupload:hover .dz-message {
  color: var(--ml-text-brand-default);
}
.dropzone.form-fileupload .dz-message {
  color: var(--bs-dark);
  transition: all 0.2s ease;
}
body.dark-version .dropzone.form-fileupload {
  background: var(--ml-page-bg);
  border-color: var(--ml-border-default);
}

ul.form-fileupload-value {
  padding-left: 5% !important;
}
ul.form-fileupload-value > li {
  display: flex !important;
  align-items: center;
  gap: 15px;
}
ul.form-fileupload-value > li:not(:last-child) {
  margin-bottom: 10px !important;
}
ul.form-fileupload-value li .remove {
  font-size: 0 !important;
  cursor: pointer;
  margin: 0 !important;
}
ul.form-fileupload-value li .remove::before {
  content: "\f00d" !important;
  font-size: var(--ml-font-size-n1) !important;
  font-family: "Font Awesome 5 Free";
  color: var(--ml-text-danger-default) !important;
  font-weight: var(--ml-font-weight-bold);
  transition: all 0.2s ease;
}
ul.form-fileupload-value li .remove:hover::before {
  color: red !important;
}

.subform_repeater_container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subform_repeater_container table {
  border-collapse: collapse;
  border-collapse: separate;
  border-spacing: 0 15px;
  width: 100% !important;
}
@media (max-width: 575.98px) {
  .subform_repeater_container table {
    min-width: 480px;
  }
}

.subform_repeater td .subform-cell input:not([name=submit], [type=checkbox], [type=radio], [type=range]), .subform_repeater td .subform-cell select, .subform_repeater td .subform-cell textarea, .subform_repeater td .subform-cell .chosen-container {
  width: 100% !important;
}

.subform_repeater > div:not(.form-clear) {
  width: 100% !important;
  padding-bottom: 20px;
}

table td .form-error-message {
  font-size: var(--ml-font-size-label) !important;
  justify-content: start !important;
  color: var(--bs-danger) !important;
}

.subform_repeater_container table thead tr,
.subform_repeater_container table thead th {
  background-color: var(--ml-bg-surface-2) !important;
  color: var(--ml-text-default) !important;
  overflow: hidden;
}

.subform_repeater_container table thead tr th:first-child {
  border-radius: var(--ml-card-radius) 0 0 var(--ml-card-radius);
}

.subform_repeater_container table thead tr th:last-child {
  padding: 12px 15px !important;
  border-radius: 0 var(--ml-card-radius) var(--ml-card-radius) 0;
}

.subform_repeater_container table th {
  text-align: center !important;
}

.subform_repeater_container table th,
.subform_repeater_container table td {
  padding: 7px 10px !important;
  border: none !important;
}

.subform_repeater_container table tbody tr {
  background: var(--ml-bg-surface-2) !important;
  border-radius: var(--ml-card-radius);
  transition: box-shadow 0.3s ease-in-out;
}

.subform_repeater_container table tbody tr:last-of-type {
  border-bottom: 2px solid var(--ml-color-brand-500) !important;
}

.subform_repeater_container table td {
  border-width: var(--ml-border-width) 0 1px 0 !important;
  border-color: var(--ml-border-weak) !important;
  border-style: solid !important;
}
body.dark-version .subform_repeater_container table td {
  border-color: var(--ml-page-bg) !important;
}

.subform_repeater_container tr td:nth-child(2) {
  border-radius: var(--ml-card-radius) 0 0 var(--ml-card-radius);
  border-width: var(--ml-border-width) 0 1px 1px !important;
  border-color: var(--ml-border-weak) !important;
  border-style: solid !important;
}
body.dark-version .subform_repeater_container tr td:nth-child(2) {
  border-color: var(--ml-page-bg) !important;
}

.subform_repeater_container tr td:last-child {
  border-radius: 0 var(--ml-card-radius) var(--ml-card-radius) 0;
  border-right-width: 1px !important;
}

.subform_repeater_container input[type=text],
.subform_repeater_container input[type=password],
.subform_repeater_container .form-control,
.subform_repeater_container select,
.subform_repeater_container textarea {
  margin-bottom: 0 !important;
}

.subform_repeater .repeater-action a.repeater-action-delete {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ml-bg-surface-2) !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.subform_repeater .repeater-action a.repeater-action-delete:hover {
  background: var(--ml-bg-highlight-dark-alpha-200) !important;
  box-shadow: none !important;
}
body.dark-version .subform_repeater .repeater-action a.repeater-action-delete {
  background: var(--ml-bg-surface-3) !important;
}
body.dark-version .subform_repeater .repeater-action a.repeater-action-delete:hover {
  background: var(--ml-bg-surface-2) !important;
}

.subform_repeater .repeater-action a.repeater-action-delete:hover {
  background: var(--ml-bg-highlight-dark-alpha-200) !important;
}

.subform_repeater .repeater-action a.repeater-action-delete span {
  font-size: var(--ml-font-size-n1) !important;
}

.subform_repeater .repeater-action a.repeater-action-delete span:before {
  content: "\f2ed" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: var(--ml-font-weight-regular) !important;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  color: red;
}

.subform_repeater > label > .form-cell-validator {
  display: none;
}

.subform_repeater .form-cell, .subform_repeater .subform-cell {
  margin-bottom: 0 !important;
}

.bg-gradient-dark.navbar-vertical .navbar-nav > .nav-item .nav-link.active {
  --nav-link-active-bg: var(--ml-bg-highlight-dark-alpha-100);
}

.navbar-vertical {
  z-index: 105 !important;
  /* Hide scrollbar for Chrome, Safari and Opera */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.navbar-vertical::-webkit-scrollbar {
  display: none;
}
.navbar-vertical .navbar-nav .nav-link {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.navbar-vertical .navbar-nav .nav-link > i[class*=material-icons] {
  font-size: var(--ml-font-size-3) !important;
}
.navbar-vertical .collapse .nav .menu-link > .nav-link-text {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}
.navbar-vertical .collapse .nav .menu-link > .nav-link-text > i, .navbar-vertical .collapse .nav .menu-link > .nav-link-text > span {
  font-size: var(--ml-font-size-0);
}

.navbar-vertical.bg-transparent {
  box-shadow: none !important;
}

.sidenav-brand-name {
  color: var(--bs-dark);
}

.bg-gradient-dark .sidenav-brand-name,
.dark-version .bg-transparent .sidenav-brand-name {
  color: var(--ml-color-white) !important;
}

.sidebar-nav.sidenav-auto-bg {
  background: var(--ml-sidenav-bg) !important;
}
.sidebar-nav.sidenav-auto-bg .sidenav-brand-name {
  color: var(--ml-text-default) !important;
}
.sidebar-nav.sidenav-auto-bg hr.horizontal {
  background-image: linear-gradient(90deg, transparent, var(--ml-alpha-dark-400), transparent) !important;
}
.sidebar-nav.sidenav-auto-bg .nav-link {
  color: var(--ml-text-default) !important;
}

.dark-version .sidebar-nav.sidenav-auto-bg {
  background-image: linear-gradient(195deg, var(--ml-color-neutral-700), var(--ml-color-neutral-900)) !important;
}
.dark-version .sidebar-nav.sidenav-auto-bg .nav-link {
  color: var(--ml-color-white) !important;
}
.dark-version .sidebar-nav.sidenav-auto-bg hr.horizontal {
  background-image: linear-gradient(90deg, var(--ml-alpha-light-0), var(--ml-color-white), var(--ml-alpha-light-0)) !important;
}

.sidenav-backdrop {
  display: none;
}

@media (min-width: 1200px) {
  .g-sidenav-hidden .navbar-vertical {
    max-width: 4.7rem !important;
  }
}
@media (max-width: 1199.98px) {
  .g-sidenav-pinned .sidenav-backdrop {
    position: fixed;
    z-index: 104;
    display: block;
    inset: 0;
    background-color: var(--ml-modal-backdrop);
  }
  body.g-sidenav-pinned {
    overflow: hidden;
  }
  .g-sidenav-pinned .sidenav {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* The scheme toggle draws a sun and a moon. Those two hexes are illustration
   colours, not palette roles - there is no sun in a design system - so they are
   the one pair the sweep left as literals. They are namespaced and settable
   like any other token. */
:root {
  --ml-scheme-toggle-size: 25px;
  --ml-scheme-toggle-color: #eec413;
}

.dark-version {
  --ml-scheme-toggle-color: #e684af;
}

.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper,
.theme-toggle-wrapper {
  max-width: calc(var(--ml-scheme-toggle-size) + 20px);
  height: calc(var(--ml-scheme-toggle-size) + 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--ml-bg-surface-2);
  border-radius: var(--ml-radius-full);
  margin-inline-start: 20px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(1),
.theme-toggle-wrapper:hover .sun__ray:nth-child(1) {
  transform: rotate(calc(1 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(2),
.theme-toggle-wrapper:hover .sun__ray:nth-child(2) {
  transform: rotate(calc(2 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(3),
.theme-toggle-wrapper:hover .sun__ray:nth-child(3) {
  transform: rotate(calc(3 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(4),
.theme-toggle-wrapper:hover .sun__ray:nth-child(4) {
  transform: rotate(calc(4 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(5),
.theme-toggle-wrapper:hover .sun__ray:nth-child(5) {
  transform: rotate(calc(5 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(6),
.theme-toggle-wrapper:hover .sun__ray:nth-child(6) {
  transform: rotate(calc(6 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(7),
.theme-toggle-wrapper:hover .sun__ray:nth-child(7) {
  transform: rotate(calc(7 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(8),
.theme-toggle-wrapper:hover .sun__ray:nth-child(8) {
  transform: rotate(calc(8 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(9),
.theme-toggle-wrapper:hover .sun__ray:nth-child(9) {
  transform: rotate(calc(9 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(10),
.theme-toggle-wrapper:hover .sun__ray:nth-child(10) {
  transform: rotate(calc(10 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(11),
.theme-toggle-wrapper:hover .sun__ray:nth-child(11) {
  transform: rotate(calc(11 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper:hover .sun__ray:nth-child(12),
.theme-toggle-wrapper:hover .sun__ray:nth-child(12) {
  transform: rotate(calc(12 * 360deg / 12 - 20deg));
}
.g-sidenav-show:not(.g-sidenav-hidden, .g-sidenav-pinned) .theme-toggle-wrapper::after,
.theme-toggle-wrapper::after {
  content: attr(text-dark);
  font-size: var(--ml-font-size-label);
  white-space: nowrap;
  display: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(0, 0);
}
.theme-toggle .sun {
  background: var(--ml-scheme-toggle-color);
  width: var(--ml-scheme-toggle-size);
  height: var(--ml-scheme-toggle-size);
  border-radius: 50%;
  border: 4px solid var(--ml-bg-surface-2);
}
.theme-toggle .sun__ray {
  width: 2px;
  background: var(--ml-scheme-toggle-color);
  display: block;
  height: 121%;
  position: absolute;
  z-index: -1;
  transition: 0.4s all, height 0.3s ease-in-out;
}
.theme-toggle .sun__ray:nth-child(1) {
  transform: rotate(calc(1 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(2) {
  transform: rotate(calc(2 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(3) {
  transform: rotate(calc(3 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(4) {
  transform: rotate(calc(4 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(5) {
  transform: rotate(calc(5 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(6) {
  transform: rotate(calc(6 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(7) {
  transform: rotate(calc(7 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(8) {
  transform: rotate(calc(8 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(9) {
  transform: rotate(calc(9 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(10) {
  transform: rotate(calc(10 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(11) {
  transform: rotate(calc(11 * 360deg / 12));
}
.theme-toggle .sun__ray:nth-child(12) {
  transform: rotate(calc(12 * 360deg / 12));
}

.moon {
  height: calc(var(--ml-scheme-toggle-size) - 7px);
  width: calc(var(--ml-scheme-toggle-size) - 7px);
  position: absolute;
  background: var(--ml-bg-surface-2);
  border-radius: 50%;
  top: 0;
  right: 0;
  transform: scale(0) translate(25%, -25%);
  z-index: 9;
  transition: 0.4s transform;
  transform-origin: right;
}

.dark-version .theme-toggle {
  background-color: var(--ml-bg-surface-2);
}
.dark-version .theme-toggle-wrapper::after {
  content: attr(text-light);
}
.dark-version .theme-toggle-wrapper:hover .moon {
  transform: scale(1) translate(-3%, -18%);
}
.dark-version .moon {
  transform: scale(1) translate(11%, -11%);
}
.dark-version .theme-toggle .sun__ray {
  height: 0;
  transition: 0.4s, transform 0.4s, height 0.2s 0.1s;
}
.dark-version .theme-toggle .sun__ray:nth-child(1) {
  transform: rotate(calc(1 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(2) {
  transform: rotate(calc(2 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(3) {
  transform: rotate(calc(3 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(4) {
  transform: rotate(calc(4 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(5) {
  transform: rotate(calc(5 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(6) {
  transform: rotate(calc(6 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(7) {
  transform: rotate(calc(7 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(8) {
  transform: rotate(calc(8 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(9) {
  transform: rotate(calc(9 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(10) {
  transform: rotate(calc(10 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(11) {
  transform: rotate(calc(11 * 360deg / 12 - 45deg));
}
.dark-version .theme-toggle .sun__ray:nth-child(12) {
  transform: rotate(calc(12 * 360deg / 12 - 45deg));
}

/** @format */
:root {
  --page-loading-loader-size: 310px;
}

.page-loading-container {
  position: fixed;
  z-index: 9999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Composed here rather than in the token block: `--ml-loader-bg` and
     `--ml-loader-bg-opacity` are both overridable from the settings screen,
     and a var() is substituted on the element that declares it - so a token
     that mixed the two would have mixed the defaults. */
  background: color-mix(in srgb, var(--ml-loader-bg) var(--ml-loader-bg-opacity), transparent) !important;
  /* Only ever visible through a translucent overlay; at full opacity there is
     nothing of the page left to see through it. */
  -webkit-backdrop-filter: blur(var(--ml-loader-backdrop-blur));
  backdrop-filter: blur(var(--ml-loader-backdrop-blur));
  transition: all 0.3s ease-out, background 0.15s;
}
.page-loading-container .page-loading-wrapper {
  width: var(--page-loading-loader-size);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.page-loading-container .page-loading-image {
  width: 250px;
  animation: pulse 2.5s ease-in-out infinite;
}
.page-loading-container .page-loading-text {
  text-transform: uppercase;
  letter-spacing: var(--ml-loader-text-tracking);
  font-family: var(--ml-font-headers);
  color: var(--ml-text-default);
  font-weight: var(--ml-font-weight-bold);
  position: absolute;
  font-size: 138%;
  text-align: center;
}
.page-loading-container .page-loading-content {
  display: block;
  position: absolute;
  width: var(--page-loading-loader-size);
  height: var(--page-loading-loader-size);
  border: 3px solid transparent;
  border-top-color: var(--ml-loader-ring-1);
  border-bottom-color: var(--ml-loader-ring-1);
  border-radius: 50%;
  -webkit-animation: loader 2s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 2s linear infinite;
}
.page-loading-container .page-loading-content:after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 15px;
  bottom: 15px;
  border: 3px solid transparent;
  border-top-color: var(--ml-loader-ring-2);
  border-bottom-color: var(--ml-loader-ring-2);
  border-radius: 50%;
  -webkit-animation: loader 1.5s linear infinite;
  animation: loader 1.5s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
}
.page-loading-container .page-loading-content:before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 3px solid transparent;
  border-top-color: var(--ml-loader-ring-3);
  border-bottom-color: var(--ml-loader-ring-3);
  border-radius: 50%;
  -webkit-animation: loader 3s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 3s linear infinite;
}

/* ── Particle loader ──
   The markup is `templates/userview/particleLoader.ftl`, which used to carry
   these rules in a <style> of its own - at the end of the template, behind the
   blocking <script src> that fetches lottie. The browser painted what it had
   parsed while that script downloaded, so the logo showed at its intrinsic size
   for as long as the fetch took and then snapped to width. Here it is in the
   render-blocking stylesheet, so the size is known before the <img> is laid
   out; the template only marks whether the spinner is on. */
.particle-loader-container,
.particle-loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* With the spinner on, the pair is the square canvas the animation fills and
   the logo sits inside a share of; with it off, the wrapper is the whole
   overlay and the size lands on the logo instead. */
.particle-loader-container[data-ml-particles=true],
.particle-loader-container[data-ml-particles=true] .particle-loader-wrapper {
  width: var(--ml-loader-image-size);
  height: var(--ml-loader-image-size);
}

.particle-loader-container .page-loading-text {
  position: absolute;
  z-index: 10;
  text-align: center;
}

.loader-logo {
  position: absolute;
  width: var(--ml-loader-image-size);
  animation: loader-logo-pulse 2.5s ease-in-out infinite;
}

.particle-loader-container[data-ml-particles=true] .loader-logo {
  width: 35%;
}

.ml-custom-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.hide-page-loader .page-loading-container {
  transform: scale(1.5);
  opacity: 0;
}

.ml-page-loaded .page-loading-container {
  display: none;
}

@keyframes loader {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}
@keyframes loader-logo-pulse {
  0%, 30% {
    transform: scale(1);
  }
  30%, 80% {
    transform: scale(1.2);
  }
  90%, 100% {
    transform: scale(1);
  }
}
.swal2-actions {
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-font-size: var(--ml-type-button-s-size);
  --bs-btn-font-weight: var(--ml-type-button-weight);
  --bs-btn-line-height: 1.667;
  --bs-btn-border-radius: var(--ml-btn-radius-sm);
  --cancel-btn-bg: var(--ml-color-neutral-500-rgb);
}
.swal2-actions button {
  outline: none !important;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x) !important;
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  line-height: var(--bs-btn-line-height);
  text-align: center !important;
  vertical-align: middle !important;
  cursor: pointer;
  user-select: none;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius) !important;
  transition: all 0.15s ease-in;
  text-transform: none;
  background-color: var(--ml-bg-brand-default) !important;
  box-shadow: 0 3px 3px 0 rgba(var(--ml-color-brand-500-rgb), 0.15), 0 3px 1px -2px rgba(var(--ml-color-brand-500-rgb), 0.2), 0 1px 5px 0 rgba(var(--ml-color-brand-500-rgb), 0.15) !important;
  transition: all 0.15s ease-in !important;
}
.swal2-actions button:hover, .swal2-actions button:focus {
  background-color: var(--ml-bg-brand-default) !important;
  border-color: var(--ml-border-brand-default) !important;
  box-shadow: 0 14px 26px -12px rgba(var(--ml-color-brand-500-rgb), 0.4), 0 4px 23px 0 rgba(var(--ml-color-brand-500-rgb), 0.15), 0 8px 10px -5px rgba(var(--ml-color-brand-500-rgb), 0.2) !important;
}
.swal2-actions button.swal2-cancel {
  background-color: rgb(var(--cancel-btn-bg)) !important;
  box-shadow: 0 3px 3px 0 rgba(var(--cancel-btn-bg), 0.15), 0 3px 1px -2px rgba(var(--cancel-btn-bg), 0.2), 0 1px 5px 0 rgba(var(--cancel-btn-bg), 0.15) !important;
}
.swal2-actions button.swal2-cancel:hover, .swal2-actions button.swal2-cancel:focus {
  background-color: rgb(var(--cancel-btn-bg)) !important;
  box-shadow: 0 14px 26px -12px rgba(var(--cancel-btn-bg), 0.4), 0 4px 23px 0 rgba(var(--cancel-btn-bg), 0.15), 0 8px 10px -5px rgba(var(--cancel-btn-bg), 0.2) !important;
}

.colored-toast.swal2-icon-success {
  background-color: var(--ml-bg-success-weak) !important;
  --ml-toast-fg: var(--ml-text-on-success-weak);
}

.colored-toast.swal2-icon-error {
  background-color: var(--ml-bg-danger-weak) !important;
  --ml-toast-fg: var(--ml-text-on-danger-weak);
}

.colored-toast.swal2-icon-warning {
  background-color: var(--ml-bg-warning-weak) !important;
  --ml-toast-fg: var(--ml-text-on-warning-weak);
}

.colored-toast.swal2-icon-info {
  background-color: var(--ml-bg-info-weak) !important;
  --ml-toast-fg: var(--ml-text-on-info-weak);
}

.colored-toast.swal2-icon-question {
  background-color: var(--ml-bg-strong) !important;
  --ml-toast-fg: var(--ml-text-default);
}

.colored-toast .swal2-title {
  color: var(--ml-toast-fg) !important;
}

.swal2-title {
  line-height: 1.4 !important;
}

.colored-toast .swal2-close {
  color: var(--ml-toast-fg) !important;
}

.colored-toast .swal2-html-container {
  color: var(--ml-text-on-brand) !important;
}

.ui-widget-overlay {
  z-index: 105 !important;
  position: fixed !important;
}

.ui-dialog {
  background: var(--ml-page-bg);
  border-radius: var(--ml-modal-radius) !important;
  z-index: 106 !important;
  border: none;
  padding: 0 !important;
  box-shadow: var(--ml-shadow-2);
  animation: ui-dialog-animation 0.3s ease-in-out;
}
.ui-dialog .ui-dialog-content {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: var(--ml-modal-radius);
}
.ui-dialog .ui-dialog-titlebar {
  position: absolute !important;
  top: 0;
  right: 0;
  height: 0px !important;
  width: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  border: 0;
  z-index: 10001;
}
.ui-dialog .ui-dialog-titlebar-close {
  top: 18px !important;
  right: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
}
.ui-dialog .ui-dialog-titlebar-close::before {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-weight: var(--ml-font-weight-bold);
  opacity: 1;
  color: var(--ml-text-default);
  transition: opacity 0.2s ease-in-out;
}
.ui-dialog .ui-dialog-titlebar-close:hover {
  opacity: 0.7;
}

@keyframes ui-dialog-animation {
  0% {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
/* ── Narrow screens: the dialog becomes a sheet ──
 *
 * Every "add", "edit" and "view" in a Joget app is this dialog with a form in
 * an iframe, so it is the single most-used surface in the product after the
 * list - and it was the most broken one on a phone.
 *
 * jQuery UI measures a dialog when it opens and writes the result inline:
 * `width`, `height`, `top` and `left`, in pixels, from a size the app author
 * chose looking at a desktop. It never re-measures against the viewport. On a
 * 375px screen an 800px dialog is twice the width of the screen, placed at a
 * left offset computed for a window that is not there, so it opens half off the
 * edge with its form running past both sides.
 *
 * Nothing in a stylesheet can talk an inline style down except `!important`,
 * which is why every declaration here carries one. `position: fixed` with all
 * four insets replaces the inline placement outright, and `width`/`height:
 * auto` hand sizing back to those insets - so the dialog stops being a floating
 * box at coordinates and becomes a sheet inset from the edges of the screen,
 * which is what a modal is on a phone anyway.
 */
@media (max-width: 767.98px) {
  .ui-dialog {
    position: fixed !important;
    inset: var(--ml-gutter) !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
  }
  .ui-dialog .ui-dialog-content {
    width: auto !important;
    height: 100% !important;
    max-height: none !important;
  }
  /* the form inside is an iframe carrying its own inline pixel size */
  .ui-dialog .ui-dialog-content > iframe {
    width: 100% !important;
    height: 100% !important;
  }
  /* The one control on the sheet that is not part of the form, sitting over
     the form's own first field. It was a bare glyph with no box to hit.
     `right` rather than `inset-inline-end`, against the convention, because
     the titlebar it is placed inside is itself a zero-width box pinned with
     `right: 0` above - converting one half of that pair and not the other is
     what would break RTL, not keeping both physical. */
  .ui-dialog .ui-dialog-titlebar-close {
    top: var(--ml-space-2) !important;
    right: var(--ml-space-2) !important;
    width: var(--ml-touch-target) !important;
    height: var(--ml-touch-target) !important;
    border-radius: var(--ml-modal-radius) !important;
    background: var(--ml-bg-surface-1) !important;
  }
}
#login.login-type-illustration {
  background: var(--ml-bg-surface-1) !important;
}
#login.dark-version {
  background: var(--ml-page-bg) !important;
}
#login .main-content {
  background: transparent !important;
}
#login .alert.form-errors {
  padding: 10px !important;
}
#login .login-page-logo-container {
  padding: 20px;
  text-align: center;
  width: 100%;
}
#login .login-page-logo-container .login-page-logo {
  width: 100%;
  max-width: 250px;
}
#login input {
  background: none !important;
}
#login .login-password-input {
  position: relative;
}
#login #toggle-login-password {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 10px;
  display: none;
  transform: translateY(-50%);
  font-size: var(--ml-font-size-1);
  color: var(--ml-text-brand-default);
  cursor: pointer;
  opacity: 1;
  transition: all 0.25s ease-in-out;
}
#login #toggle-login-password:hover {
  opacity: 0.7;
}

body.userview-print .navbar, body.userview-print .sidebar-nav, body.userview-print #section-actions {
  display: none !important;
}
body.userview-print .container-fluid, body.userview-print .viewForm-body-content {
  padding: 0 !important;
}
body.userview-print .form-section, body.userview-print .subform-section, body.userview-print .userProfile-body-content .form fieldset {
  box-shadow: none !important;
  margin-bottom: 0 !important;
}
body.userview-print .form-section .form-column, body.userview-print .form-section .subform-column, body.userview-print .subform-section .form-column, body.userview-print .subform-section .subform-column, body.userview-print .userProfile-body-content .form fieldset .form-column, body.userview-print .userProfile-body-content .form fieldset .subform-column {
  padding: 1rem 0 !important;
}
body.userview-print #main, body.userview-print #content, body.userview-print #page {
  border: 0 !important;
}
body.userview-print #header, body.userview-print #navigation, body.userview-print #footer {
  display: none;
}
body.userview-print .print-button {
  display: none;
}
body.userview-print .pg-navigator {
  display: none;
}
body.userview-print tr.pg-tr-hide {
  display: table-row;
}
body.userview-print .grid-action-edit,
body.userview-print .grid-action-delete,
body.userview-print .grid.enableSorting a.grid-action-moveup,
body.userview-print .grid.enableSorting a.grid-action-movedown,
body.userview-print .grid-action-add {
  display: none;
}
body.userview-print #adminBar,
body.userview-print .quickEdit,
body.userview-print #navigation .quickEdit,
body.userview-print #form-canvas div.quickEdit {
  display: none;
  visibility: hidden;
  position: absolute;
}
body.userview-print #page.quickEditModeActive fieldset#form-canvas,
body.userview-print #page.quickEditModeActive fieldset#form-canvas .subform-container,
body.userview-print #page.quickEditModeActive .dataList,
body.userview-print #page.quickEditModeActive #category-container {
  border: none;
  padding: 0px !important;
}

@media print {
  body #main div.span3 {
    width: 0px;
  }
  body #main div.span9 {
    width: 100%;
  }
  a[href]:after {
    content: none !important;
  }
  img[src]:after {
    content: none !important;
  }
  legend, main #form-canvas .form-section-title span, main #form-canvas .subform-section-title span {
    border: var(--ml-border-width) solid var(--ml-color-black);
  }
  #adminControl, footer {
    display: none !important;
  }
}
.blockUI.blockMsg.blockPage {
  background: var(--ml-bg-surface-1) !important;
  opacity: 1 !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}
.blockUI.blockMsg.blockPage h1 {
  font-size: var(--ml-type-heading-m-size) !important;
  margin-bottom: 0 !important;
}

.google-loader {
  position: relative;
  margin: 0 auto;
  width: 100px;
}
.google-loader:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.circular {
  animation: rotate 2s linear infinite;
  height: 100%;
  transform-origin: center center;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
  stroke-linecap: round;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}
@keyframes color {
  100%, 0% {
    stroke: var(--ml-data-6);
  }
  40% {
    stroke: var(--ml-data-5);
  }
  66% {
    stroke: var(--ml-data-1);
  }
  80%, 90% {
    stroke: var(--ml-data-2);
  }
}
/**
 * Melkart theme - entry point.
 *
 * Order is load-bearing twice over. The token tiers come first, in tier order,
 * because each one aliases the tier above it. The component layer comes last,
 * because it restyles the base theme and its rules have to be emitted after the
 * ones they override to win on equal specificity.
 *
 * See docs/melkart-theme-plan.md for the cascade contract these files rely on.
 */
/**
 * Melkart theme — primitives
 *
 * Raw colour ramps from the design system (see docs/melkart-theme-plan.md and
 * access-design-system.md). Component CSS must never reference these directly:
 * the semantic layer in `_semantic.scss` is what carries the light/dark
 * contract. They live here so a whole identity can be reskinned by overriding
 * ten ramps instead of a hundred semantic roles.
 *
 * These are defaults only. A brand colour configured in the theme settings is
 * emitted by `ThemeTokens` as a full ten step ramp on `body`, which overrides
 * the block below without any of it needing to know that happened.
 */
:root {
  /* ── neutral ── */
  --ml-color-neutral-50: #f9fafb;
  --ml-color-neutral-100: #f2f4f7;
  --ml-color-neutral-200: #ebecef;
  --ml-color-neutral-300: #d2d5db;
  --ml-color-neutral-400: #9da3ae;
  --ml-color-neutral-500: #6c727f;
  --ml-color-neutral-600: #4c5562;
  --ml-color-neutral-700: #374151;
  --ml-color-neutral-800: #1a222e;
  --ml-color-neutral-900: #080808;
  /* ── accent ──
     Byte-identical to the brand ramp except at step 400. It exists to carry
     the roles that flip to white in dark mode, not as a second hue. */
  --ml-color-accent-50: #fce8e9;
  --ml-color-accent-100: #f8c9ca;
  --ml-color-accent-200: #f39da1;
  --ml-color-accent-300: #ed7075;
  --ml-color-accent-400: #e8454b;
  --ml-color-accent-500: #e80009;
  --ml-color-accent-600: #c1181f;
  --ml-color-accent-700: #a1141a;
  --ml-color-accent-800: #811015;
  --ml-color-accent-900: #6d0b10;
  /* ── success (mint, not green) ── */
  --ml-color-success-50: #ecfbf9;
  --ml-color-success-100: #d0f6f0;
  --ml-color-success-200: #abf0e4;
  --ml-color-success-300: #84e8d7;
  --ml-color-success-400: #5fe1cb;
  --ml-color-success-500: #3cdbc0;
  --ml-color-success-600: #33baa3;
  --ml-color-success-700: #2b9b88;
  --ml-color-success-800: #227d6d;
  --ml-color-success-900: #1b6356;
  /* ── warning ── */
  --ml-color-warning-50: #fefbe8;
  --ml-color-warning-100: #fef7c3;
  --ml-color-warning-200: #feee95;
  --ml-color-warning-300: #fde272;
  --ml-color-warning-400: #fac515;
  --ml-color-warning-500: #eaaa08;
  --ml-color-warning-600: #ca8504;
  --ml-color-warning-700: #a15c07;
  --ml-color-warning-800: #85470a;
  --ml-color-warning-900: #542c0d;
  /* ── danger ── */
  --ml-color-danger-50: #f9eae8;
  --ml-color-danger-100: #efccc8;
  --ml-color-danger-200: #e3a39d;
  --ml-color-danger-300: #d6796f;
  --ml-color-danger-400: #ca5044;
  --ml-color-danger-500: #be2a1b;
  --ml-color-danger-600: #a22417;
  --ml-color-danger-700: #871e13;
  --ml-color-danger-800: #6c180f;
  --ml-color-danger-900: #55130c;
  /* ── info ── */
  --ml-color-info-50: #eff4ff;
  --ml-color-info-100: #d1e0ff;
  --ml-color-info-200: #b2ccff;
  --ml-color-info-300: #84adff;
  --ml-color-info-400: #528bff;
  --ml-color-info-500: #2970ff;
  --ml-color-info-600: #155eef;
  --ml-color-info-700: #0745bf;
  --ml-color-info-800: #00359e;
  --ml-color-info-900: #002266;
  /* ── base ── */
  --ml-color-white: #ffffff;
  --ml-color-black: #080808;
  --ml-color-neutral-500-rgb: 108, 114, 127;
  --ml-color-white-rgb: 255, 255, 255;
  --ml-color-black-rgb: 8, 8, 8;
  /* Scrims. `alpha-light-020` is 3% against its dark counterpart's 2% — that
     asymmetry is in the design system, not a typo here. */
  --ml-alpha-dark-0: rgba(8, 8, 8, 0);
  --ml-alpha-dark-020: rgba(8, 8, 8, 0.02);
  --ml-alpha-dark-050: rgba(8, 8, 8, 0.05);
  --ml-alpha-dark-100: rgba(8, 8, 8, 0.1);
  --ml-alpha-dark-200: rgba(8, 8, 8, 0.2);
  --ml-alpha-dark-300: rgba(8, 8, 8, 0.3);
  --ml-alpha-dark-400: rgba(8, 8, 8, 0.4);
  --ml-alpha-dark-500: rgba(8, 8, 8, 0.5);
  --ml-alpha-dark-800: rgba(8, 8, 8, 0.8);
  --ml-alpha-light-0: rgba(255, 255, 255, 0);
  --ml-alpha-light-020: rgba(255, 255, 255, 0.03);
  --ml-alpha-light-050: rgba(255, 255, 255, 0.05);
  --ml-alpha-light-100: rgba(255, 255, 255, 0.1);
  --ml-alpha-light-200: rgba(255, 255, 255, 0.2);
  --ml-alpha-light-300: rgba(255, 255, 255, 0.3);
  --ml-alpha-light-400: rgba(255, 255, 255, 0.4);
  --ml-alpha-light-500: rgba(255, 255, 255, 0.5);
  --ml-alpha-light-800: rgba(255, 255, 255, 0.8);
}

/**
 * The brand ramp. Left alone it keeps the design system's published steps; a
 * configured brand colour replaces all ten, derived by mixing toward white and
 * black. It sits on `body` alongside that override rather than on `:root` so
 * the two are always declared on the same element.
 */
body {
  --ml-color-brand-50: #fce8e9;
  --ml-color-brand-100: #f8c9ca;
  --ml-color-brand-200: #f39da1;
  --ml-color-brand-300: #ed7075;
  --ml-color-brand-400: #f24d53;
  --ml-color-brand-500: #e80009;
  --ml-color-brand-500-rgb: 232, 0, 9;
  --ml-color-brand-600: #c1181f;
  --ml-color-brand-700: #a1141a;
  --ml-color-brand-800: #811015;
  --ml-color-brand-900: #6d0b10;
}

/**
 * Melkart theme — scales
 *
 * Radius, spacing, sizing, type, elevation and motion. Numbers only, no colour.
 * Everything here is a foundation value the settings screen will expose; the
 * component layer picks steps out of these scales rather than inventing values.
 *
 * Scale steps that the design system duplicates (`Font Size/-5` = `-4` = 11px,
 * `Line Height/-5` = `-4` = 15px) are declared once.
 */
:root {
  /* ── radius ──
     Two steps of the scale moved in the Access form/list redesign: `sm` 8->10
     and `md` 12->14, which is what the reference screens draw for a control
     and for a panel. `xs` stays at 6 because it is also the checkbox corner,
     and a 16px box with a 10px corner is a radio button.

     The other identities are unaffected: SIAM and Material both declare all
     four steps in their own token blocks. */
  --ml-radius-none: 0px;
  --ml-radius-xs: 6px;
  --ml-radius-sm: 10px;
  --ml-radius-md: 14px;
  --ml-radius-lg: 16px;
  --ml-radius-xl: 20px;
  --ml-radius-2xl: 24px;
  --ml-radius-3xl: 32px;
  --ml-radius-full: 9999px;
  /* ── spacing ── 4px grid with 2px and 6px half steps ── */
  --ml-space-0: 0px;
  --ml-space-0-5: 2px;
  --ml-space-1: 4px;
  --ml-space-1-5: 6px;
  --ml-space-2: 8px;
  --ml-space-2-5: 10px;
  --ml-space-3: 12px;
  --ml-space-4: 16px;
  --ml-space-5: 20px;
  --ml-space-6: 24px;
  --ml-space-7: 28px;
  --ml-space-8: 32px;
  --ml-space-9: 36px;
  --ml-space-10: 40px;
  --ml-space-12: 48px;
  --ml-space-14: 56px;
  --ml-space-16: 64px;
  --ml-space-18: 72px;
  --ml-space-20: 80px;
  --ml-space-24: 96px;
  --ml-space-30: 120px;
  --ml-space-36: 144px;
  --ml-space-48: 192px;
  /* ── component size ── the single source for control heights ── */
  --ml-size-6xs: 12px;
  --ml-size-5xs: 14px;
  --ml-size-4xs: 16px;
  --ml-size-3xs: 18px;
  --ml-size-2xs: 20px;
  --ml-size-xs: 24px;
  --ml-size-sm: 32px;
  --ml-size-base: 40px;
  --ml-size-lg: 48px;
  --ml-size-xl: 56px;
  --ml-size-2xl: 64px;
  /* ── icon size ── aliases into the component-size scale ── */
  --ml-icon-size-4xs: var(--ml-size-6xs);
  --ml-icon-size-3xs: var(--ml-size-5xs);
  --ml-icon-size-2xs: var(--ml-size-4xs);
  --ml-icon-size-xs: var(--ml-size-3xs);
  --ml-icon-size-sm: var(--ml-size-2xs);
  --ml-icon-size-md: var(--ml-size-xs);
  --ml-icon-size-lg: var(--ml-size-sm);
  --ml-icon-size-xl: var(--ml-size-lg);
  /* ── type: families ──
     Headers and body share one family in the design system; they stay separate
     tokens so a preset can split them. RTL swaps them below. */
  --ml-font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ml-font-headers: var(--ml-font-body);
  /* The design system publishes no monospace face. Roboto Mono is the one the
     reference desktop screens pair with Rubik, and it is what the theme now
     requests; the system stack behind it is the fallback, not the default. */
  --ml-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Applied by the RTL block at the bottom of this file. It is a token of its
     own rather than a value written straight into that block so the settings
     screen can reach it: an override lands on `body` at specificity (0,0,1)
     and would lose to `body.rtl` however late it is emitted. */
  --ml-font-rtl: "Noto Kufi Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* ── type: weights ── */
  --ml-font-weight-regular: 400;
  --ml-font-weight-medium: 500;
  --ml-font-weight-semibold: 600;
  --ml-font-weight-bold: 700;
  /* ── type: size scale ── `n` prefixes the negative steps ── */
  --ml-font-size-5: 40px;
  --ml-font-size-4: 32px;
  --ml-font-size-3: 28px;
  --ml-font-size-2: 24px;
  --ml-font-size-1: 20px;
  --ml-font-size-0: 18px;
  --ml-font-size-n1: 16px;
  --ml-font-size-n2: 14px;
  --ml-font-size-n3: 12px;
  --ml-font-size-n4: 11px;
  /* ── type: line height scale ── */
  --ml-line-height-5: 44px;
  --ml-line-height-4: 40px;
  --ml-line-height-3: 36px;
  --ml-line-height-2: 32px;
  --ml-line-height-1: 28px;
  --ml-line-height-0: 26px;
  --ml-line-height-n1: 24px;
  --ml-line-height-n2: 20px;
  --ml-line-height-n2-5: 18px;
  --ml-line-height-n3: 16px;
  --ml-line-height-n4: 15px;
  --ml-line-height-n6: 14px;
  /* ── type: letter spacing ── */
  --ml-tracking-2xs: -2px;
  --ml-tracking-xs: -1px;
  --ml-tracking-sm: -0.2px;
  --ml-tracking-md: 0px;
  --ml-tracking-lg: 0.2px;
  --ml-tracking-xl: 0.4px;
  /* ── borders ── */
  --ml-border-width: 1px;
  --ml-border-width-strong: 2px;
  --ml-focus-ring-width: 2px;
  --ml-focus-ring-offset: 2px;
  /* ── elevation ──
     The design system hardcodes rgba(14, 22, 38, a) in all four styles, so its
     shadows respond to dark mode in neither colour nor strength. Both are
     split out here: the colour goes neutral black, and every alpha is scaled
     by one multiplier so the geometry is still declared once.

     Light is the reference desktop screens' own elevation, which departs from
     the extraction twice: two layers per level instead of one, a tight key
     plus a wider ambient, and a neutral black rather than the published
     blue-tinted 14,22,38. Dark needs far more than a recolour. 8% of anything
     over a #080808 page is not a shadow, it is nothing, and elevation is the
     only thing separating a modal from the page behind it once both are
     near-black. */
  --ml-shadow-color: 8, 8, 8;
  --ml-shadow-alpha-scale: 1;
  --ml-shadow-0: none;
  --ml-shadow-1: 0 1px 2px rgba(var(--ml-shadow-color), calc(0.06 * var(--ml-shadow-alpha-scale))),
      0 1px 3px rgba(var(--ml-shadow-color), calc(0.05 * var(--ml-shadow-alpha-scale)));
  --ml-shadow-2: 0 4px 12px rgba(var(--ml-shadow-color), calc(0.08 * var(--ml-shadow-alpha-scale))),
      0 1px 3px rgba(var(--ml-shadow-color), calc(0.05 * var(--ml-shadow-alpha-scale)));
  --ml-shadow-2-center: 0 0 16px rgba(var(--ml-shadow-color), calc(0.08 * var(--ml-shadow-alpha-scale))),
      0 0 6px -1px rgba(var(--ml-shadow-color), calc(0.04 * var(--ml-shadow-alpha-scale)));
  --ml-shadow-3: 0 16px 40px rgba(var(--ml-shadow-color), calc(0.18 * var(--ml-shadow-alpha-scale))),
      0 4px 12px rgba(var(--ml-shadow-color), calc(0.1 * var(--ml-shadow-alpha-scale)));
  /* ── motion ── */
  --ml-duration-fast: 0.1s;
  --ml-duration-base: 0.15s;
  --ml-duration-slow: 0.3s;
  --ml-ease: ease;
  --ml-transition: var(--ml-duration-base) var(--ml-ease);
  /* ── layout grid ──
     Desktop is undefined in the design system: it has one Mobile mode at 375px
     and a `Dashboard` grid style that is not variable-bound. These are the
     Dashboard numbers, pending design confirmation. */
  --ml-grid-columns: 12;
  --ml-grid-gutter: var(--ml-space-6);
  --ml-grid-margin: var(--ml-space-6);
  --ml-viewport-mobile: 375px;
}

/**
 * The Arabic mode of the design system changes the font families and nothing
 * else — every line height and letter spacing is identical across modes.
 */
[dir=rtl],
body.rtl {
  --ml-font-body: var(--ml-font-rtl);
  --ml-font-headers: var(--ml-font-body);
}

body.dark-version {
  /* Shadows fall on dark surfaces: neutral black reads truer than the
     blue-tinted light-mode shadow, and it has to be laid on far thicker.
     5x puts Level-1's two layers at 30% and 25% - a composite near 48% - and
     Level-3's key layer at 90%, the band the reference screens land in. */
  --ml-shadow-color: 0, 0, 0;
  --ml-shadow-alpha-scale: 5;
}

/**
 * Melkart theme - semantic colours
 *
 * The layer component CSS consumes. Every value is an alias into `_primitives`,
 * and the light/dark contract lives here and nowhere else: dark mode remaps
 * these roles, it never touches primitives or scales. That is what lets a
 * setting injected on `body` (a brand colour, a radius) re-derive correctly in
 * both schemes without the settings screen having to ask twice.
 *
 * State naming is `default -> hover -> down` (`down` = pressed/active). The
 * design system uses `strongest` instead of `down` for warning text and icons;
 * both spellings are declared so callers do not have to special-case one hue.
 *
 * Three deliberate deviations from the extraction, all contrast failures the
 * design system itself flags as unchecked:
 *
 *   - warning and info text/icon roles step one or two rungs darker. As
 *     specified, `Text/Warning/default` (Warning/500) scores 2.05 on white and
 *     1.88 on its own chip background; `Text/Info/default` scores 4.32. A
 *     desktop admin surface is mostly small text, so those cannot ship.
 *   - `--ml-text-*-on-weak` is new: the readable foreground for a status chip,
 *     which is a `*-weak` background, not white. The design system has no token
 *     for that pairing and the obvious candidates fail (warning 1.88,
 *     info 3.26, success 4.29). Every value below clears 4.5:1 on its own chip.
 *   - `--ml-bg-brand-weak`/`weakest` flip in dark mode. Brand is the only hue
 *     the extraction leaves pinned to its light steps: every other family goes
 *     `weak -> 800`, `weakest -> 900` in dark, brand alone stays at 100/50. So
 *     a brand tint - the active sidebar item, a row-action button, a selected
 *     dropdown row - came out near-white under brand/400 text, at 3.0:1. They
 *     now follow the same rule as the rest, which also restores the direction
 *     of the hover: `weakest -> weak` darkens in both schemes instead of
 *     inverting in one of them.
 */
body {
  /* == text == */
  --ml-text-strong: var(--ml-color-neutral-900);
  --ml-text-default: var(--ml-color-neutral-800);
  --ml-text-weak: var(--ml-color-neutral-500);
  --ml-text-disabled: var(--ml-color-neutral-400);
  --ml-text-inverted-default: var(--ml-color-white);
  --ml-text-inverted-weak: var(--ml-color-neutral-300);
  --ml-text-inverted-disabled: var(--ml-color-neutral-600);
  --ml-text-brand-default: var(--ml-color-brand-500);
  --ml-text-brand-hover: var(--ml-color-brand-600);
  --ml-text-brand-down: var(--ml-color-brand-700);
  --ml-text-accent-default: var(--ml-color-accent-500);
  --ml-text-accent-hover: var(--ml-color-accent-700);
  --ml-text-accent-down: var(--ml-color-accent-800);
  --ml-text-success-default: var(--ml-color-success-800);
  --ml-text-success-hover: var(--ml-color-success-800);
  --ml-text-success-down: var(--ml-color-success-900);
  --ml-text-danger-default: var(--ml-color-danger-500);
  --ml-text-danger-hover: var(--ml-color-danger-700);
  --ml-text-danger-down: var(--ml-color-danger-800);
  --ml-text-warning-default: var(--ml-color-warning-700);
  --ml-text-warning-hover: var(--ml-color-warning-800);
  --ml-text-warning-strongest: var(--ml-color-warning-900);
  --ml-text-warning-down: var(--ml-text-warning-strongest);
  --ml-text-info-default: var(--ml-color-info-600);
  --ml-text-info-hover: var(--ml-color-info-700);
  --ml-text-info-down: var(--ml-color-info-800);
  /* Foreground on a `*-weak` chip background. */
  --ml-text-on-brand-weak: var(--ml-color-brand-700);
  --ml-text-on-danger-weak: var(--ml-color-danger-700);
  --ml-text-on-warning-weak: var(--ml-color-warning-800);
  --ml-text-on-success-weak: var(--ml-color-success-900);
  --ml-text-on-info-weak: var(--ml-color-info-700);
  /* Foreground on a brand-filled surface. Not in the design system, but
     needed: `Bg/Brand/default` is red in both schemes, so the inverted text
     role - which flips to near-black in dark mode - is the wrong token for it. */
  --ml-text-on-brand: var(--ml-color-white);
  /* == background == */
  --ml-bg-white: var(--ml-color-white);
  --ml-bg-default: var(--ml-color-neutral-50);
  --ml-bg-strong: var(--ml-color-neutral-100);
  --ml-bg-strongest: var(--ml-color-neutral-200);
  --ml-bg-bold-default: var(--ml-color-neutral-800);
  --ml-bg-bold-strong: var(--ml-color-neutral-900);
  --ml-bg-bold-strongest: var(--ml-color-neutral-900);
  --ml-bg-bold-black: var(--ml-color-black);
  --ml-bg-surface-1: var(--ml-color-white);
  --ml-bg-surface-2: var(--ml-color-neutral-100);
  --ml-bg-surface-3: var(--ml-color-neutral-700);
  --ml-bg-surface-4: var(--ml-color-neutral-800);
  --ml-bg-surface-brand: var(--ml-color-brand-700);
  --ml-bg-brand-default: var(--ml-color-brand-500);
  --ml-bg-brand-hover: var(--ml-color-brand-600);
  --ml-bg-brand-down: var(--ml-color-brand-700);
  --ml-bg-brand-weak: var(--ml-color-brand-100);
  --ml-bg-brand-weakest: var(--ml-color-brand-50);
  --ml-bg-accent-default: var(--ml-color-accent-500);
  --ml-bg-accent-hover: var(--ml-color-accent-600);
  --ml-bg-accent-down: var(--ml-color-accent-800);
  --ml-bg-accent-weak: var(--ml-color-accent-100);
  --ml-bg-accent-weakest: var(--ml-color-accent-50);
  --ml-bg-success-default: var(--ml-color-success-500);
  --ml-bg-success-hover: var(--ml-color-success-600);
  --ml-bg-success-down: var(--ml-color-success-700);
  --ml-bg-success-weak: var(--ml-color-success-100);
  --ml-bg-success-weakest: var(--ml-color-success-50);
  --ml-bg-danger-default: var(--ml-color-danger-500);
  --ml-bg-danger-hover: var(--ml-color-danger-600);
  --ml-bg-danger-down: var(--ml-color-danger-700);
  --ml-bg-danger-weak: var(--ml-color-danger-100);
  --ml-bg-danger-weakest: var(--ml-color-danger-50);
  --ml-bg-warning-default: var(--ml-color-warning-500);
  --ml-bg-warning-hover: var(--ml-color-warning-600);
  --ml-bg-warning-down: var(--ml-color-warning-700);
  --ml-bg-warning-weak: var(--ml-color-warning-100);
  --ml-bg-warning-weakest: var(--ml-color-warning-50);
  --ml-bg-info-default: var(--ml-color-info-500);
  --ml-bg-info-hover: var(--ml-color-info-600);
  --ml-bg-info-down: var(--ml-color-info-700);
  --ml-bg-info-weak: var(--ml-color-info-100);
  --ml-bg-info-weakest: var(--ml-color-info-50);
  /* Highlight scrims. The two families swap direction between modes: a
     `dark/*` overlay stays a darkening scrim in light mode and becomes a
     lightening one in dark mode, so "dark" names the effect, not the colour. */
  --ml-bg-highlight-dark-alpha-0: var(--ml-alpha-dark-0);
  --ml-bg-highlight-dark-alpha-020: var(--ml-alpha-dark-020);
  --ml-bg-highlight-dark-alpha-050: var(--ml-alpha-dark-050);
  --ml-bg-highlight-dark-alpha-100: var(--ml-alpha-dark-100);
  --ml-bg-highlight-dark-alpha-200: var(--ml-alpha-dark-200);
  --ml-bg-highlight-dark-alpha-300: var(--ml-alpha-dark-300);
  --ml-bg-highlight-dark-alpha-400: var(--ml-alpha-dark-400);
  --ml-bg-highlight-dark-alpha-500: var(--ml-alpha-dark-500);
  --ml-bg-highlight-dark-alpha-800: var(--ml-alpha-dark-800);
  --ml-bg-highlight-dark-black: var(--ml-color-black);
  --ml-bg-highlight-light-alpha-0: var(--ml-alpha-light-0);
  --ml-bg-highlight-light-alpha-020: var(--ml-alpha-light-020);
  --ml-bg-highlight-light-alpha-050: var(--ml-alpha-light-050);
  --ml-bg-highlight-light-alpha-100: var(--ml-alpha-light-100);
  --ml-bg-highlight-light-alpha-200: var(--ml-alpha-light-200);
  --ml-bg-highlight-light-alpha-300: var(--ml-alpha-light-300);
  --ml-bg-highlight-light-alpha-400: var(--ml-alpha-light-400);
  --ml-bg-highlight-light-alpha-500: var(--ml-alpha-light-500);
  --ml-bg-highlight-light-alpha-800: var(--ml-alpha-light-800);
  --ml-bg-highlight-light-white: var(--ml-color-white);
  /* == border == */
  --ml-border-default: var(--ml-color-neutral-300);
  --ml-border-weak: var(--ml-color-neutral-200);
  --ml-border-hover: var(--ml-color-neutral-400);
  --ml-border-down: var(--ml-color-neutral-500);
  --ml-border-inverted-default: var(--ml-color-neutral-600);
  --ml-border-inverted-weak: var(--ml-color-neutral-700);
  --ml-border-inverted-hover: var(--ml-color-neutral-500);
  --ml-border-inverted-down: var(--ml-color-neutral-400);
  --ml-border-brand-default: var(--ml-color-brand-500);
  --ml-border-brand-hover: var(--ml-color-brand-600);
  --ml-border-brand-down: var(--ml-color-brand-700);
  --ml-border-brand-weak: var(--ml-color-brand-100);
  --ml-border-accent-default: var(--ml-color-accent-600);
  --ml-border-accent-hover: var(--ml-color-accent-700);
  --ml-border-accent-down: var(--ml-color-accent-800);
  --ml-border-accent-weak: var(--ml-color-accent-100);
  --ml-border-success-default: var(--ml-color-success-600);
  --ml-border-success-hover: var(--ml-color-success-700);
  --ml-border-success-down: var(--ml-color-success-800);
  --ml-border-success-weak: var(--ml-color-success-100);
  --ml-border-danger-default: var(--ml-color-danger-600);
  --ml-border-danger-hover: var(--ml-color-danger-700);
  --ml-border-danger-down: var(--ml-color-danger-800);
  --ml-border-danger-weak: var(--ml-color-danger-100);
  --ml-border-warning-default: var(--ml-color-warning-600);
  --ml-border-warning-hover: var(--ml-color-warning-700);
  --ml-border-warning-down: var(--ml-color-warning-800);
  --ml-border-warning-weak: var(--ml-color-warning-100);
  --ml-border-info-default: var(--ml-color-info-600);
  --ml-border-info-hover: var(--ml-color-info-700);
  --ml-border-info-down: var(--ml-color-info-800);
  --ml-border-info-weak: var(--ml-color-info-100);
  /* == icon == */
  --ml-icon-default: var(--ml-color-neutral-800);
  --ml-icon-strong: var(--ml-color-neutral-900);
  --ml-icon-weak: var(--ml-color-neutral-500);
  --ml-icon-disabled: var(--ml-color-neutral-400);
  --ml-icon-inverted-default: var(--ml-color-white);
  --ml-icon-inverted-strong: var(--ml-color-neutral-50);
  --ml-icon-inverted-weak: var(--ml-color-neutral-300);
  --ml-icon-inverted-disabled: var(--ml-color-neutral-500);
  --ml-icon-brand-default: var(--ml-color-brand-500);
  --ml-icon-brand-hover: var(--ml-color-brand-600);
  --ml-icon-brand-down: var(--ml-color-brand-700);
  --ml-icon-accent-default: var(--ml-color-accent-500);
  --ml-icon-accent-hover: var(--ml-color-accent-600);
  --ml-icon-accent-down: var(--ml-color-accent-700);
  --ml-icon-success-default: var(--ml-color-success-600);
  --ml-icon-success-hover: var(--ml-color-success-700);
  --ml-icon-success-down: var(--ml-color-success-800);
  --ml-icon-danger-default: var(--ml-color-danger-500);
  --ml-icon-danger-hover: var(--ml-color-danger-600);
  --ml-icon-danger-down: var(--ml-color-danger-700);
  --ml-icon-warning-default: var(--ml-color-warning-600);
  --ml-icon-warning-hover: var(--ml-color-warning-700);
  --ml-icon-warning-strongest: var(--ml-color-warning-800);
  --ml-icon-warning-down: var(--ml-icon-warning-strongest);
  --ml-icon-info-default: var(--ml-color-info-500);
  --ml-icon-info-hover: var(--ml-color-info-600);
  --ml-icon-info-down: var(--ml-color-info-700);
  /* == data visualisation ==
     The only semantic colours the design system defines as raw hex rather
     than as aliases into a ramp. */
  --ml-data-1: #13c886;
  --ml-data-2: #f5b100;
  --ml-data-3: #b821ea;
  --ml-data-4: #f18100;
  --ml-data-5: #3756ee;
  --ml-data-6: #e32727;
  /* == avatars == light backgrounds with dark text in both schemes == */
  --ml-avatar-text-1: #1700a4;
  --ml-avatar-text-2: #804d00;
  --ml-avatar-text-3: #086f36;
  --ml-avatar-bg-1: #e7e8ff;
  --ml-avatar-bg-2: #ffe7c7;
  --ml-avatar-bg-3: #d2f4e4;
}

body.dark-version {
  /* == text == */
  --ml-text-strong: var(--ml-color-neutral-50);
  --ml-text-default: var(--ml-color-neutral-100);
  --ml-text-weak: var(--ml-color-neutral-300);
  --ml-text-disabled: var(--ml-color-neutral-500);
  --ml-text-inverted-default: var(--ml-color-neutral-900);
  --ml-text-inverted-weak: var(--ml-color-neutral-500);
  --ml-text-inverted-disabled: var(--ml-color-neutral-400);
  --ml-text-brand-default: var(--ml-color-brand-400);
  --ml-text-brand-hover: var(--ml-color-brand-500);
  --ml-text-brand-down: var(--ml-color-brand-500);
  --ml-text-accent-default: var(--ml-color-white);
  --ml-text-accent-hover: var(--ml-color-neutral-50);
  --ml-text-accent-down: var(--ml-color-neutral-100);
  --ml-text-success-default: var(--ml-color-success-400);
  --ml-text-success-hover: var(--ml-color-success-300);
  --ml-text-success-down: var(--ml-color-success-200);
  --ml-text-danger-default: var(--ml-color-danger-400);
  --ml-text-danger-hover: var(--ml-color-danger-300);
  --ml-text-danger-down: var(--ml-color-danger-200);
  --ml-text-warning-default: var(--ml-color-warning-400);
  --ml-text-warning-hover: var(--ml-color-warning-300);
  --ml-text-warning-strongest: var(--ml-color-warning-200);
  --ml-text-info-default: var(--ml-color-info-400);
  --ml-text-info-hover: var(--ml-color-info-300);
  --ml-text-info-down: var(--ml-color-info-200);
  --ml-text-on-brand-weak: var(--ml-color-brand-100);
  --ml-text-on-danger-weak: var(--ml-color-danger-200);
  --ml-text-on-warning-weak: var(--ml-color-warning-200);
  --ml-text-on-success-weak: var(--ml-color-success-200);
  --ml-text-on-info-weak: var(--ml-color-info-200);
  /* == background == */
  --ml-bg-white: var(--ml-color-neutral-800);
  --ml-bg-default: var(--ml-color-neutral-900);
  --ml-bg-strong: var(--ml-color-neutral-700);
  --ml-bg-strongest: var(--ml-color-neutral-700);
  --ml-bg-bold-default: var(--ml-color-neutral-50);
  --ml-bg-bold-strong: var(--ml-color-neutral-100);
  --ml-bg-bold-strongest: var(--ml-color-neutral-100);
  --ml-bg-bold-black: var(--ml-color-white);
  --ml-bg-surface-1: var(--ml-color-neutral-800);
  --ml-bg-surface-2: var(--ml-color-neutral-800);
  --ml-bg-surface-3: var(--ml-color-neutral-700);
  --ml-bg-surface-4: var(--ml-color-neutral-50);
  --ml-bg-surface-brand: var(--ml-color-brand-700);
  --ml-bg-brand-default: var(--ml-color-accent-500);
  --ml-bg-brand-hover: var(--ml-color-brand-600);
  --ml-bg-brand-down: var(--ml-color-accent-700);
  /* Flipped, against the extraction — see the note at the top of this file. */
  --ml-bg-brand-weak: var(--ml-color-brand-800);
  --ml-bg-brand-weakest: var(--ml-color-brand-900);
  --ml-bg-accent-default: var(--ml-color-white);
  --ml-bg-accent-hover: var(--ml-color-neutral-50);
  --ml-bg-accent-down: var(--ml-color-neutral-100);
  --ml-bg-accent-weak: var(--ml-color-accent-800);
  --ml-bg-accent-weakest: var(--ml-color-accent-900);
  --ml-bg-success-default: var(--ml-color-success-400);
  --ml-bg-success-hover: var(--ml-color-success-300);
  --ml-bg-success-down: var(--ml-color-success-200);
  --ml-bg-success-weak: var(--ml-color-success-800);
  --ml-bg-success-weakest: var(--ml-color-success-900);
  --ml-bg-danger-default: var(--ml-color-danger-400);
  --ml-bg-danger-hover: var(--ml-color-danger-300);
  --ml-bg-danger-down: var(--ml-color-danger-200);
  --ml-bg-danger-weak: var(--ml-color-danger-800);
  --ml-bg-danger-weakest: var(--ml-color-danger-900);
  --ml-bg-warning-default: var(--ml-color-warning-400);
  --ml-bg-warning-hover: var(--ml-color-warning-300);
  --ml-bg-warning-down: var(--ml-color-warning-200);
  --ml-bg-warning-weak: var(--ml-color-warning-800);
  --ml-bg-warning-weakest: var(--ml-color-warning-900);
  --ml-bg-info-default: var(--ml-color-info-400);
  --ml-bg-info-hover: var(--ml-color-info-300);
  --ml-bg-info-down: var(--ml-color-info-200);
  --ml-bg-info-weak: var(--ml-color-info-800);
  --ml-bg-info-weakest: var(--ml-color-info-900);
  --ml-bg-highlight-dark-alpha-0: var(--ml-alpha-light-0);
  --ml-bg-highlight-dark-alpha-020: var(--ml-alpha-light-020);
  --ml-bg-highlight-dark-alpha-050: var(--ml-alpha-light-050);
  --ml-bg-highlight-dark-alpha-100: var(--ml-alpha-light-100);
  --ml-bg-highlight-dark-alpha-200: var(--ml-alpha-light-200);
  --ml-bg-highlight-dark-alpha-300: var(--ml-alpha-light-300);
  --ml-bg-highlight-dark-alpha-400: var(--ml-alpha-light-400);
  --ml-bg-highlight-dark-alpha-500: var(--ml-alpha-light-500);
  --ml-bg-highlight-dark-alpha-800: var(--ml-alpha-light-800);
  --ml-bg-highlight-dark-black: var(--ml-color-white);
  --ml-bg-highlight-light-alpha-0: var(--ml-alpha-dark-0);
  --ml-bg-highlight-light-alpha-020: var(--ml-alpha-dark-020);
  --ml-bg-highlight-light-alpha-050: var(--ml-alpha-dark-050);
  --ml-bg-highlight-light-alpha-100: var(--ml-alpha-dark-100);
  --ml-bg-highlight-light-alpha-200: var(--ml-alpha-dark-200);
  --ml-bg-highlight-light-alpha-300: var(--ml-alpha-dark-300);
  --ml-bg-highlight-light-alpha-400: var(--ml-alpha-dark-400);
  --ml-bg-highlight-light-alpha-500: var(--ml-alpha-dark-500);
  --ml-bg-highlight-light-alpha-800: var(--ml-alpha-dark-800);
  --ml-bg-highlight-light-white: var(--ml-color-black);
  /* == border == */
  --ml-border-default: var(--ml-color-neutral-600);
  --ml-border-weak: var(--ml-color-neutral-700);
  --ml-border-hover: var(--ml-color-neutral-500);
  --ml-border-down: var(--ml-color-neutral-400);
  --ml-border-inverted-default: var(--ml-color-neutral-300);
  --ml-border-inverted-weak: var(--ml-color-neutral-100);
  --ml-border-inverted-hover: var(--ml-color-neutral-400);
  --ml-border-inverted-down: var(--ml-color-neutral-500);
  --ml-border-brand-weak: var(--ml-color-brand-700);
  --ml-border-accent-default: var(--ml-color-white);
  --ml-border-accent-hover: var(--ml-color-neutral-50);
  --ml-border-accent-down: var(--ml-color-accent-100);
  --ml-border-accent-weak: var(--ml-alpha-light-100);
  --ml-border-success-default: var(--ml-color-success-400);
  --ml-border-success-hover: var(--ml-color-success-300);
  --ml-border-success-down: var(--ml-color-success-200);
  --ml-border-success-weak: var(--ml-color-success-800);
  --ml-border-danger-default: var(--ml-color-danger-400);
  --ml-border-danger-hover: var(--ml-color-danger-300);
  --ml-border-danger-down: var(--ml-color-danger-200);
  --ml-border-danger-weak: var(--ml-color-danger-800);
  --ml-border-warning-default: var(--ml-color-warning-400);
  --ml-border-warning-hover: var(--ml-color-warning-300);
  --ml-border-warning-down: var(--ml-color-warning-200);
  --ml-border-warning-weak: var(--ml-color-warning-800);
  --ml-border-info-default: var(--ml-color-info-400);
  --ml-border-info-hover: var(--ml-color-info-300);
  --ml-border-info-down: var(--ml-color-info-200);
  --ml-border-info-weak: var(--ml-color-info-800);
  /* == icon == */
  --ml-icon-default: var(--ml-color-neutral-100);
  --ml-icon-strong: var(--ml-color-neutral-50);
  --ml-icon-weak: var(--ml-color-neutral-300);
  --ml-icon-disabled: var(--ml-color-neutral-500);
  --ml-icon-inverted-default: var(--ml-color-neutral-800);
  --ml-icon-inverted-strong: var(--ml-color-neutral-900);
  --ml-icon-inverted-weak: var(--ml-color-neutral-500);
  --ml-icon-inverted-disabled: var(--ml-color-neutral-400);
  --ml-icon-brand-default: var(--ml-color-brand-400);
  --ml-icon-brand-hover: var(--ml-color-brand-500);
  --ml-icon-brand-down: var(--ml-color-brand-600);
  --ml-icon-accent-default: var(--ml-color-white);
  --ml-icon-accent-hover: var(--ml-color-neutral-50);
  --ml-icon-accent-down: var(--ml-color-neutral-100);
  --ml-icon-success-default: var(--ml-color-success-400);
  --ml-icon-success-hover: var(--ml-color-success-300);
  --ml-icon-success-down: var(--ml-color-success-200);
  --ml-icon-danger-default: var(--ml-color-danger-400);
  --ml-icon-danger-hover: var(--ml-color-danger-300);
  --ml-icon-danger-down: var(--ml-color-danger-200);
  --ml-icon-warning-default: var(--ml-color-warning-400);
  --ml-icon-warning-hover: var(--ml-color-warning-300);
  --ml-icon-warning-strongest: var(--ml-color-warning-200);
  --ml-icon-info-default: var(--ml-color-info-400);
  --ml-icon-info-hover: var(--ml-color-info-300);
  --ml-icon-info-down: var(--ml-color-info-200);
  /* == data visualisation == */
  --ml-data-1: #64eebc;
  --ml-data-2: #f7ca59;
  --ml-data-3: #e083ff;
  --ml-data-4: #fba440;
  --ml-data-5: #7a92fb;
  --ml-data-6: #ff7b7b;
}

/**
 * Melkart theme — typography roles
 *
 * The design system publishes 54 text styles. This file is the subset an admin
 * UI actually uses, transcribed as roles rather than styles: every role names a
 * size, a line height, a weight and a letter spacing, so a rule sets four
 * properties from one decision and a preset can move the whole family.
 *
 * Naming is `--ml-type-<role>-{size,line,weight,tracking,transform}`. It is not
 * `--ml-text-*`: that namespace belongs to the semantic text *colours* in
 * `_semantic.scss`, and a rule reading `--ml-text-heading` should not have to
 * guess whether it is getting a colour or a size.
 *
 * Declared on `body`, like the semantic and component tiers, because the roles
 * alias the shell sizes below and those are what the settings screen overrides.
 * Custom properties resolve against the computed value on the element carrying
 * the declaration, so the alias has to sit on the same element as the override.
 *
 * Two families are deliberately absent. **Link** is Body/Medium at the same
 * three sizes plus an underline, so it is a component decision, not a type
 * role. **E-commerce** introduces 9px and 10px sizes that exist nowhere else in
 * the system and has no counterpart in a process app.
 */
body {
  /* ============================================================
     Shell sizes
     ============================================================
     What the component layer reads for ordinary text, and the four values the
     settings screen exposes. The roles below alias these wherever the design
     system's metrics agree with them, so raising the base size moves table
     cells and inputs with it rather than leaving them behind.

     The design system has one 375px Mobile mode, so picking which step is
     "base" on a desktop admin screen is a derivation. Body/L at 14/20 is the
     step the system already uses for dense mobile lists; it is the right
     density for a data table on a large screen. Headings are taken as
     published — 40 to 18 reads the same at both widths. */
  --ml-font-size-base: var(--ml-font-size-n2); /* 14 */
  --ml-line-height-base: var(--ml-line-height-n2); /* 20 */
  --ml-font-size-label: var(--ml-font-size-n3); /* 12 */
  --ml-font-size-heading: var(--ml-font-size-1); /* 20 */
  --ml-line-height-heading: var(--ml-line-height-0); /* 26 */
  /* ============================================================
     Heading — SemiBold throughout
     ============================================================ */
  --ml-type-heading-weight: var(--ml-font-weight-semibold);
  --ml-type-heading-2xl-size: var(--ml-font-size-5); /* 40 */
  --ml-type-heading-2xl-line: var(--ml-line-height-5); /* 44 */
  --ml-type-heading-2xl-tracking: var(--ml-tracking-xs); /* -1 */
  --ml-type-heading-xl-size: var(--ml-font-size-4); /* 32 */
  --ml-type-heading-xl-line: var(--ml-line-height-4); /* 40 */
  --ml-type-heading-xl-tracking: var(--ml-tracking-xs);
  --ml-type-heading-l-size: var(--ml-font-size-3); /* 28 */
  --ml-type-heading-l-line: var(--ml-line-height-3); /* 36 */
  --ml-type-heading-l-tracking: var(--ml-tracking-xs);
  --ml-type-heading-m-size: var(--ml-font-size-2); /* 24 */
  --ml-type-heading-m-line: var(--ml-line-height-1); /* 28 */
  --ml-type-heading-m-tracking: var(--ml-tracking-xs);
  /* Heading/S is the page and section title of this theme, so it reads the
     shell pair rather than the scale directly. */
  --ml-type-heading-s-size: var(--ml-font-size-heading); /* 20 */
  --ml-type-heading-s-line: var(--ml-line-height-heading); /* 26 */
  --ml-type-heading-s-tracking: var(--ml-tracking-sm); /* -0.2 */
  --ml-type-heading-xs-size: var(--ml-font-size-0); /* 18 */
  --ml-type-heading-xs-line: var(--ml-line-height-n1); /* 24 */
  --ml-type-heading-xs-tracking: var(--ml-tracking-md); /* 0 */
  /* ============================================================
     Body — each size ships Regular / Medium / SemiBold
     ============================================================
     Only the Regular weight is a token: the other two are the same role with
     `font-weight: var(--ml-font-weight-medium)` next to it, which is one
     declaration rather than three more tokens per size. */
  --ml-type-body-weight: var(--ml-font-weight-regular);
  --ml-type-body-2xl-size: var(--ml-font-size-0); /* 18 */
  --ml-type-body-2xl-line: var(--ml-line-height-0); /* 26 */
  --ml-type-body-2xl-tracking: var(--ml-tracking-sm);
  --ml-type-body-xl-size: var(--ml-font-size-n1); /* 16 */
  --ml-type-body-xl-line: var(--ml-line-height-n1); /* 24 */
  --ml-type-body-xl-tracking: var(--ml-tracking-sm);
  /* Body/L is the base text of the interface. */
  --ml-type-body-l-size: var(--ml-font-size-base); /* 14 */
  --ml-type-body-l-line: var(--ml-line-height-base); /* 20 */
  --ml-type-body-l-tracking: var(--ml-tracking-md);
  --ml-type-body-m-size: var(--ml-font-size-label); /* 12 */
  --ml-type-body-m-line: var(--ml-line-height-n3); /* 16 */
  --ml-type-body-m-tracking: var(--ml-tracking-md);
  /* Body/S and Body/XS are metrically identical in the design system
     (11/15/0). One role, not two. */
  --ml-type-body-s-size: var(--ml-font-size-n4); /* 11 */
  --ml-type-body-s-line: var(--ml-line-height-n4); /* 15 */
  --ml-type-body-s-tracking: var(--ml-tracking-md);
  /* ============================================================
     Button — Medium throughout
     ============================================================
     The Filled metrics. Ghost differs from Filled only in letter spacing
     (+0.2 at L and M), which is a component decision and lives with the
     button rules. */
  --ml-type-button-weight: var(--ml-btn-font-weight);
  --ml-type-button-l-size: var(--ml-font-size-n1); /* 16 */
  --ml-type-button-l-line: var(--ml-line-height-n2-5); /* 18 */
  --ml-type-button-l-tracking: var(--ml-tracking-md);
  --ml-type-button-m-size: var(--ml-font-size-base); /* 14 */
  --ml-type-button-m-line: var(--ml-line-height-n4); /* 15 */
  --ml-type-button-m-tracking: var(--ml-tracking-md);
  /* Filled-S carries an 18px line height on a 12px face while Ghost-S carries
     14px. Extraction, not a typo: see §10 of access-design-system.md. The
     taller one is kept, it is the filled button this theme draws. */
  --ml-type-button-s-size: var(--ml-font-size-label); /* 12 */
  --ml-type-button-s-line: var(--ml-line-height-n2-5); /* 18 */
  --ml-type-button-s-tracking: var(--ml-tracking-sm);
  /* ============================================================
     Input
     ============================================================ */
  --ml-type-input-m-size: var(--ml-font-size-n1); /* 16 */
  --ml-type-input-m-line: var(--ml-line-height-n2); /* 20 */
  --ml-type-input-m-tracking: var(--ml-tracking-md);
  --ml-type-input-m-weight: var(--ml-font-weight-regular);
  --ml-type-input-s-size: var(--ml-font-size-base); /* 14 */
  --ml-type-input-s-line: var(--ml-line-height-n3); /* 16 */
  --ml-type-input-s-tracking: var(--ml-tracking-md);
  --ml-type-input-s-weight: var(--ml-font-weight-medium);
  /* ============================================================
     Table
     ============================================================
     Table/Text is 14/16 where Body/L, also 14, is 14/20. The tighter leading
     is what keeps a dense row on its declared height, so it is kept as
     published rather than reconciled. */
  --ml-type-table-header-size: var(--ml-font-size-label); /* 12 */
  --ml-type-table-header-line: var(--ml-line-height-n4); /* 15 */
  /* Tracked out, unlike every other role here. Uppercase at 12px is the one
     size the extraction sets at 0 where it needs air: the caps have no
     ascender or descender to tell them apart and a column name reads as one
     block of letters without it. */
  --ml-type-table-header-tracking: var(--ml-tracking-xl); /* 0.4 */
  --ml-type-table-header-weight: var(--ml-font-weight-semibold);
  --ml-type-table-header-transform: uppercase;
  --ml-type-table-text-size: var(--ml-font-size-base); /* 14 */
  --ml-type-table-text-line: var(--ml-line-height-n2-5); /* 16 */
  --ml-type-table-text-tracking: var(--ml-tracking-md);
  --ml-type-table-text-weight: var(--ml-font-weight-regular);
  --ml-type-table-subtext-size: var(--ml-font-size-label); /* 12 */
  --ml-type-table-subtext-line: var(--ml-line-height-n4); /* 15 */
  --ml-type-table-subtext-tracking: var(--ml-tracking-xl); /* 0.4 */
  --ml-type-table-subtext-weight: var(--ml-font-weight-regular);
  /* ============================================================
     Caption — Medium, except Wide
     ============================================================ */
  --ml-type-caption-weight: var(--ml-font-weight-medium);
  --ml-type-caption-m-size: var(--ml-font-size-base); /* 14 */
  --ml-type-caption-m-line: var(--ml-line-height-n3); /* 16 */
  --ml-type-caption-m-tracking: var(--ml-tracking-sm);
  --ml-type-caption-s-size: var(--ml-font-size-label); /* 12 */
  --ml-type-caption-s-line: var(--ml-line-height-n4); /* 15 */
  --ml-type-caption-s-tracking: var(--ml-tracking-sm);
  /* 12px leading on an 11px face is off the line height scale, which stops at
     14. Written as a literal so nobody has to look for the step it came
     from. */
  --ml-type-caption-xs-size: var(--ml-font-size-n4); /* 11 */
  --ml-type-caption-xs-line: 12px;
  --ml-type-caption-xs-tracking: var(--ml-tracking-sm);
  /* The uppercase label of the interface: section actions, filter headers,
     the datalist toolbar. 3px of tracking is off the scale too, and it is the
     point of the style. */
  --ml-type-caption-wide-size: var(--ml-font-size-label); /* 12 */
  --ml-type-caption-wide-line: var(--ml-line-height-n4); /* 15 */
  --ml-type-caption-wide-tracking: 3px;
  --ml-type-caption-wide-weight: var(--ml-font-weight-semibold);
  --ml-type-caption-wide-transform: uppercase;
}

/**
 * Melkart theme - component tokens
 *
 * One indirection above the semantic layer: each component names its own
 * decisions and points them at a foundation step. That is what makes the
 * settings screen tractable - a user sets the radius scale once and everything
 * follows, and only opens a component group when they want an exception.
 *
 * Two groups live here:
 *   1. the design system's `Components` collection, transcribed as-is;
 *   2. the components a Joget userview has and a mobile design system does not
 *      (sidebar, navbar, datalist, page sections, dialogs, login). Those are
 *      derivations from the scales, marked below, and want design confirmation.
 */
body {
  /* ============================================================
     Controls
     ============================================================ */
  /* Button. The design system calls the 48px step `Large` here and `Default`
     on the Button component set; both mean the same `--ml-size-lg`. */
  --ml-btn-height-lg: var(--ml-size-lg);
  --ml-btn-height-md: var(--ml-size-base);
  --ml-btn-height-sm: var(--ml-size-sm);
  /* One corner for all three sizes. The small button used to take `xs` and
     came out visibly squarer than the medium one beside it in a table row,
     which is the one place the two sizes actually sit together. */
  --ml-btn-radius-lg: var(--ml-radius-sm);
  --ml-btn-radius-md: var(--ml-radius-sm);
  --ml-btn-radius-sm: var(--ml-radius-sm);
  --ml-btn-padding-lg: var(--ml-space-5);
  --ml-btn-padding-md: var(--ml-space-4);
  --ml-btn-padding-sm: var(--ml-space-2-5);
  --ml-btn-gap-lg: var(--ml-space-2);
  --ml-btn-gap-md: var(--ml-space-1-5);
  --ml-btn-gap-sm: var(--ml-space-1);
  --ml-btn-icon-lg: var(--ml-size-2xs);
  --ml-btn-icon-md: var(--ml-size-4xs);
  --ml-btn-icon-sm: var(--ml-size-5xs);
  --ml-btn-font-weight: var(--ml-font-weight-medium);
  /* Sentence case at 0 tracking, as published. The theme used to set buttons
     uppercase with 0.4 of tracking to carry it; both the design system's
     Button styles and the reference desktop screens are sentence case, and at
     14px it is the more legible of the two. Still the component's own token
     rather than a type role: Ghost adds 0.2 where Filled does not.

     Casing is a token and not a literal in the button rule because it is an
     identity decision, not a correctness one - Material's buttons are
     uppercase, and that preset has to be able to say so. */
  --ml-btn-tracking: var(--ml-tracking-md);
  --ml-btn-transform: none;
  /* Primary and destructive treatments.
     Hue cannot carry "destructive" in this palette: brand/500 and danger/500
     are 1.5 degrees apart in OKLCH, and danger/500 is all but identical to
     brand/600. At a 16px delete icon they are the same colour. So the
     distinction is treatment, not hue - it survives at small sizes and in
     greyscale, and it leaves the brand colour untouched:
       brand       -> filled
       destructive -> tinted, outlined, never filled
     The filled destructive variant exists for one case only: the confirm
     button of a destructive dialog, where it is the sole red on screen. */
  --ml-btn-primary-bg: var(--ml-bg-brand-default);
  --ml-btn-primary-bg-hover: var(--ml-bg-brand-hover);
  --ml-btn-primary-bg-down: var(--ml-bg-brand-down);
  --ml-btn-primary-fg: var(--ml-text-on-brand);
  --ml-btn-primary-border: transparent;
  --ml-btn-danger-bg: var(--ml-bg-danger-weak);
  --ml-btn-danger-bg-hover: var(--ml-bg-danger-weakest);
  --ml-btn-danger-bg-down: var(--ml-bg-danger-weak);
  --ml-btn-danger-fg: var(--ml-text-on-danger-weak);
  --ml-btn-danger-border: var(--ml-border-danger-default);
  --ml-btn-danger-solid-bg: var(--ml-bg-danger-default);
  --ml-btn-danger-solid-bg-hover: var(--ml-bg-danger-hover);
  --ml-btn-danger-solid-fg: var(--ml-color-white);
  /* Neutral treatment: the bordered secondary button, and the pointer
     feedback for every button that carries no variant at all.
     `--ml-bg-strong` is the hover ground rather than `--ml-bg-surface-2`
     because it is one step off the surface in BOTH schemes - neutral/100 on
     white, neutral/700 on the dark surface - while surface-2 collapses onto
     surface-1 in dark mode and the button would sit there not reacting. */
  --ml-btn-secondary-bg: var(--ml-bg-surface-1);
  --ml-btn-secondary-bg-hover: var(--ml-bg-strong);
  --ml-btn-secondary-bg-down: var(--ml-bg-strongest);
  --ml-btn-secondary-fg: var(--ml-text-default);
  --ml-btn-secondary-border: var(--ml-input-border);
  --ml-btn-secondary-border-hover: var(--ml-border-hover);
  /* Ghost: no fill and no border until the pointer arrives. The third action
     of a form footer - cancel - and nothing else so far. */
  --ml-btn-ghost-fg: var(--ml-text-weak);
  --ml-btn-ghost-bg-hover: var(--ml-bg-strong);
  --ml-btn-ghost-fg-hover: var(--ml-text-default);
  /* Input. Vocabulary differs from Button in the design system (Base/Small vs
     Large/Medium/Small) but resolves to the same steps. */
  --ml-input-height-base: var(--ml-size-lg);
  --ml-input-height-sm: var(--ml-size-sm);
  --ml-input-radius-base: var(--ml-radius-sm);
  --ml-input-radius-sm: var(--ml-radius-sm);
  --ml-input-padding-base: var(--ml-space-4);
  --ml-input-padding-sm: var(--ml-space-2-5);
  --ml-input-icon: var(--ml-icon-size-md);
  --ml-input-border: var(--ml-border-default);
  --ml-input-border-hover: var(--ml-border-hover);
  --ml-input-border-focus: var(--ml-border-info-default);
  --ml-input-border-error: var(--ml-border-danger-default);
  --ml-input-bg: var(--ml-bg-white);
  --ml-input-bg-disabled: var(--ml-bg-default);
  --ml-input-fg: var(--ml-text-default);
  --ml-input-placeholder: var(--ml-text-disabled);
  /* Checkbox and radio. The design system sizes these by variant (Small /
     Large) without publishing a number, so the two steps are derived. */
  --ml-check-size: var(--ml-size-4xs);
  --ml-check-size-lg: var(--ml-size-2xs);
  --ml-check-radius: var(--ml-radius-xs);
  --ml-check-border-width: var(--ml-border-width-strong);
  --ml-check-gap-lg: var(--ml-space-2);
  --ml-check-gap-md: var(--ml-space-1-5);
  --ml-check-gap-sm: var(--ml-space-1);
  --ml-check-tile-padding: var(--ml-space-4);
  --ml-check-accent: var(--ml-bg-brand-default);
  --ml-check-accent-disabled: var(--ml-text-disabled);
  /* Switch. Not sized in the design system's Numbers collection. */
  --ml-switch-width: var(--ml-size-sm);
  --ml-switch-height: var(--ml-size-2xs);
  /* Focus ring. The design system's `Focus` token is Neutral/800, which on a
     desktop keyboard-driven form is too quiet to find at a glance, and the
     obvious louder choice is unavailable: brand and danger are both red here,
     so a red ring on a field reads as a validation error. Info blue is the one
     hue in the palette that means neither, and it is what the reference
     desktop screens ring with. The input border on focus matches it. */
  --ml-focus-ring-color: var(--ml-border-info-default);
  /* Choice cards. What a radio or checkbox group becomes when the Enhanced
     Choice Fields plugin takes it over: one tile per option, carrying an
     icon, a title, a description and a check mark. A control, so the resting
     tile is the input recipe - the input surface closed by the input border -
     rather than a card.

     The per-option accent is NOT here. The plugin writes it inline on each
     tile as `--enhance-choice-primary`, and a custom property substitutes on
     the element that declares it, so a `--ml-choice-accent` written on `body`
     would resolve to the fallback before it ever reached a tile. It is
     declared on the tile itself, in `components/plugins`, and anything mixed
     from it is mixed there too. What a preset can retune from here is
     everything that does not depend on it. */
  --ml-choice-card-padding: var(--ml-check-tile-padding);
  --ml-choice-card-gap: var(--ml-space-3);
  --ml-choice-card-radius: var(--ml-radius-sm);
  --ml-choice-card-border-width: var(--ml-border-width);
  --ml-choice-card-bg: var(--ml-input-bg);
  --ml-choice-card-border: var(--ml-input-border);
  --ml-choice-card-shadow: none;
  --ml-choice-card-shadow-selected: none;
  --ml-choice-icon-size: var(--ml-size-sm);
  --ml-choice-icon-radius: var(--ml-radius-xs);
  --ml-choice-icon-bg: var(--ml-bg-strongest);
  --ml-choice-icon-fg: var(--ml-text-weak);
  /* The glyph on a filled disc, which is the accent in every identity - so
     white in both schemes, like every other on-brand mark. */
  --ml-choice-icon-fg-selected: var(--ml-text-on-brand);
  /* ============================================================
     Surfaces and containers
     ============================================================ */
  --ml-card-padding: var(--ml-space-6);
  /* A panel takes the next step up from a control: the card corner has to
     read as the outer one when an input sits 24px inside it. */
  --ml-card-radius: var(--ml-radius-md);
  --ml-card-bg: var(--ml-bg-surface-1);
  --ml-card-border: var(--ml-border-weak);
  /* Flat. A card is closed by its hairline, and a page of section cards under
     one elevation reads as a pile of receipts rather than as a form. The
     exception is a surface that OVERLAPS what it covers - a dialog, a
     dropdown, the sticky action bar - which keeps its own elevation token.
     Material declares `--ml-card-shadow` itself, because depth rather than
     line is the whole of that identity. */
  --ml-card-shadow: var(--ml-shadow-0);
  --ml-modal-radius: var(--ml-radius-md);
  --ml-modal-padding: var(--ml-space-6);
  --ml-modal-bg: var(--ml-bg-surface-1);
  --ml-modal-shadow: var(--ml-shadow-3);
  --ml-modal-backdrop: var(--ml-bg-highlight-dark-alpha-500);
  /* `Botom Sheet/Radius` in Figma - the misspelling is not carried over. */
  --ml-sheet-radius: var(--ml-radius-3xl);
  --ml-sheet-padding: var(--ml-space-4);
  --ml-toast-radius: var(--ml-radius-sm);
  --ml-toast-fg: var(--ml-text-default);
  --ml-toast-shadow: var(--ml-shadow-2);
  --ml-dropdown-radius: var(--ml-radius-sm);
  --ml-dropdown-shadow: var(--ml-shadow-2);
  --ml-image-radius: var(--ml-radius-lg);
  --ml-badge-radius: var(--ml-radius-full);
  /* ============================================================
     Form
     ============================================================ */
  /* The colour of a field's own label. Weak grey is the safe choice and the
     wrong one for a form you work rather than read: on a section of eight
     fields the label is what you scan to find the one you want, and at 12px
     semibold it can carry the page's text colour without competing with the
     values beside it. Identities that want the quieter label say so - SIAM
     and Material both do. */
  --ml-form-label-fg: var(--ml-text-default);
  /* ============================================================
     Table
     ============================================================ */
  --ml-table-row-height: var(--ml-size-lg);
  --ml-table-head-height: var(--ml-size-base);
  --ml-table-head-bg: var(--ml-bg-highlight-dark-alpha-020);
  --ml-table-head-fg: var(--ml-text-weak);
  /* Transparent, not the published `alpha-020`. The design system resolves
     `Table/Zebra Dark` and `Table/Cell Head` to the same value and flags it
     as its own inconsistency (§10.6): stripes drawn in the head fill make the
     header indistinguishable from the first row. Rows are divided by a rule
     here instead. A preset that wants stripes points this at a tint. */
  --ml-table-zebra: transparent;
  --ml-table-row-hover: var(--ml-bg-highlight-dark-alpha-050);
  --ml-table-border: var(--ml-border-weak);
  --ml-table-radius: var(--ml-radius-sm);
  /* Typography roles live in `_typography.scss`, next to the shell sizes they
     alias. */
  /* ============================================================
     Joget shell
     ============================================================
     No counterpart in a mobile design system, so every value below is a
     derivation. The rule applied: do not invent a second scale, pick denser
     steps out of the existing one. A 375px phone gives a control 48px of
     height because a thumb needs it; an operator working a task inbox all day
     on a 1440px monitor wants rows on screen instead. So the shell drops one
     step - 48 to 40 controls, 56 to 48 table rows - while the design system's
     own component tokens above keep their published values. */
  /* Control-height aliases the theme's existing rules are written against. */
  --ml-control-height: var(--ml-size-base);
  --ml-control-height-xs: var(--ml-size-xs);
  --ml-control-height-sm: var(--ml-size-sm);
  --ml-control-height-md: var(--ml-size-base);
  --ml-control-height-lg: var(--ml-size-lg);
  /* The smallest square a finger hits reliably. Not a control height - a
     floor under one, applied to the controls a touch pointer has to reach by
     `tokens/_responsive.scss`. A mouse keeps the denser step. */
  --ml-touch-target: 44px;
  /* Page shell */
  --ml-page-bg: var(--ml-bg-default);
  --ml-gutter: var(--ml-space-6);
  /* Sidebar */
  --ml-sidenav-width: 264px;
  --ml-sidenav-mini-width: var(--ml-size-2xl);
  --ml-sidenav-bg: var(--ml-bg-surface-1);
  --ml-sidenav-fg: var(--ml-text-default);
  --ml-sidenav-border: var(--ml-border-weak);
  --ml-sidenav-padding: var(--ml-space-5) var(--ml-space-3);
  --ml-sidenav-item-height: var(--ml-size-base);
  --ml-sidenav-item-radius: var(--ml-radius-xs);
  --ml-sidenav-item-gap: var(--ml-space-3);
  --ml-sidenav-item-hover-bg: var(--ml-bg-strong);
  /* The active row is a brand tint carrying brand text, not a brand fill. */
  --ml-sidenav-item-active-bg: var(--ml-bg-brand-weakest);
  --ml-sidenav-item-active-fg: var(--ml-text-brand-default);
  /* The brand box: the block above the rail holding the logo or the app name.
     Its height is the navbar's so the two line up across the seam - that is a
     default, not a coupling, and either can be set on its own.

     It is brand-filled, which is a real constraint on the logo: a dark or
     full-colour logo on red will not read. Hence the tokens - point
     `--ml-sidenav-brand-bg` at `--ml-bg-surface-1` and the foreground at
     `--ml-text-default` and the box goes back to a white plate. */
  --ml-sidenav-brand-height: var(--ml-navbar-height);
  --ml-sidenav-brand-bg: var(--ml-bg-brand-default);
  --ml-sidenav-brand-fg: var(--ml-text-on-brand);
  --ml-sidenav-brand-padding: 0 var(--ml-space-5);
  /* Shorthand, so an identity that closes the box with a rule and one that
     runs it into the rail below are the same token set with different values
     rather than two different rules. `--ml-sidenav-brand-height: auto` is
     legal here too: a custom property holds whatever the property accepts. */
  --ml-sidenav-brand-border: 0;
  --ml-sidenav-accent-bar: 3px;
  /* Navbar */
  --ml-navbar-height: var(--ml-size-2xl);
  --ml-navbar-bg: var(--ml-bg-surface-1);
  --ml-navbar-fg: var(--ml-text-default);
  --ml-navbar-border: var(--ml-border-weak);
  --ml-navbar-shadow: var(--ml-shadow-0);
  /* The user menu's avatar. A disc, like every other avatar in the theme, and
     its own token because an identity built on square corners squares this one
     too - the large avatar at the head of the menu reads the same pair. */
  --ml-navbar-avatar-size: 28px;
  --ml-navbar-avatar-radius: 50%;
  /* Datalist */
  --ml-datalist-radius: var(--ml-card-radius);
  --ml-datalist-bg: var(--ml-bg-surface-1);
  --ml-datalist-border: var(--ml-border-weak);
  --ml-datalist-shadow: var(--ml-card-shadow);
  --ml-datalist-row-spacing: var(--ml-space-0);
  --ml-datalist-pagination-gap: var(--ml-space-1-5);
  /* Status and tag chips in a cell. A pill rather than the table's corner:
     the chip is the one thing in a row that is not aligned to the grid, and
     the round end is what says "this is a value with a state", not another
     boxed field. An identity built on square corners overrides it. */
  --ml-datalist-chip-radius: var(--ml-radius-full);
  /* Card mode. Below the phone breakpoint the table stops being a table: each
     record becomes a card carrying its own frame, and the shell that framed
     the table steps back to a transparent stack. The card therefore needs the
     four surface values in its own name - it cannot borrow the shell's,
     because in card mode the shell has none. Defaults point at the shell's,
     so an identity that retunes the list retunes the cards with it. */
  --ml-datalist-card-gap: var(--ml-space-3);
  --ml-datalist-card-padding: var(--ml-space-4);
  --ml-datalist-card-radius: var(--ml-datalist-radius);
  --ml-datalist-card-bg: var(--ml-datalist-bg);
  --ml-datalist-card-border: var(--ml-datalist-border);
  --ml-datalist-card-shadow: var(--ml-datalist-shadow);
  /* The label column of a card row - the column name the table put in its
     header. Quieter than the value it introduces. */
  --ml-datalist-card-label-fg: var(--ml-text-weak);
  --ml-datalist-card-label-width: 40%;
  /* Page loader. The three rings are decorative, so they come from the
     data-visualisation palette rather than from a surface or brand role. */
  --ml-loader-bg: var(--ml-bg-surface-1);
  /* How much of that surface is actually painted. Opaque by default: the
     loader is a page transition, not a scrim over something the viewer is
     meant to keep reading. Below 100% the page shows through, which is what
     the blur is for - it only means anything while there is something behind
     the overlay to blur. The pair is composed at the point of use, in
     `page-loading.scss`, because a token composed here would resolve against
     this block's values rather than against the configured ones. */
  --ml-loader-bg-opacity: 100%;
  --ml-loader-backdrop-blur: 0px;
  --ml-loader-ring-1: var(--ml-data-5);
  --ml-loader-ring-2: var(--ml-data-3);
  --ml-loader-ring-3: var(--ml-data-2);
  /* The loader wordmark is set wide on purpose, well past the tracking
     scale, which stops at 0.4. */
  --ml-loader-text-tracking: 7px;
  /* The logo on the loading screen. With the particle spinner on it sizes
     the square the animation fills and the logo takes a share of it;
     with the spinner off it sizes the logo directly. */
  --ml-loader-image-size: 350px;
  /* Login */
  --ml-login-card-radius: var(--ml-radius-md);
  --ml-login-card-padding: var(--ml-space-8);
  --ml-login-card-width: 420px;
  --ml-login-card-shadow: var(--ml-shadow-2);
  /* The sign-in controls stand taller than the system control on purpose:
     two fields on an otherwise empty column can afford the size, and the
     design system asks for 52px here. An identity with its own idea of
     density points this at `--ml-control-height-lg` instead. */
  --ml-login-input-height: 52px;
  /* The rule opening the hero copy. It is decoration, so every identity
     draws it differently - a quiet hairline here, SIAM's four stop gradient,
     Material's rounded indicator. Sized rather than composed, so it stays a
     value and the skeleton keeps the markup. */
  --ml-login-accent-bg: var(--ml-alpha-light-400);
  --ml-login-accent-width: 56px;
  --ml-login-accent-height: 2px;
  --ml-login-accent-radius: var(--ml-radius-xs);
  /* Home board. A userview's landing page rendered as a deck of cards - see
     `components/_home-board.scss` and org.melkart.plugin.ThemeHomeBoard.

     A board tile is deliberately not `--ml-card-*`. A page card is a surface
     you read; a tile is a target you aim at, so it carries its own padding,
     its own pointer feedback and an accent edge the page card has no use for.
     The defaults point at the card's values, so an identity that reskins one
     reskins both, and an identity that wants them to differ says so in three
     lines rather than by rewriting a component. */
  --ml-board-max-width: 1320px;
  --ml-board-gap: var(--ml-space-4);
  --ml-board-section-gap: var(--ml-space-9);
  /* The narrowest a tile may get before the deck drops a column. The grid is
     `auto-fill`, so this single number decides how many columns any given
     width has - which is why it is the one board metric on the settings
     screen: "four across" and "six across" are the same board at two values. */
  --ml-board-card-min: 240px;
  --ml-board-card-min-height: 148px;
  --ml-board-card-padding: var(--ml-space-5);
  --ml-board-card-radius: var(--ml-card-radius);
  --ml-board-card-bg: var(--ml-card-bg);
  --ml-board-card-border: var(--ml-card-border);
  --ml-board-card-shadow: var(--ml-card-shadow);
  --ml-board-card-hover-border: var(--ml-border-hover);
  --ml-board-card-hover-shadow: var(--ml-shadow-1);
  /* How far a tile rises under the pointer. `0` for an identity that answers
     the pointer with colour rather than with movement. */
  --ml-board-card-lift: -2px;
  /* The accent: the tile's leading edge and the tint behind its icon. With
     the palette setting the server writes `--ml-board-accent` inline on each
     tile, so this is both the fallback and the value the brand setting keeps.
     Everything derived from it is mixed at the point of use - a tint composed
     here would mix this default and quietly ignore the per-tile value. */
  --ml-board-accent: var(--ml-bg-brand-default);
  --ml-board-accent-bar: 2px;
  --ml-board-icon-size: 42px;
  --ml-board-icon-radius: var(--ml-radius-xs);
  --ml-board-stat-bg: var(--ml-bg-surface-2);
  --ml-board-stat-border: var(--ml-card-border);
  --ml-board-stat-radius: var(--ml-board-card-radius);
  --ml-board-search-height: var(--ml-control-height-lg);
  /* The pending-count chip. Warning-weak rather than brand: it reports work
     waiting, which is the one thing on a launcher that is not neutral. */
  --ml-board-badge-bg: var(--ml-bg-warning-weak);
  --ml-board-badge-fg: var(--ml-text-on-warning-weak);
  --ml-board-badge-radius: var(--ml-datalist-chip-radius);
  /* The rule under the greeting. Same idea as the login hero's, and sized
     rather than composed for the same reason: every identity draws it
     differently and the skeleton keeps the markup. */
  --ml-board-intro-accent: var(--ml-board-accent);
  --ml-board-intro-accent-width: 96px;
  --ml-board-intro-accent-height: 3px;
  /* Brand gradient, used for the login cover panel and nothing else. The
     design system's `Gradient/1..4` paint styles were extracted by name only,
     so the stops are a decision: one hue, two steps, no rainbow.
     It runs 600 to 800 rather than from the brand step, because a full-bleed
     field of brand/500 at chroma 0.24 is punishing to sit in front of, and
     white on 600/800 clears 6.1:1 and 10.4:1 where white on 500 scrapes
     4.7:1. Replace once the real stops are available. */
  --ml-gradient: linear-gradient(135deg, var(--ml-color-brand-600), var(--ml-color-brand-800));
  --ml-gradient-vertical: linear-gradient(180deg, var(--ml-color-brand-600), var(--ml-color-brand-800));
}

/**
 * Melkart theme - vendor variable feeds
 *
 * Bootstrap and material-dashboard are shipped as compiled CSS and read their
 * own custom properties: 361 `--bs-*` and 109 `--material-dashboard-theme-*`
 * lookups between them. Pointing those at the token layer is how the vendor
 * stylesheets follow the theme instead of fighting it.
 *
 * This is not the legacy bridge. These names belong to code we do not own and
 * they stay for as long as those stylesheets ship.
 */
body {
  /* -- bootstrap -- */
  --bs-font-sans-serif: var(--ml-font-body);
  --bs-body-font-family: var(--ml-font-body);
  --bs-body-color: var(--ml-text-default);
  --bs-border-radius: var(--ml-card-radius);
  --bs-danger: var(--ml-bg-danger-default);
  /* -- material-dashboard -- */
  --material-dashboard-theme-primary: var(--ml-color-brand-500);
  --material-dashboard-theme-primary-rgb: var(--ml-color-brand-500-rgb);
  --material-dashboard-theme-primary-active: var(--ml-color-brand-600);
  --material-dashboard-theme-primary-border: var(--ml-color-brand-600);
  --material-dashboard-theme-primary-hover: var(--ml-color-brand-400);
}

/* -- multi paged form (org.melkart.MultiPagedForm) --
   The plugin paints its wizard stepper from `--mpf-*` declared on
   `.multiPagedForm`, which is the whole reason its card colours are reachable at
   all. Pointing them at the token layer is what makes the stepper follow the
   active identity and flip with `body.dark-version` for free; the hexes the
   plugin did NOT route through a variable are handled in `components/plugins`.

   `body ` prefix, and no `:where()`: this has to beat the plugin's own
   `.multiPagedForm { ... }` block, and that stylesheet is <link>ed by the form
   template - inside <body>, after ours - so an equal-specificity rule loses. */
body .multiPagedForm {
  --mpf-accent: var(--ml-bg-brand-default);
  --mpf-accent-contrast: var(--ml-text-on-brand);
  --mpf-accent-soft: var(--ml-bg-brand-weakest);
  --mpf-readonly: var(--ml-text-on-success-weak);
  --mpf-readonly-bg: var(--ml-bg-success-weak);
  --mpf-muted: var(--ml-text-disabled);
  --mpf-muted-strong: var(--ml-text-weak);
  --mpf-muted-bg: var(--ml-bg-strong);
  --mpf-title: var(--ml-text-default);
  --mpf-card-bg: var(--ml-card-bg);
  --mpf-card-border: var(--ml-card-border);
  --mpf-radius: var(--ml-card-radius);
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-300-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-300-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../../fonts/poppins/poppins-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/**
 * Melkart theme — SIAM preset
 *
 * The identity the theme carried before the Access redesign, as token values.
 * Flat surfaces separated by 1px borders, 2px corners, navy brand, Poppins.
 * Every value here is transcribed from the `siam/_tokens.scss` this refactor
 * replaced; nothing is reinterpreted.
 *
 * The block sets primitives, scales and component tokens only. Semantic roles
 * are the light/dark contract and are remapped by `body.dark-version`, so a
 * preset that wrote one would freeze it in both schemes. Overriding the ramp
 * underneath instead lets both schemes re-derive, which is how the SIAM greys
 * reach a dark page without this file saying anything about dark mode.
 */
/**
 * Melkart theme — ramp derivation for presets
 *
 * A preset names one colour per role and gets ten steps, mixed toward white for
 * the tints and toward black for the shades. Adding a flat amount to each
 * channel would wash the hue out; mixing holds it.
 *
 * The ratios are the same ones `ThemeTokens.TINTS` and `SHADES` use in Java, so
 * a colour configured in the settings screen and the same colour written into a
 * preset produce the same ramp. If you change one, change the other.
 */
/**
 * A mixed colour as a plain hex string. `color.mix` returns floating point
 * channels, which dart-sass then prints as `rgb(92.847% ...)`; round-tripping
 * through the IE hex string rounds them to bytes and keeps the emitted CSS in
 * the same notation as every other colour in the token layer.
 */
/**
 * Emits `--ml-color-<name>-50` through `-900`.
 *
 * @param {String} $name  ramp name: brand, neutral, success, warning, danger, info
 * @param {Color}  $base  the 500 step
 * @param {String} $rgb   the base as bare `r, g, b` channels, for the two ramps
 *                        whose 500 step feeds an rgba(). Written out rather than
 *                        pulled off the colour: the channel accessors have moved
 *                        twice between dart-sass releases and this file has no
 *                        reason to care which one is installed.
 */
/**
 * The condition is wrapped in `:where()` on purpose. It makes the block land on
 * `body` at specificity (0,0,1), exactly like the token tiers it reskins, so
 * three things fall out in the right order without anyone having to count
 * selectors:
 *
 * - the preset beats the defaults, because `_index.scss` emits it after them;
 * - the settings screen beats the preset, because `ThemeTokens` emits its block
 *   after the whole stylesheet;
 * - `body.rtl` and `body.dark-version`, at (0,1,1), still outrank all three,
 *   which is the existing cascade contract and the reason the RTL font and the
 *   dark shadow colour keep working.
 */
body:where([data-ml-preset=siam]) {
  /* ── colour ──
     SIAM published five flat colours rather than ramps, so the ten steps are
     derived from each. The originals sit at the 500 step and are what the
     interface actually shows. */
  --ml-color-brand-50: #EDF0F6;
  --ml-color-brand-100: #DBE1ED;
  --ml-color-brand-200: #B1BFD8;
  --ml-color-brand-300: #889DC4;
  --ml-color-brand-400: #4D6CA6;
  --ml-color-brand-500: #1b428d;
  --ml-color-brand-500-rgb: 27, 66, 141;
  --ml-color-brand-600: #163674;
  --ml-color-brand-700: #122D60;
  --ml-color-brand-800: #0F244C;
  --ml-color-brand-900: #0C1D3E;
  --ml-color-neutral-50: #F3F3F3;
  --ml-color-neutral-100: #E6E6E6;
  --ml-color-neutral-200: #CACACA;
  --ml-color-neutral-300: #AEAEAE;
  --ml-color-neutral-400: #868686;
  --ml-color-neutral-500: #646464;
  --ml-color-neutral-500-rgb: 100, 100, 100;
  --ml-color-neutral-600: #525252;
  --ml-color-neutral-700: #444444;
  --ml-color-neutral-800: #363636;
  --ml-color-neutral-900: #2C2C2C;
  --ml-color-success-50: #ECF9F4;
  --ml-color-success-100: #D9F4E9;
  --ml-color-success-200: #AFE8D0;
  --ml-color-success-300: #84DBB7;
  --ml-color-success-400: #47C993;
  --ml-color-success-500: #13ba74;
  --ml-color-success-600: #10995F;
  --ml-color-success-700: #0D7E4F;
  --ml-color-success-800: #0A643F;
  --ml-color-success-900: #085233;
  --ml-color-warning-50: #FFF6EF;
  --ml-color-warning-100: #FFEDE0;
  --ml-color-warning-200: #FFD9BD;
  --ml-color-warning-300: #FFC49A;
  --ml-color-warning-400: #FFA767;
  --ml-color-warning-500: #ff8e3c;
  --ml-color-warning-600: #D17431;
  --ml-color-warning-700: #AD6129;
  --ml-color-warning-800: #8A4D20;
  --ml-color-warning-900: #703E1A;
  --ml-color-danger-50: #FFF0F0;
  --ml-color-danger-100: #FFE2E2;
  --ml-color-danger-200: #FFC0C0;
  --ml-color-danger-300: #FF9F9F;
  --ml-color-danger-400: #FF6F6F;
  --ml-color-danger-500: #ff4747;
  --ml-color-danger-600: #D13A3A;
  --ml-color-danger-700: #AD3030;
  --ml-color-danger-800: #8A2626;
  --ml-color-danger-900: #701F1F;
  --ml-color-info-50: #EEF7FC;
  --ml-color-info-100: #DCEFFA;
  --ml-color-info-200: #B5DEF4;
  --ml-color-info-300: #8ECCEE;
  --ml-color-info-400: #55B3E6;
  --ml-color-info-500: #259ddf;
  --ml-color-info-600: #1E81B7;
  --ml-color-info-700: #196B98;
  --ml-color-info-800: #145578;
  --ml-color-info-900: #104562;
  /* The four-stop brand gradient: navy, sky, green, gold. It is the one place
     the SIAM accent gold appears, so it is written out rather than derived. */
  --ml-gradient: linear-gradient(90deg, #1b428d, #259ddf, #9acc46, #ebc043);
  --ml-gradient-vertical: linear-gradient(180deg, #1b428d, #259ddf, #9acc46, #ebc043);
  /* ── shape ──
     Two pixels everywhere. SIAM had one radius doing every job and that was
     the point of it, so the four steps collapse to the same value. */
  --ml-radius-xs: 2px;
  --ml-radius-sm: 2px;
  --ml-radius-md: 2px;
  --ml-radius-lg: 2px;
  /* Flat: surfaces are separated by borders, never by depth. */
  --ml-shadow-1: none;
  --ml-shadow-2: none;
  --ml-shadow-2-center: none;
  --ml-shadow-3: none;
  --ml-border-width: 1px;
  --ml-border-default: #E8E9EA;
  --ml-sidenav-accent-bar: 3px;
  /* Two pixels everywhere applies to a chip too: the default is a pill, and
     a pill in a table cell is the one shape this identity does not draw. */
  --ml-datalist-chip-radius: var(--ml-table-radius);
  /* ── type ── */
  --ml-font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ml-font-headers: var(--ml-font-body);
  /* The quiet field label this identity has always drawn. */
  --ml-form-label-fg: var(--ml-text-weak);
  /* ── metrics ──
     Roomier than the design system's, which is where most of the difference
     between the two identities is felt. */
  --ml-sidenav-width: 264px;
  --ml-sidenav-mini-width: 76px;
  --ml-navbar-height: 76px;
  --ml-gutter: 36px;
  /* The rail. SIAM's brand box is a plain plate closed by a rule, not a fill,
     and it sizes to its own padding rather than to the top bar. */
  --ml-sidenav-brand-height: auto;
  --ml-sidenav-brand-padding: 26px 22px 22px;
  --ml-sidenav-brand-bg: transparent;
  --ml-sidenav-brand-fg: var(--ml-text-default);
  --ml-sidenav-brand-border: var(--ml-border-width) solid var(--ml-border-weak);
  /* A filled active row, which is why the counter pill on it has to invert
     (see `_sidebar.scss` in this directory). */
  --ml-sidenav-item-active-bg: var(--ml-bg-brand-default);
  --ml-sidenav-item-active-fg: var(--ml-text-on-brand);
  --ml-sidenav-item-hover-bg: var(--ml-bg-default);
  --ml-sidenav-item-height: 42px;
  --ml-sidenav-padding: 18px 14px;
  --ml-sidenav-border: var(--ml-border-default);
  --ml-card-padding: 26px;
  --ml-control-height: 46px;
  --ml-control-height-xs: 28px;
  --ml-control-height-sm: 34px;
  --ml-control-height-md: 44px;
  --ml-control-height-lg: 54px;
  --ml-check-size: 18px;
  --ml-datalist-row-spacing: 0px;
  /* The home board, flat and square like everything else here. Nothing this
     identity does to the deck is composition - no frame moves and no element
     changes place - so it is all values and there is no
     `presets/siam/_home-board.scss`. The pointer is answered with ink rather
     than with movement, because there is no shadow for a tile to rise into,
     and the greeting is opened by the four stop gradient at the width the
     login hero uses. */
  --ml-board-card-lift: 0px;
  --ml-board-card-hover-border: var(--ml-text-default);
  --ml-board-card-hover-shadow: none;
  --ml-board-accent-bar: 3px;
  --ml-board-stat-bg: var(--ml-bg-surface-1);
  --ml-board-badge-radius: var(--ml-table-radius);
  --ml-board-intro-accent: var(--ml-gradient);
  --ml-board-intro-accent-width: 120px;
  --ml-board-intro-accent-height: 4px;
  --ml-board-gap: 20px;
  --ml-board-section-gap: 36px;
  /* The login page follows the identity's own density rather than the design
     system's 52px, and the rule opening the hero copy is the four stop
     gradient at the width SIAM has always drawn it. */
  --ml-login-input-height: var(--ml-control-height-lg);
  --ml-login-accent-bg: var(--ml-gradient);
  --ml-login-accent-width: 120px;
  --ml-login-accent-height: 4px;
  --ml-login-accent-radius: 0;
}

/**
 * Melkart theme — Material preset
 *
 * The look the theme had before either redesign: material-dashboard's rounded
 * cards, layered soft shadows, blue-grey text and Roboto.
 *
 * Sourced where the old stylesheet stated a value - the two shadows, the input
 * border, the page background, the `#596CFF` primary and the `0.75rem` panel
 * radius all come from the pre-redesign `:root` block and from
 * `THEME_PRIMARY_COLOR`. The metrics and the intermediate radius steps are a
 * reading of material-dashboard's own defaults (`.btn` at 0.5rem, `.card` at
 * 1rem, Bootstrap's 0.375rem), not values this theme ever declared.
 */
/**
 * The condition is wrapped in `:where()` on purpose. It makes the block land on
 * `body` at specificity (0,0,1), exactly like the token tiers it reskins, so
 * three things fall out in the right order without anyone having to count
 * selectors:
 *
 * - the preset beats the defaults, because `_index.scss` emits it after them;
 * - the settings screen beats the preset, because `ThemeTokens` emits its block
 *   after the whole stylesheet;
 * - `body.rtl` and `body.dark-version`, at (0,1,1), still outrank all three,
 *   which is the existing cascade contract and the reason the RTL font and the
 *   dark shadow colour keep working.
 */
body:where([data-ml-preset=material]) {
  /* ── colour ── */
  --ml-color-brand-50: #F2F3FF;
  --ml-color-brand-100: #E4E7FF;
  --ml-color-brand-200: #C7CDFF;
  --ml-color-brand-300: #A9B3FF;
  --ml-color-brand-400: #7E8CFF;
  --ml-color-brand-500: #596cff;
  --ml-color-brand-500-rgb: 89, 108, 255;
  --ml-color-brand-600: #4959D1;
  --ml-color-brand-700: #3D49AD;
  --ml-color-brand-800: #303A8A;
  --ml-color-brand-900: #273070;
  /* Material's greys are blue-tinted, which is what makes the whole surface
     read cool rather than neutral. The 500 step is material-dashboard's
     secondary text colour. */
  --ml-color-neutral-50: #F3F4F6;
  --ml-color-neutral-100: #E7E9ED;
  --ml-color-neutral-200: #CBD0D9;
  --ml-color-neutral-300: #B0B7C4;
  --ml-color-neutral-400: #8893A7;
  --ml-color-neutral-500: #67748e;
  --ml-color-neutral-500-rgb: 103, 116, 142;
  --ml-color-neutral-600: #545F74;
  --ml-color-neutral-700: #464F61;
  --ml-color-neutral-800: #383F4D;
  --ml-color-neutral-900: #2D333E;
  --ml-color-success-50: #F1F9F1;
  --ml-color-success-100: #E2F2E3;
  --ml-color-success-200: #C2E4C4;
  --ml-color-success-300: #A2D5A4;
  --ml-color-success-400: #73C177;
  --ml-color-success-500: #4caf50;
  --ml-color-success-600: #3E9042;
  --ml-color-success-700: #347736;
  --ml-color-success-800: #295F2B;
  --ml-color-success-900: #214D23;
  --ml-color-warning-50: #FFF6EB;
  --ml-color-warning-100: #FEEDD6;
  --ml-color-warning-200: #FED8A8;
  --ml-color-warning-300: #FDC37A;
  --ml-color-warning-400: #FCA538;
  --ml-color-warning-500: #fb8c00;
  --ml-color-warning-600: #CE7300;
  --ml-color-warning-700: #AB5F00;
  --ml-color-warning-800: #884C00;
  --ml-color-warning-900: #6E3E00;
  --ml-color-danger-50: #FEF0EF;
  --ml-color-danger-100: #FDE1DF;
  --ml-color-danger-200: #FBBFBA;
  --ml-color-danger-300: #F99D96;
  --ml-color-danger-400: #F66C61;
  --ml-color-danger-500: #f44335;
  --ml-color-danger-600: #C8372B;
  --ml-color-danger-700: #A62E24;
  --ml-color-danger-800: #84241D;
  --ml-color-danger-900: #6B1D17;
  --ml-color-info-50: #EDF4FD;
  --ml-color-info-100: #DAE9FB;
  --ml-color-info-200: #B1CFF7;
  --ml-color-info-300: #88B6F3;
  --ml-color-info-400: #4C92ED;
  --ml-color-info-500: #1a73e8;
  --ml-color-info-600: #155EBE;
  --ml-color-info-700: #124E9E;
  --ml-color-info-800: #0E3E7D;
  --ml-color-info-900: #0B3366;
  --ml-gradient: linear-gradient(195deg, #42424a, #191919);
  --ml-gradient-vertical: linear-gradient(180deg, #42424a, #191919);
  /* ── shape ── */
  --ml-radius-xs: 6px;
  --ml-radius-sm: 8px;
  --ml-radius-md: 12px;
  --ml-radius-lg: 16px;
  /* The two shadows the pre-redesign stylesheet declared, plus a third for
     the dialogs that had none. They keep both shadow tokens - the colour,
     so dark mode still switches them from blue-grey to black, and the alpha
     scale, so they are laid on thick enough to be visible once it does. */
  --ml-shadow-1: 0 1px 2px 0 rgba(var(--ml-shadow-color), calc(0.05 * var(--ml-shadow-alpha-scale)));
  --ml-shadow-2: 0 6px 6px -1px rgba(var(--ml-shadow-color), calc(0.1 * var(--ml-shadow-alpha-scale))),
      0 2px 4px -1px rgba(var(--ml-shadow-color), calc(0.05 * var(--ml-shadow-alpha-scale)));
  --ml-shadow-2-center: 0 0 12px 0 rgba(var(--ml-shadow-color), calc(0.08 * var(--ml-shadow-alpha-scale)));
  --ml-shadow-3: 0 20px 27px 0 rgba(var(--ml-shadow-color), calc(0.05 * var(--ml-shadow-alpha-scale))),
      0 4px 6px -1px rgba(var(--ml-shadow-color), calc(0.1 * var(--ml-shadow-alpha-scale)));
  /* Depth is this identity's separator, so a card keeps the elevation the
     default dropped when Access went flat. */
  --ml-card-shadow: var(--ml-shadow-1);
  /* ── type ── */
  --ml-font-body: "Roboto", "Helvetica", "Arial", sans-serif;
  --ml-font-headers: var(--ml-font-body);
  /* Material's form labels are the quiet grey above the field. */
  --ml-form-label-fg: var(--ml-text-weak);
  /* Material Design sets buttons uppercase; the theme's own identity no
     longer does, so this preset has to ask for it. */
  --ml-btn-transform: uppercase;
  --ml-btn-tracking: var(--ml-tracking-xl);
  /* ── metrics ── */
  --ml-sidenav-width: 250px;
  --ml-sidenav-mini-width: 96px;
  --ml-navbar-height: 75px;
  --ml-gutter: 24px;
  /* The rail floats, so its brand box is a plate on the panel's own surface
     and needs no rule under it - the panel edge already separates. */
  --ml-sidenav-brand-height: auto;
  --ml-sidenav-brand-padding: 24px 16px 8px;
  --ml-sidenav-brand-bg: transparent;
  --ml-sidenav-brand-fg: var(--ml-text-default);
  --ml-sidenav-brand-border: 0;
  /* Material's active row is a filled, elevated pill. */
  --ml-sidenav-item-active-bg: var(--ml-bg-brand-default);
  --ml-sidenav-item-active-fg: var(--ml-text-on-brand);
  --ml-sidenav-item-hover-bg: var(--ml-bg-strong);
  --ml-sidenav-padding: 8px 16px;
  --ml-card-padding: 24px;
  --ml-control-height: 44px;
  --ml-control-height-xs: 30px;
  --ml-control-height-sm: 36px;
  --ml-control-height-md: 44px;
  --ml-control-height-lg: 52px;
  /* Choice tiles carry the identity's elevation instead of a hairline, and
     the leading icon is a disc - Material's own idiom for a list avatar,
     and the one place this preset wants a radius the scale does not give. */
  --ml-choice-card-shadow: var(--ml-shadow-1);
  --ml-choice-card-shadow-selected: var(--ml-shadow-2);
  --ml-choice-icon-radius: var(--ml-radius-full);
  /* The home board. Depth is this identity's separator, so a tile is a
     floating surface with no hairline and no accent edge - the pointer raises
     it a level instead of inking a border that is not there - and the icon
     chip is a disc, the same idiom as the choice tile above. Values only,
     which is why there is no `presets/material/_home-board.scss`. */
  --ml-board-card-border: transparent;
  --ml-board-card-hover-border: transparent;
  --ml-board-card-shadow: var(--ml-shadow-1);
  --ml-board-card-hover-shadow: var(--ml-shadow-2);
  --ml-board-accent-bar: 0px;
  --ml-board-icon-radius: var(--ml-radius-full);
  --ml-board-stat-bg: var(--ml-card-bg);
  --ml-board-stat-border: transparent;
  --ml-board-intro-accent-width: 72px;
  --ml-board-intro-accent-height: 4px;
  /* Material's accent above a headline is a solid rounded indicator, not a
     rule: `--ml-gradient` here is the charcoal one and would disappear into
     the hero ink, so the bar takes a brand tint light enough to read on it. */
  --ml-login-accent-bg: var(--ml-color-brand-300);
  --ml-login-accent-width: 72px;
  --ml-login-accent-height: 4px;
  --ml-login-accent-radius: var(--ml-radius-lg);
}

/**
 * Melkart theme — base
 *
 * Typography, the page canvas, links, text utilities, the monospace face,
 * scrollbars, keyboard focus, and the two global shape rules: which surfaces
 * take the card's corner, and which take which elevation. Identity-neutral -
 * every value reads a token, so a preset changes shape and depth by changing
 * numbers rather than by re-declaring these rules.
 */
html,
body {
  font-family: var(--ml-font-body) !important;
}

body {
  background-color: var(--ml-page-bg) !important;
  color: var(--ml-text-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: var(--ml-tracking-md);
}

body.bg-gray-200,
body.iframe-content {
  background-color: var(--ml-page-bg) !important;
}

/* Form controls do not inherit a font, so the page typeface has to be handed to
   them by name. This one stays page-wide - the typeface is the page's, not a
   component's - but it is no longer `!important`: nothing but the UA stylesheet
   competes for it, and a plugin that ships its own face should be able to say
   so. `.ml-unstyled` takes it off with the rest of the recipe. */
input:where(:not(.ml-unstyled, .ml-unstyled *)),
select:where(:not(.ml-unstyled, .ml-unstyled *)),
textarea:where(:not(.ml-unstyled, .ml-unstyled *)),
button:where(:not(.ml-unstyled, .ml-unstyled *)),
.btn:where(:not(.ml-unstyled, .ml-unstyled *)),
.card .card-body,
.text-sans-serif {
  font-family: var(--ml-font-body);
}

/* ── Typography scale ── */
h1,
.h1 {
  font-size: var(--ml-type-heading-2xl-size);
  line-height: var(--ml-type-heading-2xl-line);
  letter-spacing: var(--ml-type-heading-2xl-tracking);
}

h2,
.h2 {
  font-size: var(--ml-type-heading-xl-size);
  line-height: var(--ml-type-heading-xl-line);
  letter-spacing: var(--ml-type-heading-xl-tracking);
}

h3,
.h3 {
  font-size: var(--ml-type-heading-l-size);
  line-height: var(--ml-type-heading-l-line);
  letter-spacing: var(--ml-type-heading-l-tracking);
}

h4,
.h4 {
  font-size: var(--ml-type-heading-m-size);
  line-height: var(--ml-type-heading-m-line);
  letter-spacing: var(--ml-type-heading-m-tracking);
}

h5,
.h5 {
  font-size: var(--ml-type-heading-s-size);
  line-height: var(--ml-type-heading-s-line);
  letter-spacing: var(--ml-type-heading-s-tracking);
}

h6,
.h6 {
  font-size: var(--ml-type-heading-xs-size);
  line-height: var(--ml-type-heading-xs-line);
  letter-spacing: var(--ml-type-heading-xs-tracking);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ml-text-default);
  font-weight: var(--ml-type-heading-weight);
}

p {
  font-weight: var(--ml-type-body-weight);
  line-height: var(--ml-type-body-l-line);
}

/* Body/M and Body/S. The old 13px sat between two published steps and was the
   theme's own invention. */
small,
.text-sm {
  font-size: var(--ml-type-body-m-size);
  line-height: var(--ml-type-body-m-line);
}

.text-xs {
  font-size: var(--ml-type-body-s-size);
  line-height: var(--ml-type-body-s-line);
}

/* Eyebrow / overline text used above page titles: Caption/Wide. */
.text-uppercase {
  letter-spacing: var(--ml-type-caption-wide-tracking);
}

/* The monospace face. `--ml-font-mono` had no consumer until now, which made
   the family setting - and the web font behind it - inert. Beyond code, this is
   the face for the values a monospace column actually helps read: record ids,
   reference numbers, timestamps. `.text-mono` is the hook for those, since a
   Joget datalist has no way to say "this column is an identifier". */
code,
kbd,
pre,
samp,
.text-mono {
  font-family: var(--ml-font-mono);
  font-size: var(--ml-type-body-m-size);
}

/* A code block is a block: it needs to scroll rather than widen its column. */
pre {
  overflow-x: auto;
  padding: var(--ml-space-3);
  border-radius: var(--ml-radius-xs);
  background: var(--ml-bg-strong);
  line-height: var(--ml-line-height-n2);
}

a {
  color: var(--ml-bg-brand-default);
  text-decoration: none;
  transition: color var(--ml-transition);
}
a:hover {
  color: var(--ml-text-default);
}

/* Bootstrap text utilities pulled onto the theme palette */
.text-dark,
.text-body {
  color: var(--ml-text-default) !important;
}

.text-secondary {
  color: var(--ml-text-weak) !important;
}

.text-muted {
  color: var(--ml-text-disabled) !important;
}

.text-primary {
  color: var(--ml-bg-brand-default) !important;
}

/* ── Shape ──
   Bootstrap's radius utilities and the surfaces that have no radius token of
   their own are pulled onto the card's corner. `.modal-content`,
   `.dropdown-menu` and `.badge` are deliberately absent: each has its own token
   and its own rule in `_overlays.scss`, and naming them here forced the card's
   corner on all three - which is why `--ml-badge-radius` had no consumer and a
   badge was not a pill. */
.border-radius-xl,
.border-radius-lg,
.border-radius-md,
.border-radius-sm,
.border-radius-2xl,
.rounded,
.rounded-2,
.rounded-3,
.card,
.ui-html,
.alert,
.list-group,
.progress {
  border-radius: var(--ml-card-radius) !important;
}

.avatar,
.avatar.border-radius-lg,
.avatar.border-radius-xl,
.rounded-circle {
  border-radius: 50% !important;
}

/* Elevation is a token decision, not a blanket off-switch. This rule used to
   name `.card`, `.ui-html`, `.modal-content` and `.dropdown-menu` alongside the
   utilities and force every one of them flat, which is why `--ml-card-shadow`
   had no consumer and setting it did nothing. Bootstrap's `.shadow-*` utilities
   still go, because they carry their own hardcoded values and would otherwise
   out-specify the tokens. Alerts, the navbar and progress bars are separated by
   borders in this design, so they stay flat on purpose. */
.shadow,
.shadow-sm,
.shadow-lg,
.shadow-xl,
.shadow-blur,
.shadow-none,
.alert,
.navbar,
.progress {
  box-shadow: none !important;
}

.card,
.ui-html {
  box-shadow: var(--ml-card-shadow);
}

.modal-content {
  box-shadow: var(--ml-modal-shadow);
}

.dropdown-menu {
  box-shadow: var(--ml-dropdown-shadow);
}

.card {
  background-color: var(--ml-card-bg);
  border: var(--ml-border-width) solid var(--ml-card-border);
}
.card .card-header {
  background-color: transparent;
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
  padding: 22px var(--ml-card-padding);
}
.card .card-body {
  padding: var(--ml-card-padding);
}
.card .card-footer {
  border-top: var(--ml-border-width) solid var(--ml-border-weak);
  padding: 18px var(--ml-card-padding);
}

.card.card-plain {
  border: 0;
}

.ui-html {
  padding: var(--ml-card-padding);
  border: var(--ml-border-width) solid var(--ml-card-border);
  background: var(--ml-card-bg);
  color: var(--ml-text-default);
}

hr,
hr.horizontal {
  background: none !important;
  background-image: none !important;
  border: 0;
  border-top: var(--ml-border-width) solid var(--ml-border-weak);
  opacity: 1;
  height: 0;
}

/* ── Scrollbars ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ml-input-border);
  border-radius: var(--ml-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ml-text-weak);
}

/* Keyboard focus stays visible even though inputs use a border-only focus.
   Reads the focus tokens rather than restating them: --ml-focus-ring-width is
   an exposed setting, and it did nothing at all while this rule said 2px. */
a:focus-visible,
button:focus-visible,
[role=button]:focus-visible {
  outline: var(--ml-focus-ring-width) solid var(--ml-focus-ring-color) !important;
  outline-offset: var(--ml-focus-ring-offset);
}

.dropdown-exports .dropdown:not(.dropdown-hover) .dropdown-menu.show {
  margin-top: 0 !important;
}

/**
 * Melkart theme — vertical sidebar skeleton
 *
 * Identity-neutral. The rail's geometry, the brand box's flex layout, the nav
 * row's box and icon sizing, the mini-rail mechanism, the sidebar colour
 * schemes and the responsive behaviour. Every value reads a `--ml-sidenav-*`
 * token, so an identity that only changes numbers needs no file of its own.
 *
 * What is NOT here: whether the panel is flush against the content or a
 * detached floating card, whether the rail is closed by a strip at its foot,
 * and the type treatment of a category row. Those are composition, in
 * `presets/<name>/_sidebar.scss`.
 *
 * The rail's own frame is the clearest case. `margin: 0; border-radius: 0;
 * box-shadow: none` used to sit in this file and flattened material-dashboard's
 * floating panel for every identity - including Material's, whose template
 * still renders `border-radius-xl my-3` asking for it. Flattening is Access's
 * and SIAM's decision, so it moved to their files and Material's simply
 * omits it.
 */
aside.sidenav.navbar-vertical {
  width: var(--ml-sidenav-width) !important;
  max-width: var(--ml-sidenav-width) !important;
  top: 0 !important;
  overflow-x: hidden;
}

/* The three sidebar colour schemes of the `sidebarTheme` setting. Orthogonal to
   the design identity: any scheme can pair with any preset, so they read tokens
   and stay here rather than being duplicated three times. */
aside.sidenav.navbar-vertical.sidenav-auto-bg,
aside.sidenav.navbar-vertical.bg-white,
aside.sidenav.navbar-vertical.bg-transparent {
  background: var(--ml-sidenav-bg) !important;
  background-image: none !important;
}

.dark-version aside.sidenav.navbar-vertical.sidenav-auto-bg {
  background: var(--ml-sidenav-bg) !important;
  background-image: none !important;
}

/* ── Brand box ──
   Held to exactly its own height: the panel is a flex column, so without
   `flex: none` a long app name would let this box grow and break the alignment
   with the top bar that is the whole point of the shared height token. */
.sidenav .sidenav-header {
  flex: none;
  height: var(--ml-sidenav-brand-height);
  min-height: var(--ml-sidenav-brand-height);
  padding: var(--ml-sidenav-brand-padding);
  display: flex;
  align-items: center;
  gap: var(--ml-space-3);
  background: var(--ml-sidenav-brand-bg);
  border-bottom: var(--ml-sidenav-brand-border);
  overflow: hidden;
}
.sidenav .sidenav-header .navbar-brand {
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--ml-space-3);
  width: 100%;
  min-width: 0;
}
.sidenav .sidenav-header {
  /* 32, not 40: the box is 24px shorter than it was and a logo needs air. */
}
.sidenav .sidenav-header .navbar-brand-img,
.sidenav .sidenav-header .navbar-brand img {
  max-height: var(--ml-size-sm);
  height: auto !important;
  width: auto !important;
}
.sidenav .sidenav-header {
  /* The mobile close affordance sits on the brand fill, so it inverts too. */
}
.sidenav .sidenav-header #iconSidenav {
  color: var(--ml-sidenav-brand-fg) !important;
  opacity: 0.8 !important;
}

/* Scoped through the header so the Dark / White / Custom presets below cannot
   recolour it off the brand fill - they only know about the rail. */
.sidenav .sidenav-header .sidenav-brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--ml-font-size-n1);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-sm);
  color: var(--ml-sidenav-brand-fg) !important;
}

.sidenav .sidenav-header + hr.horizontal {
  display: none;
}

.sidenav hr.horizontal {
  border-top: var(--ml-border-width) solid var(--ml-border-weak);
  margin: 8px 14px !important;
}

/* ── Navigation ── */
.sidenav > .navbar-collapse > .navbar-nav {
  padding: var(--ml-sidenav-padding) !important;
  gap: var(--ml-space-1);
}

.sidenav .navbar-nav .nav-item {
  margin-bottom: 0 !important;
}

.sidenav .navbar-nav .nav-link,
.sidenav .navbar-nav .nav-link.text-white,
.sidenav .navbar-nav .nav .nav-link {
  display: flex;
  align-items: center;
  gap: var(--ml-sidenav-item-gap);
  min-height: var(--ml-sidenav-item-height);
  margin: 0 !important;
  padding: 10px var(--ml-space-3) !important;
  border-radius: var(--ml-sidenav-item-radius) !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--ml-text-weak) !important;
  font-size: var(--ml-font-size-base) !important;
  font-weight: var(--ml-font-weight-medium) !important;
  line-height: 1.35;
  letter-spacing: var(--ml-tracking-md);
  transition: background-color var(--ml-transition), color var(--ml-transition);
}
.sidenav .navbar-nav .nav-link:hover,
.sidenav .navbar-nav .nav-link.text-white:hover,
.sidenav .navbar-nav .nav .nav-link:hover {
  background-color: var(--ml-sidenav-item-hover-bg) !important;
  color: var(--ml-text-default) !important;
}
.sidenav .navbar-nav .nav-link > i,
.sidenav .navbar-nav .nav-link > .icon,
.sidenav .navbar-nav .nav-link [class*=material-icons],
.sidenav .navbar-nav .nav-link [class*=fa-],
.sidenav .navbar-nav .nav-link [class*=zmdi],
.sidenav .navbar-nav .nav-link.text-white > i,
.sidenav .navbar-nav .nav-link.text-white > .icon,
.sidenav .navbar-nav .nav-link.text-white [class*=material-icons],
.sidenav .navbar-nav .nav-link.text-white [class*=fa-],
.sidenav .navbar-nav .nav-link.text-white [class*=zmdi],
.sidenav .navbar-nav .nav .nav-link > i,
.sidenav .navbar-nav .nav .nav-link > .icon,
.sidenav .navbar-nav .nav .nav-link [class*=material-icons],
.sidenav .navbar-nav .nav .nav-link [class*=fa-],
.sidenav .navbar-nav .nav .nav-link [class*=zmdi] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  margin: 0 !important;
  font-size: var(--ml-font-size-n1) !important;
  text-align: center;
  color: inherit;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}
.sidenav .navbar-nav .nav-link .nav-link-text,
.sidenav .navbar-nav .nav-link > span,
.sidenav .navbar-nav .nav-link.text-white .nav-link-text,
.sidenav .navbar-nav .nav-link.text-white > span,
.sidenav .navbar-nav .nav .nav-link .nav-link-text,
.sidenav .navbar-nav .nav .nav-link > span {
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  font-size: var(--ml-font-size-base);
  text-wrap: pretty;
}

/* The active row. A brand tint carrying brand text, where this was a solid
   brand fill with white text - and it stayed solid however the tokens were set,
   because it named `--ml-bg-brand-default` directly instead of reading them.
   Hover holds the tint rather than darkening: the row is already the answer to
   "where am I", and moving it on hover reads as a pending navigation. */
.sidenav .navbar-nav .nav-link.active,
.sidenav .navbar-nav .nav .nav-link.active {
  background-color: var(--ml-sidenav-item-active-bg) !important;
  background-image: none !important;
  color: var(--ml-sidenav-item-active-fg) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
}
.sidenav .navbar-nav .nav-link.active:hover,
.sidenav .navbar-nav .nav .nav-link.active:hover {
  background-color: var(--ml-sidenav-item-active-bg) !important;
  color: var(--ml-sidenav-item-active-fg) !important;
}

/* Category rows that expand. Whether these read as section labels or as menu
   rows is the identity's call, so only the caret is decided here. */
.sidenav .navbar-nav .nav-link[data-bs-toggle=collapse] {
  font-weight: var(--ml-font-weight-semibold) !important;
}
.sidenav .navbar-nav .nav-link[data-bs-toggle=collapse]::after {
  color: var(--ml-text-disabled) !important;
  font-size: var(--ml-font-size-n4);
}

.sidenav .navbar-nav > .nav-item > .collapse > .nav,
.sidenav .navbar-nav > .nav-item > .collapsing > .nav {
  padding-inline-start: 10px !important;
  gap: 2px;
  border-inline-start: var(--ml-border-width) solid var(--ml-border-weak);
  margin: 4px 0 4px 0;
}

/* User menu row */
.sidenav .navbar-nav .nav-link .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50% !important;
  box-shadow: none !important;
}

/* Row counters shown next to a menu item. `min-width` keeps single and double
   digits the same width, which stops the right edge of the column jittering as
   counts change. Fill and radius are the identity's - a pill that has to sit
   beside a brand-filled active row is not the same object as one beside a
   brand-tinted one. */
aside.sidebar-nav a.nav-link .rowCount.badge,
.sidenav .navbar-nav .nav-link .rowCount.badge {
  margin-inline-start: auto;
  min-width: 22px;
  font-size: var(--ml-font-size-n4) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
  letter-spacing: var(--ml-tracking-md);
  text-align: center;
  flex: initial !important;
}

/* The "Custom Color" preset reads the two tokens the settings screen writes.
   Their defaults are the ordinary sidebar colours, so these rules are inert
   until the colours are actually configured. */
aside.sidenav.navbar-vertical.customTheme {
  background: var(--ml-sidenav-bg) !important;
}
aside.sidenav.navbar-vertical.customTheme .navbar-nav .nav-link,
aside.sidenav.navbar-vertical.customTheme .navbar-nav .nav-link.text-white,
aside.sidenav.navbar-vertical.customTheme .navbar-nav .nav .nav-link {
  color: var(--ml-sidenav-fg) !important;
}
aside.sidenav.navbar-vertical.customTheme hr.horizontal {
  background-image: linear-gradient(90deg, transparent, var(--ml-sidenav-fg), transparent);
}

/* Dark and custom-coloured sidebars keep their background but adopt the shape. */
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav-link:hover,
aside.sidenav.navbar-vertical.customTheme .navbar-nav .nav-link:hover {
  background-color: var(--ml-alpha-light-050) !important;
}
aside.sidenav.navbar-vertical.bg-gradient-dark hr.horizontal,
aside.sidenav.navbar-vertical.customTheme hr.horizontal {
  border-color: var(--ml-alpha-light-100);
}

aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav-link,
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav-link.text-white,
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav .nav-link {
  color: var(--ml-alpha-light-800) !important;
}
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav-link:hover,
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav-link.text-white:hover,
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav .nav-link:hover {
  color: var(--ml-color-white) !important;
}
aside.sidenav.navbar-vertical.bg-gradient-dark .navbar-nav .nav-link:not(.active) .rowCount.badge {
  background: var(--ml-alpha-light-200) !important;
  color: var(--ml-color-white) !important;
}

/* The "White" preset stays white in both schemes, so its text must too */
aside.sidenav.navbar-vertical.bg-white {
  background: var(--ml-color-white) !important;
}
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav-link,
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav-link.text-white,
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav .nav-link {
  color: var(--ml-color-neutral-500) !important;
}
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav-link:hover,
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav-link.text-white:hover,
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav .nav-link:hover {
  background-color: var(--ml-color-neutral-100) !important;
  color: var(--ml-color-neutral-900) !important;
}
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav-link.active,
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav-link.text-white.active,
aside.sidenav.navbar-vertical.bg-white .navbar-nav .nav .nav-link.active {
  background-color: var(--ml-sidenav-item-active-bg) !important;
  color: var(--ml-sidenav-item-active-fg) !important;
}
aside.sidenav.navbar-vertical.bg-white hr.horizontal {
  border-color: var(--ml-color-neutral-200);
}

/* ── Content offset follows the new sidebar width ── */
@media (min-width: 1200px) {
  .sidenav.fixed-start + .main-content {
    margin-left: var(--ml-sidenav-width);
  }
  .sidenav.fixed-end + .main-content {
    margin-right: var(--ml-sidenav-width);
  }
  /* Mini rail. The selector has to out-specify the base panel rule above,
     which sets the full width with !important. */
  .g-sidenav-hidden aside.sidenav.navbar-vertical {
    width: var(--ml-sidenav-mini-width) !important;
    max-width: var(--ml-sidenav-mini-width) !important;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical .sidenav-header {
    padding: 0;
    justify-content: center;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical .sidenav-header .navbar-brand {
    justify-content: center;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical .navbar-nav .nav-link {
    justify-content: center;
    padding: 10px !important;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical {
    /* icons only — labels would be clipped mid-word */
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical .navbar-nav .nav-link .nav-link-text,
  .g-sidenav-hidden aside.sidenav.navbar-vertical .navbar-nav .nav-link .sidenav-normal,
  .g-sidenav-hidden aside.sidenav.navbar-vertical .navbar-nav .nav-link > span,
  .g-sidenav-hidden aside.sidenav.navbar-vertical .navbar-nav .nav-link .rowCount.badge,
  .g-sidenav-hidden aside.sidenav.navbar-vertical .sidenav-brand-name {
    display: none;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical {
    /* the caret of a collapsible category has nothing left to point at */
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical .navbar-nav .nav-link[data-bs-toggle=collapse]::after {
    display: none;
  }
  /* …and expand back on hover */
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover {
    width: var(--ml-sidenav-width) !important;
    max-width: var(--ml-sidenav-width) !important;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .sidenav-header {
    padding: 0 var(--ml-space-5);
    justify-content: flex-start;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .sidenav-header .navbar-brand {
    justify-content: flex-start;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .navbar-nav .nav-link {
    justify-content: flex-start;
    padding: 10px var(--ml-space-3) !important;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .navbar-nav .nav-link .nav-link-text,
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .navbar-nav .nav-link .sidenav-normal,
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .navbar-nav .nav-link > span,
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .sidenav-brand-name {
    display: block;
  }
  .g-sidenav-hidden aside.sidenav.navbar-vertical:hover .navbar-nav .nav-link .rowCount.badge {
    display: inline-block;
  }
  .g-sidenav-hidden .navbar-vertical.fixed-start + .main-content {
    margin-left: var(--ml-sidenav-mini-width);
  }
  .g-sidenav-hidden .navbar-vertical:hover.fixed-start + .main-content {
    margin-left: var(--ml-sidenav-width);
  }
  .g-sidenav-hidden.rtl .main-content,
  .g-sidenav-hidden .navbar-vertical.fixed-end + .main-content {
    margin-right: var(--ml-sidenav-mini-width) !important;
  }
  .g-sidenav-hidden.rtl .sidenav:hover + .main-content,
  .g-sidenav-hidden .navbar-vertical:hover.fixed-end + .main-content {
    margin-right: var(--ml-sidenav-width) !important;
  }
}
@media (max-width: 1199.98px) {
  .g-sidenav-show:not(.rtl) .sidenav {
    transform: translateX(calc(-1 * var(--ml-sidenav-width)));
  }
  .g-sidenav-show.rtl .sidenav {
    transform: translateX(var(--ml-sidenav-width));
  }
  .g-sidenav-show.g-sidenav-pinned .sidenav {
    transform: translateX(0);
  }
}
/* ── Horizontal navigation variant ── */
nav.horizontal-menu {
  margin: 0 !important;
  top: 0 !important;
  border-radius: 0 !important;
  background: var(--ml-bg-surface-1) !important;
  background-image: none !important;
  border-bottom: var(--ml-border-width) solid var(--ml-border-default) !important;
  box-shadow: none !important;
}
nav.horizontal-menu .container-fluid {
  min-height: var(--ml-navbar-height);
}
nav.horizontal-menu .navbar-brand-img {
  max-height: 40px;
}
nav.horizontal-menu .nav-link {
  border-radius: var(--ml-sidenav-item-radius) !important;
  padding: 10px 12px !important;
  font-size: var(--ml-font-size-base);
  font-weight: var(--ml-font-weight-medium);
  color: var(--ml-text-weak) !important;
}
nav.horizontal-menu .nav-link:hover {
  background: var(--ml-sidenav-item-hover-bg) !important;
  color: var(--ml-text-default) !important;
}
nav.horizontal-menu .nav-item.active .nav-link {
  border-radius: var(--ml-sidenav-item-radius) !important;
  background: var(--ml-sidenav-item-active-bg) !important;
  color: var(--ml-sidenav-item-active-fg) !important;
  font-weight: var(--ml-font-weight-semibold);
}
nav.horizontal-menu .dropdown-menu .responsive-menu-label.active {
  border-radius: var(--ml-sidenav-item-radius) !important;
}

/**
 * Melkart theme — top bar skeleton
 *
 * Identity-neutral. The header's inner layout - breadcrumb trail above the page
 * title, bordered square icon buttons on the trailing side - plus the content
 * canvas. Every value reads a token.
 *
 * What is NOT here: how the bar attaches to the page. Whether it is flush and
 * bordered, or a floating rounded card with a blur behind it, is composition,
 * in `presets/<name>/_navbar.scss`. The `position` and `z-index` stay here
 * because every identity wants the bar to survive a scroll; only its frame
 * differs.
 */
/* The content canvas. Its radius is the identity's: material-dashboard rounds
   it to sit beside a floating rail, and a flush rail wants it square. */
.main-content {
  background: var(--ml-page-bg) !important;
}

nav.navbar-main {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
  padding: 0 !important;
  background: var(--ml-navbar-bg) !important;
  background-image: none !important;
}
nav.navbar-main.with-bg, nav.navbar-main.blur {
  background: var(--ml-navbar-bg) !important;
}
nav.navbar-main > .container-fluid {
  display: flex;
  align-items: center;
  gap: var(--ml-space-5);
  min-height: var(--ml-navbar-height);
  padding: 0 var(--ml-gutter) !important;
}
nav.navbar-main #navbarBlur,
nav.navbar-main .navbar-collapse {
  margin: 0 !important;
}
nav.navbar-main .dropdown .dropdown-menu.show {
  top: 5px !important;
}

/* ── Breadcrumb + page title ── */
nav[aria-label=breadcrumb] {
  min-width: 0;
}
nav[aria-label=breadcrumb] .breadcrumb {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  gap: 2px;
}
nav[aria-label=breadcrumb] .breadcrumb-item,
nav[aria-label=breadcrumb] .breadcrumb-item.text-sm {
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-medium);
  letter-spacing: var(--ml-tracking-lg);
  color: var(--ml-text-disabled);
}
nav[aria-label=breadcrumb] .breadcrumb-item a,
nav[aria-label=breadcrumb] .breadcrumb-item.text-sm a {
  color: var(--ml-text-disabled) !important;
  opacity: 1 !important;
}
nav[aria-label=breadcrumb] .breadcrumb-item a:hover,
nav[aria-label=breadcrumb] .breadcrumb-item.text-sm a:hover {
  color: var(--ml-text-weak) !important;
}
nav[aria-label=breadcrumb] .breadcrumb-item.active,
nav[aria-label=breadcrumb] .breadcrumb-item.text-sm.active {
  color: var(--ml-text-weak);
}
nav[aria-label=breadcrumb] .breadcrumb-item + .breadcrumb-item::before,
nav[aria-label=breadcrumb] .breadcrumb-item.text-sm + .breadcrumb-item::before {
  color: var(--ml-text-disabled);
  opacity: 1;
}
nav[aria-label=breadcrumb] > h6 {
  margin-top: 2px !important;
  font-size: var(--ml-font-size-1);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-sm);
  color: var(--ml-text-default);
}
nav[aria-label=breadcrumb] > h6 i,
nav[aria-label=breadcrumb] > h6 [class*=material-icons],
nav[aria-label=breadcrumb] > h6 [class*=fa-],
nav[aria-label=breadcrumb] > h6 [class*=zmdi] {
  font-size: var(--ml-font-size-0);
  color: var(--ml-bg-brand-default);
}

/* ── Sidebar toggler ── */
.sidenav-toggler-line {
  background-color: var(--ml-text-default) !important;
  height: 2px !important;
  border-radius: 0 !important;
}

/* ── Trailing icon actions ── */
nav.navbar-main .navbar-nav {
  align-items: center;
  gap: 14px;
}
nav.navbar-main .navbar-nav > .nav-item {
  padding: 0 !important;
  min-height: 0 !important;
}
nav.navbar-main .navbar-nav > .nav-item > .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-card-radius) !important;
  background: var(--ml-bg-surface-1) !important;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-semibold);
  transition: border-color var(--ml-transition), background-color var(--ml-transition);
}
nav.navbar-main .navbar-nav > .nav-item > .nav-link:hover {
  border-color: var(--ml-text-default);
}
nav.navbar-main .navbar-nav > .nav-item > .nav-link i,
nav.navbar-main .navbar-nav > .nav-item > .nav-link [class*=fa-] {
  font-size: var(--ml-font-size-n1) !important;
}
nav.navbar-main .navbar-nav > .nav-item > .nav-link {
  /* text links (e.g. "Login") keep breathing room */
}
nav.navbar-main .navbar-nav > .nav-item > .nav-link:has(span) {
  padding: 0 12px !important;
}
nav.navbar-main .navbar-nav {
  /* the mobile burger and theme switch are not buttons */
}
nav.navbar-main .navbar-nav > .nav-item > .nav-link:has(.sidenav-toggler-inner) {
  border: 0;
  background: transparent;
  margin-inline-end: 10px;
}

/* Notification counters sit on the corner of the icon button, squared off */
.custom-system-notifications .notification-badge,
.inbox-notification-badge {
  top: -8px !important;
  inset-inline-start: auto !important;
  inset-inline-end: -8px !important;
  min-width: 18px;
  height: 18px;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: var(--ml-card-radius) !important;
  background: var(--ml-bg-danger-default) !important;
  color: var(--ml-color-white) !important;
  font-size: var(--ml-font-size-n4) !important;
  font-weight: var(--ml-font-weight-bold) !important;
  line-height: 18px !important;
}

/* Scheme switch becomes one of the square icon actions */
.theme-toggle-wrapper {
  --moon-size-size: 18px;
  width: 40px;
  max-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin-inline-start: 0 !important;
  justify-content: center;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-card-radius) !important;
  transition: border-color var(--ml-transition) !important;
}
.theme-toggle-wrapper:hover {
  border-color: var(--ml-text-default) !important;
}
.theme-toggle-wrapper .theme-toggle .sun {
  border-color: var(--ml-bg-surface-1);
}
.theme-toggle-wrapper .moon {
  background: var(--ml-bg-surface-1);
}

/* ── Language switcher ──
   The toggle is one of the square icon actions above and takes its whole frame
   from there, so what is left is the flag, the lettered stand-in for a flag the
   theme does not ship, and the caret. The menu is a plain `.dropdown-menu`,
   styled in `_overlays.scss`; only the active row is added here. */
.ml-lang__flag {
  flex: 0 0 auto;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  /* A hairline, because a third of the set has a white edge and would
     otherwise dissolve into the surface behind it. An outer shadow rather
     than a border: a border eats into the 20x15 and squashes the design. */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.ml-lang__badge {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 0 4px;
  border-radius: var(--ml-radius-xs);
  background: var(--ml-bg-strong);
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-n4);
  font-weight: var(--ml-font-weight-bold);
  line-height: 16px;
  text-align: center;
}

.ml-lang__label {
  overflow: hidden;
  max-width: 14ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Written out to the last ancestor on purpose: the icon rule inside
   `.navbar-nav > .nav-item > .nav-link` is `!important` at four classes, so a
   short selector here would lose the tie and the caret would come out at icon
   size. Same reason the media query below repeats the chain. */
nav.navbar-main .navbar-nav > .nav-item > .nav-link .ml-lang__caret {
  font-size: var(--ml-font-size-n4) !important;
  color: var(--ml-text-disabled) !important;
}

/* On a narrow navbar the label costs more than it is worth - the flag or the
   badge already says which language is on. */
@media (max-width: 575.98px) {
  nav.navbar-main .navbar-nav > .nav-item > .ml-lang__toggle .ml-lang__label,
  nav.navbar-main .navbar-nav > .nav-item > .ml-lang__toggle .ml-lang__caret {
    display: none !important;
  }
}
.ml-lang__menu {
  min-width: 208px;
}
.ml-lang__menu .ml-lang__label {
  flex: 1 1 auto;
  max-width: none;
}

/* Four classes, and the hover/focus pair spelled out, so the tint survives
   `.dropdown-menu .dropdown-item:hover` - which is emitted after this file. */
.ml-lang__menu .dropdown-item.ml-lang__item.active,
.ml-lang__menu .dropdown-item.ml-lang__item.active:hover,
.ml-lang__menu .dropdown-item.ml-lang__item.active:focus {
  background: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
}

.ml-lang__menu .dropdown-item.ml-lang__item .ml-lang__check {
  color: var(--ml-text-brand-default) !important;
}

/* ── User menu ──
   The way to the profile and out of the userview, for a page whose rail is not
   there to offer it - a home board configured flush, a userview with the
   sidebar hidden. Whether the bar carries one is
   `MelkartThemeBase.getNavbarUserMenu`'s decision, not this file's.

   The toggle is one of the square icon actions above and takes its frame from
   there; what is added here is the avatar, the name beside it and the caret.
   The name is the first thing to go when the bar runs out of width - see the
   breakpoint below - which is why the menu prints it again at its head. */
/* `.nav-link` is in the compound on purpose: the padding it is overriding comes
   from `.nav-link:has(span)` above, and `:has()` carries the weight of its
   argument - so a selector without it loses the tie and the avatar sits in 12px
   of padding it does not need. Same reason the media query below repeats it. */
nav.navbar-main .navbar-nav > .nav-item > .nav-link.ml-user__toggle {
  /* Tighter on the avatar's side than the 12px that rule gives a text action:
     a disc already carries its own optical padding. */
  padding-inline: 6px 12px !important;
  max-width: 220px;
}

.ml-user__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: var(--ml-navbar-avatar-size);
  height: var(--ml-navbar-avatar-size);
  border-radius: var(--ml-navbar-avatar-radius);
  object-fit: cover;
}

/* The stand-in for a userview that configured no user image: the initials on a
   brand tint, the same pair the inbox rows use for theirs. */
.ml-user__avatar--text {
  background: var(--ml-bg-brand-weakest);
  color: var(--ml-text-on-brand-weak);
  font-size: var(--ml-font-size-n3);
  font-weight: var(--ml-font-weight-bold);
  line-height: 1;
}

/* The one at the head of the menu, where there is room for it. Overriding the
   token rather than the two properties keeps size and shape in one place. */
.ml-user__avatar--lg {
  --ml-navbar-avatar-size: 40px;
  font-size: var(--ml-font-size-base);
}

.ml-user__name {
  overflow: hidden;
  max-width: 14ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Written out to the last ancestor for the same reason the language switcher's
   caret is: the icon rule inside `.navbar-nav > .nav-item > .nav-link` is
   `!important` at four classes. */
nav.navbar-main .navbar-nav > .nav-item > .nav-link .ml-user__caret {
  font-size: var(--ml-font-size-n4) !important;
  color: var(--ml-text-disabled) !important;
}

/* Where the bar starts competing for width - the burger, the page title, the
   inbox, the language, the scheme switch and this - the name and the caret go
   and the toggle is the 40px square every other action is. The avatar alone
   still says who is signed in, and the menu repeats the name at its head. */
@media (max-width: 767.98px) {
  nav.navbar-main .navbar-nav > .nav-item > .nav-link.ml-user__toggle {
    padding-inline: 0 !important;
  }
  nav.navbar-main .navbar-nav > .nav-item > .nav-link.ml-user__toggle .ml-user__name,
  nav.navbar-main .navbar-nav > .nav-item > .nav-link.ml-user__toggle .ml-user__caret {
    display: none !important;
  }
}
.ml-user__menu {
  min-width: 248px;
  /* A menu anchored to the last item on the bar has the whole page width to
     its leading side, and none to its trailing side. Bootstrap flips it; this
     is what stops it from being wider than the screen it flipped onto. */
  max-width: calc(100vw - 2 * var(--ml-gutter));
}

/* ── Who is signed in ──
   Not a menu row: nothing happens when it is clicked, so it is not styled as
   something that could be. */
.ml-user__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
}

.ml-user__identity-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.ml-user__identity-name {
  overflow: hidden;
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ml-user__identity-sub {
  overflow: hidden;
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-n4);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Rows ──
   Three classes, and hover/focus spelled out, so these survive
   `.dropdown-menu .dropdown-item:hover` - emitted after this file. */
.ml-user__menu .dropdown-item.ml-user__item i {
  width: 16px;
  color: var(--ml-text-weak);
  text-align: center;
}

.ml-user__menu .dropdown-item.ml-user__item.active,
.ml-user__menu .dropdown-item.ml-user__item.active:hover,
.ml-user__menu .dropdown-item.ml-user__item.active:focus {
  background: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
}
.ml-user__menu .dropdown-item.ml-user__item.active i,
.ml-user__menu .dropdown-item.ml-user__item.active:hover i,
.ml-user__menu .dropdown-item.ml-user__item.active:focus i {
  color: var(--ml-text-brand-default);
}

/* Signing out is the one row here that ends the session, so it is the one row
   that is not neutral. Coloured on hover rather than at rest: a permanently red
   row in a menu of four reads as an error, not as an exit. */
.ml-user__menu .dropdown-item.ml-user__item--logout:hover,
.ml-user__menu .dropdown-item.ml-user__item--logout:focus {
  background: var(--ml-bg-danger-weakest) !important;
  color: var(--ml-text-danger-default) !important;
}
.ml-user__menu .dropdown-item.ml-user__item--logout:hover i,
.ml-user__menu .dropdown-item.ml-user__item--logout:focus i {
  color: var(--ml-text-danger-default);
}

/* ── Global search bar in the navbar ── */
#globalSearchbarForm .input-group {
  gap: 8px;
}
#globalSearchbarForm .form-control {
  min-height: 40px !important;
  height: 40px !important;
}
#globalSearchbarForm .btn {
  height: 40px !important;
  margin: 0 !important;
}

/* ── Narrow screens ──
   The bar holds a burger, a breadcrumb trail with the page title under it, a
   search field and three or four icon buttons. That is more than fits, and what
   it did about it was wrap onto a second line, which doubled the height of the
   one element that is stuck to the top of every screen.

   So the bar sheds, in order of what it can afford to lose: the search field
   first (it has a menu entry of its own and is the only item here that is a
   whole task rather than a control), then the breadcrumb trail (the title under
   it names the same page, and a trail is for going back, which is what the
   browser and the drawer are for). The title stays and truncates: it is the
   only thing on the bar that says where you are. */
@media (max-width: 991.98px) {
  nav.navbar-main > .container-fluid {
    gap: var(--ml-space-3);
  }
  /* it has to be allowed to shrink before it can be told to truncate */
  nav.navbar-main nav[aria-label=breadcrumb] {
    flex: 1 1 auto;
    min-width: 0;
  }
  nav.navbar-main nav[aria-label=breadcrumb] > h6 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  nav.navbar-main #globalSearchbarForm {
    display: none;
  }
}
/* Bootstrap's own 24px inline padding on `.container-fluid` is a third of a
   360px screen once both sides are counted. The gutter token already shrank at
   this breakpoint; the container is pointed at it so the page keeps one
   left-hand edge instead of two. Deliberately not applied above this width:
   the desktop page is Bootstrap's and stays that way. */
@media (max-width: 767.98px) {
  .main-content > .container-fluid,
  .main-content .container-fluid.py-4 {
    padding-inline: var(--ml-gutter) !important;
  }
}
@media (max-width: 575.98px) {
  nav.navbar-main > .container-fluid {
    gap: var(--ml-space-2);
  }
  nav.navbar-main nav[aria-label=breadcrumb] .breadcrumb {
    display: none;
  }
  nav.navbar-main .navbar-nav {
    gap: var(--ml-space-2);
  }
  nav.navbar-main .navbar-nav > .nav-item > .nav-link:has(.sidenav-toggler-inner) {
    margin-inline-end: var(--ml-space-1);
  }
}
/* ── Page container ──
   The gutter is a token and shrinks with the breakpoint, so the padding here
   follows it without a media query of its own. */
.main-content > .container-fluid,
.container-fluid.py-4 {
  padding-inline: var(--ml-gutter) !important;
}

/**
 * Melkart theme — buttons
 *
 * One button recipe, driven entirely by `--ml-btn-*`: height, radius, padding,
 * gap, icon size, weight, tracking and casing all read tokens, so a preset
 * changes how a button looks without a rule of its own. That includes the
 * casing - Material's buttons are uppercase and say so through
 * `--ml-btn-transform`.
 *
 * The variants (primary filled, secondary bordered, tinted destructive) are
 * structural and shared: which colour carries which role is the semantic
 * layer's job, not this file's.
 *
 * Every button answers the pointer. This theme takes the base theme's lift and
 * glow away on hover (`transform: none`, `box-shadow: none`), which leaves
 * colour as the only feedback a button has - so a variant that does not change
 * colour on hover gives no feedback at all. Each variant below therefore states
 * its own hover, and the default hover above them catches whatever no variant
 * claims (`.btn-icon`, a plugin's own button, a bare `.btn` outside the scopes
 * Joget fills).
 *
 * Two of the roles below - save as draft, cancel - can only be recognised by
 * the id the form designer gave the element, and an id says nothing about what
 * the element is. `$control` is appended to each of them so those rules cannot
 * reach anything but a control; it is weightless, so the selector still scores
 * the (1,0,0) it needs to outrank the primary block.
 *
 * On reach: the geometry block below goes through `../_controls.scss`, so
 * `.btn`, `.form-button` and `.ml-button` are honoured page-wide - they are
 * class names that ask for a button - while the two bare `input[type=…]`
 * selectors only match inside the markup the theme owns, and `.ml-unstyled`
 * turns the whole thing off. The variant blocks further down are NOT escaped
 * on purpose: `.btn-danger` on an element is a statement that it is a
 * destructive button, so there is nothing to opt out of.
 *
 * On weight: `controls.buttons()` is the one recipe that asks for the weighted
 * opt-out, which puts the geometry block at (0,2,0). It has to: the two rules
 * it overrides - material-dashboard's `.btn:not([class*="waves-input-wrapper"])`
 * and the lift on `.btn:not([class*="btn-"], [class*="waves-input-wrapper"])` -
 * are (0,2,0) themselves, and a form button carries no `btn-*` class, so both
 * match it. At (0,1,0) this block emitted and lost: the shadow came back, the
 * casing stayed uppercase whatever `--ml-btn-transform` said, and `display`
 * stayed `inline-block`. The reasoning lives in `../_controls.scss`.
 *
 * On `!important`: material-dashboard forces `padding`, `border-radius` and
 * (on every primary-shaped selector) `background-color`, so those keep theirs.
 * Everything else here wins on weight plus order - this stylesheet is linked
 * after material-dashboard - and the `!important` was only making the theme
 * unoverridable.
 */
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *), .btn:not(.ml-unstyled, .ml-unstyled *), button.btn:not(.ml-unstyled, .ml-unstyled *), a.btn:not(.ml-unstyled, .ml-unstyled *), .form-button:not(.ml-unstyled, .ml-unstyled *), .waves-button-input:not(.ml-unstyled, .ml-unstyled *), .ml-button:not(.ml-unstyled, .ml-unstyled *) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ml-btn-gap-md);
  height: var(--ml-btn-height-md);
  min-height: var(--ml-btn-height-md);
  padding: 0 var(--ml-btn-padding-md) !important;
  border-radius: var(--ml-btn-radius-sm) !important;
  border: var(--ml-border-width) solid transparent;
  box-shadow: none;
  font-family: var(--ml-font-body);
  font-size: var(--ml-type-button-m-size);
  font-weight: var(--ml-type-button-weight);
  letter-spacing: var(--ml-btn-tracking);
  line-height: 1;
  text-transform: var(--ml-btn-transform);
  cursor: pointer;
  transition: background-color var(--ml-transition), border-color var(--ml-transition), color var(--ml-transition);
  /* `!important` on both: material-dashboard lifts and shadows a hovered
     button from `.btn-primary:hover` and friends, and `.btn:focus` sets
     `box-shadow: initial !important`. */
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *):active, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *):active, .btn:not(.ml-unstyled, .ml-unstyled *):hover, .btn:not(.ml-unstyled, .ml-unstyled *):focus, .btn:not(.ml-unstyled, .ml-unstyled *):active, button.btn:not(.ml-unstyled, .ml-unstyled *):hover, button.btn:not(.ml-unstyled, .ml-unstyled *):focus, button.btn:not(.ml-unstyled, .ml-unstyled *):active, a.btn:not(.ml-unstyled, .ml-unstyled *):hover, a.btn:not(.ml-unstyled, .ml-unstyled *):focus, a.btn:not(.ml-unstyled, .ml-unstyled *):active, .form-button:not(.ml-unstyled, .ml-unstyled *):hover, .form-button:not(.ml-unstyled, .ml-unstyled *):focus, .form-button:not(.ml-unstyled, .ml-unstyled *):active, .waves-button-input:not(.ml-unstyled, .ml-unstyled *):hover, .waves-button-input:not(.ml-unstyled, .ml-unstyled *):focus, .waves-button-input:not(.ml-unstyled, .ml-unstyled *):active, .ml-button:not(.ml-unstyled, .ml-unstyled *):hover, .ml-button:not(.ml-unstyled, .ml-unstyled *):focus, .ml-button:not(.ml-unstyled, .ml-unstyled *):active {
  transform: none !important;
  box-shadow: none !important;
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *) i,
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *) i,
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], .btn:not(.ml-unstyled, .ml-unstyled *) i,
.btn:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
.btn:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
.btn:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], button.btn:not(.ml-unstyled, .ml-unstyled *) i,
button.btn:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
button.btn:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
button.btn:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], a.btn:not(.ml-unstyled, .ml-unstyled *) i,
a.btn:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
a.btn:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
a.btn:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], .form-button:not(.ml-unstyled, .ml-unstyled *) i,
.form-button:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
.form-button:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
.form-button:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], .waves-button-input:not(.ml-unstyled, .ml-unstyled *) i,
.waves-button-input:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
.waves-button-input:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
.waves-button-input:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi], .ml-button:not(.ml-unstyled, .ml-unstyled *) i,
.ml-button:not(.ml-unstyled, .ml-unstyled *) [class*=fa-],
.ml-button:not(.ml-unstyled, .ml-unstyled *) [class*=material-icons],
.ml-button:not(.ml-unstyled, .ml-unstyled *) [class*=zmdi] {
  font-size: var(--ml-btn-icon-md);
  margin: 0 !important;
}

.row_action :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *), .row_action :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *), .row_action .btn:not(.ml-unstyled, .ml-unstyled *), .row_action button.btn:not(.ml-unstyled, .ml-unstyled *), .row_action a.btn:not(.ml-unstyled, .ml-unstyled *), .row_action .form-button:not(.ml-unstyled, .ml-unstyled *), .row_action .waves-button-input:not(.ml-unstyled, .ml-unstyled *), .row_action .ml-button:not(.ml-unstyled, .ml-unstyled *) {
  height: var(--ml-btn-height-sm) !important;
  min-height: var(--ml-btn-height-sm) !important;
}

.btn.btn-lg,
.btn-lg {
  gap: var(--ml-btn-gap-lg);
  height: var(--ml-btn-height-lg);
  min-height: var(--ml-btn-height-lg);
  padding: 0 var(--ml-btn-padding-lg) !important;
  border-radius: var(--ml-btn-radius-lg) !important;
  font-size: var(--ml-type-button-l-size);
}

.btn.btn-sm,
.btn-sm {
  gap: var(--ml-btn-gap-sm);
  height: var(--ml-btn-height-sm);
  min-height: var(--ml-btn-height-sm);
  padding: 0 var(--ml-btn-padding-sm) !important;
  border-radius: var(--ml-btn-radius-sm) !important;
  font-size: var(--ml-type-button-s-size);
}
.btn.btn-sm i,
.btn.btn-sm [class*=fa-],
.btn.btn-sm [class*=material-icons],
.btn.btn-sm [class*=zmdi],
.btn-sm i,
.btn-sm [class*=fa-],
.btn-sm [class*=material-icons],
.btn-sm [class*=zmdi] {
  font-size: 16px;
}

.btn.btn-xs {
  height: var(--ml-control-height-xs);
  min-height: var(--ml-control-height-xs);
  padding: 0 10px !important;
  font-size: var(--ml-font-size-n4);
}

/* ── Default hover ──
   The fallback every variant below overrides. It only moves the two properties
   a variant always restates - background and border - never the text colour,
   because the filled variants set their foreground once and not again on hover;
   claiming `color` here would turn the label of a hovered green button dark.

   On the weight: `:where()` drops the selector list to zero, so this rule scores
   (0,2,0) - one for `:hover`, one for the most specific argument of `:not()`.
   Every variant hover below is at least (0,2,0) as well and is emitted after it,
   so each of them still owns its own hover. `.btn-link` and disabled buttons are
   excluded outright: one has no surface to shade, the other must not react. */
:where(.btn, button.btn, a.btn, .form-button, .ml-button, input[type=submit],
input[type=button], .waves-button-input):not(:disabled, .disabled, .btn-link,
.ml-unstyled, .ml-unstyled *):hover {
  background-color: var(--ml-btn-secondary-bg-hover) !important;
  border-color: var(--ml-btn-secondary-border-hover) !important;
}

/* ── Primary ──
   The last three selectors are here because that is how Joget itself reads a
   button with no variant class. Three of its stylesheets say the same thing -
   `#content .btn:not([class*="btn-"])` in userview8.css, `.form-cell .btn:not(...)`
   in form8.css, `.dataList .actions .btn:not(...)` in datalist8.css - and all
   three fill it with `--theme-button-bg`, a variable this theme does not set,
   with no `:hover` rule anywhere. So every button Joget renders bare - the
   datalist's top actions, a form's link buttons, both
   `<button class="form-button btn button">` - painted itself Bootstrap blue and
   then sat there when the pointer arrived. `input.form-button` used to be
   listed alone, which is why the submit input was the one button that behaved.

   Joget's three scopes are repeated rather than collapsed to a bare `.btn`, so
   this repaints what Joget paints and nothing else: a bare `.btn` outside them
   (a navbar toggle, an icon button in a plugin) is left alone. `:where()` keeps
   the scope weightless at (0,2,0) so the variants below still settle by order,
   and the two exclusions keep the rule off every one of them - each carries
   either a `btn-*` or a `bg-gradient-*` class. */
.btn.btn-primary,
.btn.bg-gradient-primary,
.btn.bg-gradient-dark,
.btn.btn-dark,
.form-button,
input[type=submit],
.waves-button-input,
:where(#content, .form-cell, .dataList .actions) .btn:not([class*=btn-], [class*=bg-gradient], .ml-unstyled, .ml-unstyled *) {
  background-color: var(--ml-btn-primary-bg) !important;
  background-image: none !important;
  border-color: var(--ml-btn-primary-bg) !important;
  color: var(--ml-btn-primary-fg) !important;
  display: flex;
  border-radius: var(--ml-btn-radius-sm) !important;
}
.btn.btn-primary:hover, .btn.btn-primary:focus,
.btn.bg-gradient-primary:hover,
.btn.bg-gradient-primary:focus,
.btn.bg-gradient-dark:hover,
.btn.bg-gradient-dark:focus,
.btn.btn-dark:hover,
.btn.btn-dark:focus,
.form-button:hover,
.form-button:focus,
input[type=submit]:hover,
input[type=submit]:focus,
.waves-button-input:hover,
.waves-button-input:focus,
:where(#content, .form-cell, .dataList .actions) .btn:not([class*=btn-], [class*=bg-gradient], .ml-unstyled, .ml-unstyled *):hover,
:where(#content, .form-cell, .dataList .actions) .btn:not([class*=btn-], [class*=bg-gradient], .ml-unstyled, .ml-unstyled *):focus {
  background-color: var(--ml-btn-primary-bg-hover) !important;
  border-color: var(--ml-btn-primary-bg-hover) !important;
  color: var(--ml-btn-primary-fg) !important;
}
.btn.btn-primary:active,
.btn.bg-gradient-primary:active,
.btn.bg-gradient-dark:active,
.btn.btn-dark:active,
.form-button:active,
input[type=submit]:active,
.waves-button-input:active,
:where(#content, .form-cell, .dataList .actions) .btn:not([class*=btn-], [class*=bg-gradient], .ml-unstyled, .ml-unstyled *):active {
  background-color: var(--ml-btn-primary-bg-down) !important;
  border-color: var(--ml-btn-primary-bg-down) !important;
  color: var(--ml-btn-primary-fg) !important;
}

/* ── Secondary / neutral ──
   Save as draft is here by id, not by class: Joget renders it as
   `<input class="form-button btn button" type="submit">`, exactly like the
   submit next to it, so nothing in the markup says it is the quieter of the
   two. It is the secondary action of a form under every identity, which makes
   it a role assignment and this the file that owns it. The id also carries the
   rule past the primary block above, whose heaviest selector for that element
   is (0,2,1) to this one's (1,0,0).

   Three ids because the element is identified by the one the form designer
   gave it: `draft` is `SaveAsDraftButton.DEFAULT_ID`, the other two are what
   the apps this theme ships with use.

   The waves wrapper is matched too. Joget wraps a form button in
   `.waves-input-wrapper.btn`, which paints a filled background of its own
   behind the input - restyling only the input leaves a brand-coloured rim
   around a neutral button. */
.btn.btn-secondary,
.btn.btn-light,
.btn.btn-white,
.btn.bg-gradient-secondary,
.btn.bg-gradient-light,
.btn.btn-outline-primary,
.btn.btn-outline-secondary,
.btn.btn-outline-dark,
.form-button.form-button-secondary,
#draft:where(.btn, .form-button, button, input),
#saveAsDraft:where(.btn, .form-button, button, input),
#customSaveAsDraft:where(.btn, .form-button, button, input),
.waves-input-wrapper:has(> #draft),
.waves-input-wrapper:has(> #saveAsDraft),
.waves-input-wrapper:has(> #customSaveAsDraft) {
  background-color: var(--ml-btn-secondary-bg) !important;
  background-image: none !important;
  border: var(--ml-border-width) solid var(--ml-btn-secondary-border) !important;
  color: var(--ml-btn-secondary-fg) !important;
}
.btn.btn-secondary:hover, .btn.btn-secondary:focus,
.btn.btn-light:hover,
.btn.btn-light:focus,
.btn.btn-white:hover,
.btn.btn-white:focus,
.btn.bg-gradient-secondary:hover,
.btn.bg-gradient-secondary:focus,
.btn.bg-gradient-light:hover,
.btn.bg-gradient-light:focus,
.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus,
.btn.btn-outline-dark:hover,
.btn.btn-outline-dark:focus,
.form-button.form-button-secondary:hover,
.form-button.form-button-secondary:focus,
#draft:where(.btn, .form-button, button, input):hover,
#draft:where(.btn, .form-button, button, input):focus,
#saveAsDraft:where(.btn, .form-button, button, input):hover,
#saveAsDraft:where(.btn, .form-button, button, input):focus,
#customSaveAsDraft:where(.btn, .form-button, button, input):hover,
#customSaveAsDraft:where(.btn, .form-button, button, input):focus,
.waves-input-wrapper:has(> #draft):hover,
.waves-input-wrapper:has(> #draft):focus,
.waves-input-wrapper:has(> #saveAsDraft):hover,
.waves-input-wrapper:has(> #saveAsDraft):focus,
.waves-input-wrapper:has(> #customSaveAsDraft):hover,
.waves-input-wrapper:has(> #customSaveAsDraft):focus {
  background-color: var(--ml-btn-secondary-bg-hover) !important;
  border-color: var(--ml-btn-secondary-border-hover) !important;
  color: var(--ml-btn-secondary-fg) !important;
}
.btn.btn-secondary:active,
.btn.btn-light:active,
.btn.btn-white:active,
.btn.bg-gradient-secondary:active,
.btn.bg-gradient-light:active,
.btn.btn-outline-primary:active,
.btn.btn-outline-secondary:active,
.btn.btn-outline-dark:active,
.form-button.form-button-secondary:active,
#draft:where(.btn, .form-button, button, input):active,
#saveAsDraft:where(.btn, .form-button, button, input):active,
#customSaveAsDraft:where(.btn, .form-button, button, input):active,
.waves-input-wrapper:has(> #draft):active,
.waves-input-wrapper:has(> #saveAsDraft):active,
.waves-input-wrapper:has(> #customSaveAsDraft):active {
  background-color: var(--ml-btn-secondary-bg-down) !important;
  border-color: var(--ml-btn-secondary-border-hover) !important;
  color: var(--ml-btn-secondary-fg) !important;
}

/* ── Ghost ──
   Cancel: the one action in a form footer that leaves without doing anything,
   so it carries no fill and no border until it is hovered. Same reasoning as
   save as draft above - Joget renders it as a bare `.form-button`, the role is
   the same under every identity, so the role is assigned here rather than in a
   preset. It used to be assigned in `presets/access/_form.scss`, where it was
   both a value in a layout file and a hover the button never got. */
#cancel:where(.btn, .form-button, button, input),
#customCancel:where(.btn, .form-button, button, input),
.waves-input-wrapper:has(> #cancel),
.waves-input-wrapper:has(> #customCancel) {
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  color: var(--ml-btn-ghost-fg) !important;
}
#cancel:where(.btn, .form-button, button, input):hover, #cancel:where(.btn, .form-button, button, input):focus,
#customCancel:where(.btn, .form-button, button, input):hover,
#customCancel:where(.btn, .form-button, button, input):focus,
.waves-input-wrapper:has(> #cancel):hover,
.waves-input-wrapper:has(> #cancel):focus,
.waves-input-wrapper:has(> #customCancel):hover,
.waves-input-wrapper:has(> #customCancel):focus {
  background-color: var(--ml-btn-ghost-bg-hover) !important;
  border-color: transparent !important;
  color: var(--ml-btn-ghost-fg-hover) !important;
}

/* ── Status buttons ── */
/* Destructive. Tinted and outlined, never filled - which is what the token
   layer has always said and what the datalist's row actions have always done,
   while this rule filled it solid red and left every `--ml-btn-danger-*` token
   without a consumer. The reason is in `tokens/_components.scss`: brand/500 and
   danger/500 are 1.5 degrees apart in OKLCH, so at a 16px delete icon a filled
   destructive button and a filled primary one are the same colour. Treatment
   has to carry the distinction because hue cannot. */
.btn.btn-danger,
.btn.bg-gradient-danger {
  background-color: var(--ml-btn-danger-bg) !important;
  background-image: none !important;
  border-color: var(--ml-btn-danger-border) !important;
  color: var(--ml-btn-danger-fg) !important;
}
.btn.btn-danger:hover, .btn.btn-danger:focus,
.btn.bg-gradient-danger:hover,
.btn.bg-gradient-danger:focus {
  background-color: var(--ml-btn-danger-bg-hover) !important;
  border-color: var(--ml-btn-danger-border) !important;
  color: var(--ml-btn-danger-fg) !important;
}
.btn.btn-danger:active,
.btn.bg-gradient-danger:active {
  background-color: var(--ml-btn-danger-bg-down) !important;
}

/* The one filled destructive: the confirm button of a destructive dialog, where
   it is the sole red on screen and the tinted treatment would read as too
   tentative for what it does. */
.swal2-popup .btn.btn-danger,
.swal2-popup .swal2-confirm.btn-danger,
.ui-dialog .btn.btn-danger-solid,
.btn.btn-danger-solid {
  background-color: var(--ml-btn-danger-solid-bg) !important;
  border-color: var(--ml-btn-danger-solid-bg) !important;
  color: var(--ml-btn-danger-solid-fg) !important;
}
.swal2-popup .btn.btn-danger:hover, .swal2-popup .btn.btn-danger:focus,
.swal2-popup .swal2-confirm.btn-danger:hover,
.swal2-popup .swal2-confirm.btn-danger:focus,
.ui-dialog .btn.btn-danger-solid:hover,
.ui-dialog .btn.btn-danger-solid:focus,
.btn.btn-danger-solid:hover,
.btn.btn-danger-solid:focus {
  background-color: var(--ml-btn-danger-solid-bg-hover) !important;
  border-color: var(--ml-btn-danger-solid-bg-hover) !important;
  color: var(--ml-btn-danger-solid-fg) !important;
}

.btn.btn-success,
.btn.bg-gradient-success {
  background-color: var(--ml-bg-success-default) !important;
  background-image: none !important;
  border-color: var(--ml-bg-success-default) !important;
  color: var(--ml-color-white) !important;
}
.btn.btn-success:hover, .btn.btn-success:focus,
.btn.bg-gradient-success:hover,
.btn.bg-gradient-success:focus {
  background-color: var(--ml-bg-success-hover) !important;
  border-color: var(--ml-border-success-hover) !important;
  color: var(--ml-color-white) !important;
}

.btn.btn-warning,
.btn.bg-gradient-warning {
  background-color: var(--ml-bg-warning-default) !important;
  background-image: none !important;
  border-color: var(--ml-bg-warning-default) !important;
  color: var(--ml-text-default) !important;
}
.btn.btn-warning:hover, .btn.btn-warning:focus,
.btn.bg-gradient-warning:hover,
.btn.bg-gradient-warning:focus {
  background-color: var(--ml-bg-warning-hover) !important;
  border-color: var(--ml-bg-warning-hover) !important;
  color: var(--ml-text-default) !important;
}

.btn.btn-info,
.btn.bg-gradient-info {
  background-color: var(--ml-bg-info-default) !important;
  background-image: none !important;
  border-color: var(--ml-bg-info-default) !important;
  color: var(--ml-color-white) !important;
}
.btn.btn-info:hover, .btn.btn-info:focus,
.btn.bg-gradient-info:hover,
.btn.bg-gradient-info:focus {
  background-color: var(--ml-bg-info-hover) !important;
  border-color: var(--ml-bg-info-hover) !important;
  color: var(--ml-color-white) !important;
}

.btn.btn-link {
  height: auto;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ml-bg-brand-default) !important;
  text-transform: none;
  /* No surface to shade - a link button reacts in the text, which is why it is
     excluded from the default hover above. Restated as transparent anyway so
     nothing further down the cascade can hand it a background. */
}
.btn.btn-link:hover, .btn.btn-link:focus {
  background: transparent !important;
  color: var(--ml-text-default) !important;
}

/* `[disabled]` beside `:disabled` is a weight fix, not a second meaning: the
   pseudo-class scores as an attribute, which leaves `.btn:disabled` at (0,1,1),
   under the geometry block above - a disabled button would keep its `pointer`
   cursor. `.btn[disabled]` scores (0,2,0) and matches the same element. */
.btn:disabled,
.btn[disabled],
.btn.disabled,
.form-button:disabled,
.form-button[disabled] {
  opacity: 1 !important;
  background-color: var(--ml-bg-surface-2) !important;
  border-color: var(--ml-border-default) !important;
  color: var(--ml-text-disabled) !important;
  cursor: not-allowed;
}

/* Icon-only buttons stay square */
.btn.btn-icon-only,
.btn.btn-icon {
  width: var(--ml-btn-height-md);
  min-width: var(--ml-btn-height-md);
  padding: 0 !important;
}

/* `#section-actions` is the form card's footer and lives in `_form.scss`,
   which owns the card it belongs to. It was styled in both files. */
/**
 * Melkart theme — form controls
 *
 * One control recipe everywhere the theme owns a control, driven by
 * `--ml-input-*`: surface, border, radius, height, padding, and a border-colour
 * change on focus rather than a glow. Identity-neutral - a preset restyles every
 * control in the theme by moving those tokens.
 *
 * "Everywhere the theme owns a control" is the load-bearing half of that
 * sentence, and it is defined once, in `../_controls.scss`: inside Joget's
 * form, list, profile and dialog markup, plus anything carrying `.form-control`
 * or `.ml-input`, minus anything under `.ml-unstyled`. This file used to say
 * `input, select, textarea, .form-control` with `!important` on every line,
 * which repainted every control on the page - a plugin's own included - and
 * left no way to paint it back. Read that file before widening a selector here,
 * and do not reintroduce `!important` without naming the rule it is fighting:
 * bootstrap and material-dashboard set none on `.form-control`, so order plus
 * one class of weight already wins.
 */
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)), .form-control:where(:not(.ml-unstyled, .ml-unstyled *)), .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)) {
  min-height: var(--ml-control-height);
  padding: 0 var(--ml-input-padding-sm);
  background: var(--ml-input-bg);
  background-image: none;
  border: var(--ml-border-width) solid var(--ml-input-border);
  border-radius: var(--ml-input-radius-base);
  box-shadow: none;
  color: var(--ml-input-fg);
  font-family: var(--ml-font-body);
  font-size: var(--ml-type-input-s-size);
  line-height: var(--ml-type-input-s-line);
  transition: border-color var(--ml-transition);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, .form-control:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder, .ml-input:where(:not(.ml-unstyled, .ml-unstyled *))::placeholder {
  color: var(--ml-input-placeholder);
  opacity: 1;
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, .form-control:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover, .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):hover {
  border-color: var(--ml-input-border-hover);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, .form-control:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, .form-control:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active {
  border-color: var(--ml-input-border-focus);
  box-shadow: none;
  outline: none;
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *))[disabled], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *))[disabled], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *))[disabled], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *))[disabled], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *))[disabled], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *))[disabled], .form-control:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), .form-control:where(:not(.ml-unstyled, .ml-unstyled *))[disabled], .ml-input:where(:not(.ml-unstyled, .ml-unstyled *))[readonly]:not(.hasDatepicker), .ml-input:where(:not(.ml-unstyled, .ml-unstyled *))[disabled] {
  background: var(--ml-input-bg-disabled);
  border-color: var(--ml-input-border);
  color: var(--ml-text-weak);
  cursor: default;
}

:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)), textarea.form-control:where(:not(.ml-unstyled, .ml-unstyled *)), textarea.ml-input:where(:not(.ml-unstyled, .ml-unstyled *)) {
  padding: var(--ml-space-3) var(--ml-input-padding-sm);
  line-height: 1.6;
  resize: vertical;
}

:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)), select.form-control:where(:not(.ml-unstyled, .ml-unstyled *)), select.ml-input:where(:not(.ml-unstyled, .ml-unstyled *)) {
  padding-inline-end: 34px;
}

/* No `body.dark-version` block any more. It used to restate surface, border and
   ink for dark mode, over a `scss/form.scss` rule that dropped input borders
   entirely; both are gone and `--ml-input-bg` / `--ml-input-border` flip on
   their own, which is what a token is for. The one visible change is that a
   form field in dark mode now sits on `--ml-input-bg` (neutral-800) rather than
   the page colour (neutral-900), matching the list filters. */
/* ── Labels ── */
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) label:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .label:where(:not(.ml-unstyled, .ml-unstyled *)), .form-label:where(:not(.ml-unstyled, .ml-unstyled *)), .ml-label:where(:not(.ml-unstyled, .ml-unstyled *)) {
  color: var(--ml-text-weak);
  font-family: var(--ml-font-body);
  font-size: var(--ml-type-caption-s-size);
  line-height: var(--ml-type-caption-s-line);
  font-weight: var(--ml-type-caption-weight);
  letter-spacing: var(--ml-type-caption-s-tracking);
}

.form-cell > .label,
.form-cell > label,
.form-cell > .form-cell-value > label,
.subform-cell > .label,
.subform-cell > label {
  color: var(--ml-form-label-fg) !important;
  font-size: var(--ml-type-caption-s-size);
  line-height: var(--ml-type-caption-s-line);
  font-weight: var(--ml-type-caption-weight);
}

/* Mandatory markers */
.form-cell-validator input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)), .form-cell-validator select:where(:not(.ml-unstyled, .ml-unstyled *)), .form-cell-validator textarea:where(:not(.ml-unstyled, .ml-unstyled *)), .form-cell-validator .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)), .form-cell-validator .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)), .form-cell-validator .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell-validator .form-control:where(:not(.ml-unstyled, .ml-unstyled *)), .form-cell-validator .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator select:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator textarea:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator .form-control:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell-validator .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) select:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) textarea:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) .form-control:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> .label .form-error-message) .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) select:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) textarea:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) .form-control:where(:not(.ml-unstyled, .ml-unstyled *)),
.form-cell:has(> label .form-error-message) .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) select:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) textarea:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) .form-control:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> .label .form-error-message) .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) select:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) textarea:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) .form-control:where(:not(.ml-unstyled, .ml-unstyled *)),
.subform-cell:has(> label .form-error-message) .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)) {
  border-color: var(--ml-input-border-error) !important;
}

.form-error-message {
  color: var(--ml-bg-danger-default) !important;
  font-size: var(--ml-type-caption-s-size);
  line-height: var(--ml-type-caption-s-line);
  font-weight: var(--ml-type-caption-weight);
}

/* ── Checkboxes & radios ──
   The shape itself - the appearance reset that replaces the native control with
   a drawn box - is in `scss/form.scss`, scoped the same way. */
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)) {
  border-color: var(--ml-input-border);
  color: var(--ml-bg-brand-default);
  transition: border-color var(--ml-transition);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)):checked, :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)):checked {
  border-color: var(--ml-bg-brand-default);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *))[type=checkbox], :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *))[type=checkbox] {
  border-radius: var(--ml-input-radius-base);
}
:where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=checkbox]:where(:not(.ml-unstyled, .ml-unstyled *)):hover:not(:disabled), :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=radio]:where(:not(.ml-unstyled, .ml-unstyled *)):hover:not(:disabled) {
  border-color: var(--ml-bg-brand-default);
}

/* ── Chosen / select2 ──
   Both widgets carry a class of their own, so they are opt-in by name and need
   no scope: a `.chosen-container` is a chosen dropdown wherever it is. */
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) {
  font-family: var(--ml-font-body);
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-single,
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-choices {
  display: flex !important;
  align-items: center;
  background-image: none !important;
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-single span,
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-choices span {
  font-size: var(--ml-font-size-base);
  color: var(--ml-text-default);
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-drop {
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-input-radius-base) !important;
  background: var(--ml-bg-surface-1) !important;
  box-shadow: none !important;
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-results li {
  padding: 9px 12px;
  font-size: var(--ml-font-size-label);
  color: var(--ml-text-default);
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-results li.highlighted {
  background: var(--ml-page-bg) !important;
  background-image: none !important;
  color: var(--ml-text-default) !important;
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-results li.result-selected {
  background: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
  font-weight: var(--ml-font-weight-semibold);
}
.chosen-container:where(:not(.ml-unstyled, .ml-unstyled *)) .chosen-search input[type=text] {
  min-height: var(--ml-control-height-sm) !important;
  background-image: none !important;
}

.chosen-container-active .chosen-choices,
.chosen-container-active .chosen-single {
  border-color: var(--ml-bg-brand-default) !important;
  box-shadow: none !important;
}

.select2-container--default .select2-selection--single {
  /* Was also stated in `scss/melkart-global-style.scss`, which set a 36px
     height of its own; that block is gone and this one owns the widget. */
  display: flex !important;
  align-items: center;
  height: var(--ml-control-height) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ml-text-default) !important;
  line-height: 1.4 !important;
  padding: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
}

.select2-dropdown {
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-input-radius-base) !important;
  box-shadow: none !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--ml-page-bg) !important;
  color: var(--ml-text-default) !important;
}

/* ── File upload ── */
.form-fileupload .dz-default,
.form-fileupload .dz-message,
.dropzone .dz-default,
.dropzone .dz-message,
.file-upload-container .dz-default,
.file-upload-container .dz-message {
  border: var(--ml-border-width) dashed var(--ml-input-border) !important;
  border-radius: var(--ml-input-radius-base) !important;
  background: var(--ml-bg-surface-2) !important;
  color: var(--ml-text-weak) !important;
}

.file-item,
.filelist,
.form-fileupload .file {
  border-radius: var(--ml-input-radius-base) !important;
}

/* ── Datepicker ── */
#ui-datepicker-div,
.ui-datepicker {
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-input-radius-base) !important;
  background: var(--ml-bg-surface-1) !important;
  box-shadow: none !important;
  font-family: var(--ml-font-body) !important;
}
#ui-datepicker-div .ui-datepicker-header,
.ui-datepicker .ui-datepicker-header {
  background: var(--ml-bg-surface-2) !important;
  border: 0 !important;
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak) !important;
  border-radius: 0 !important;
  color: var(--ml-text-default) !important;
  font-weight: var(--ml-font-weight-semibold);
}
#ui-datepicker-div td a,
#ui-datepicker-div td span,
.ui-datepicker td a,
.ui-datepicker td span {
  border-radius: var(--ml-input-radius-base) !important;
  font-size: var(--ml-font-size-label);
}
#ui-datepicker-div .ui-state-active,
#ui-datepicker-div .ui-datepicker-current-day a,
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-datepicker-current-day a {
  background: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand) !important;
}
#ui-datepicker-div .ui-datepicker-today a,
.ui-datepicker .ui-datepicker-today a {
  background: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
}

/**
 * Melkart theme — form skeleton
 *
 * Identity-neutral. This file owns the MECHANICS of a form: how a section's
 * title bar is laid out, that a field stacks its label above its control, how
 * an option list flows, what the action row does with its children. It owns no
 * frame, no divider and no title treatment - which identity a form belongs to
 * decides those, in `presets/<name>/_form.scss`.
 *
 * The line is drawn at composition, not at "is it a value". A section title's
 * type is inseparable from its frame: 12px uppercase weak works BECAUSE it is a
 * divider inside one card, and 18px dark works BECAUSE it heads a card of its
 * own. Splitting the two across layers would mean neither file could be read on
 * its own, so the preset owns both.
 */
.form-section,
.subform-section,
.userProfile-body-content .form fieldset {
  padding: 0 !important;
}
.form-section > .form-section-title,
.form-section > .subform-section-title,
.form-section > legend,
.subform-section > .form-section-title,
.subform-section > .subform-section-title,
.subform-section > legend,
.userProfile-body-content .form fieldset > .form-section-title,
.userProfile-body-content .form fieldset > .subform-section-title,
.userProfile-body-content .form fieldset > legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ml-space-3);
  width: 100%;
  margin: 0 !important;
  /* Frame and type are the preset's. */
  line-height: 1.35;
}
.form-section > .form-section-title [class*=material-icons],
.form-section > .form-section-title [class*=fa-],
.form-section > .form-section-title [class*=zmdi],
.form-section > .form-section-title > i,
.form-section > .subform-section-title [class*=material-icons],
.form-section > .subform-section-title [class*=fa-],
.form-section > .subform-section-title [class*=zmdi],
.form-section > .subform-section-title > i,
.form-section > legend [class*=material-icons],
.form-section > legend [class*=fa-],
.form-section > legend [class*=zmdi],
.form-section > legend > i,
.subform-section > .form-section-title [class*=material-icons],
.subform-section > .form-section-title [class*=fa-],
.subform-section > .form-section-title [class*=zmdi],
.subform-section > .form-section-title > i,
.subform-section > .subform-section-title [class*=material-icons],
.subform-section > .subform-section-title [class*=fa-],
.subform-section > .subform-section-title [class*=zmdi],
.subform-section > .subform-section-title > i,
.subform-section > legend [class*=material-icons],
.subform-section > legend [class*=fa-],
.subform-section > legend [class*=zmdi],
.subform-section > legend > i,
.userProfile-body-content .form fieldset > .form-section-title [class*=material-icons],
.userProfile-body-content .form fieldset > .form-section-title [class*=fa-],
.userProfile-body-content .form fieldset > .form-section-title [class*=zmdi],
.userProfile-body-content .form fieldset > .form-section-title > i,
.userProfile-body-content .form fieldset > .subform-section-title [class*=material-icons],
.userProfile-body-content .form fieldset > .subform-section-title [class*=fa-],
.userProfile-body-content .form fieldset > .subform-section-title [class*=zmdi],
.userProfile-body-content .form fieldset > .subform-section-title > i,
.userProfile-body-content .form fieldset > legend [class*=material-icons],
.userProfile-body-content .form fieldset > legend [class*=fa-],
.userProfile-body-content .form fieldset > legend [class*=zmdi],
.userProfile-body-content .form fieldset > legend > i {
  font-size: var(--ml-font-size-0);
  color: var(--ml-bg-brand-default);
}
.form-section > .form-column,
.form-section > .subform-column,
.subform-section > .form-column,
.subform-section > .subform-column,
.userProfile-body-content .form fieldset > .form-column,
.userProfile-body-content .form fieldset > .subform-column {
  padding: var(--ml-card-padding) !important;
}
.form-section .subform-cell,
.subform-section .subform-cell,
.userProfile-body-content .form fieldset .subform-cell {
  margin-bottom: 0px !important;
}
.form-section,
.subform-section,
.userProfile-body-content .form fieldset {
  /* ── Fields: label above control ── */
}
.form-section .form-cell,
.form-section .subform-cell,
.form-section .subform-row,
.form-section .form-row,
.subform-section .form-cell,
.subform-section .subform-cell,
.subform-section .subform-row,
.subform-section .form-row,
.userProfile-body-content .form fieldset .form-cell,
.userProfile-body-content .form fieldset .subform-cell,
.userProfile-body-content .form fieldset .subform-row,
.userProfile-body-content .form fieldset .form-row {
  flex-direction: column;
  align-items: stretch;
  row-gap: 0;
  margin-bottom: 22px !important;
}
.form-section .form-cell:last-child,
.form-section .subform-cell:last-child,
.form-section .subform-row:last-child,
.form-section .form-row:last-child,
.subform-section .form-cell:last-child,
.subform-section .subform-cell:last-child,
.subform-section .subform-row:last-child,
.subform-section .form-row:last-child,
.userProfile-body-content .form fieldset .form-cell:last-child,
.userProfile-body-content .form fieldset .subform-cell:last-child,
.userProfile-body-content .form fieldset .subform-row:last-child,
.userProfile-body-content .form fieldset .form-row:last-child {
  margin-bottom: 0 !important;
}
.form-section .form-cell > .form-cell-value,
.form-section .subform-cell > .form-cell-value,
.form-section .subform-row > .form-cell-value,
.form-section .form-row > .form-cell-value,
.subform-section .form-cell > .form-cell-value,
.subform-section .subform-cell > .form-cell-value,
.subform-section .subform-row > .form-cell-value,
.subform-section .form-row > .form-cell-value,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value,
.userProfile-body-content .form fieldset .form-row > .form-cell-value {
  display: block;
  padding: 0 !important;
}
.form-section .form-cell > .form-cell-value > .label,
.form-section .form-cell > .form-cell-value > label,
.form-section .form-cell > .label,
.form-section .form-cell > label,
.form-section .subform-cell > .form-cell-value > .label,
.form-section .subform-cell > .form-cell-value > label,
.form-section .subform-cell > .label,
.form-section .subform-cell > label,
.form-section .subform-row > .form-cell-value > .label,
.form-section .subform-row > .form-cell-value > label,
.form-section .subform-row > .label,
.form-section .subform-row > label,
.form-section .form-row > .form-cell-value > .label,
.form-section .form-row > .form-cell-value > label,
.form-section .form-row > .label,
.form-section .form-row > label,
.subform-section .form-cell > .form-cell-value > .label,
.subform-section .form-cell > .form-cell-value > label,
.subform-section .form-cell > .label,
.subform-section .form-cell > label,
.subform-section .subform-cell > .form-cell-value > .label,
.subform-section .subform-cell > .form-cell-value > label,
.subform-section .subform-cell > .label,
.subform-section .subform-cell > label,
.subform-section .subform-row > .form-cell-value > .label,
.subform-section .subform-row > .form-cell-value > label,
.subform-section .subform-row > .label,
.subform-section .subform-row > label,
.subform-section .form-row > .form-cell-value > .label,
.subform-section .form-row > .form-cell-value > label,
.subform-section .form-row > .label,
.subform-section .form-row > label,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > .label,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > label,
.userProfile-body-content .form fieldset .form-cell > .label,
.userProfile-body-content .form fieldset .form-cell > label,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > .label,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > label,
.userProfile-body-content .form fieldset .subform-cell > .label,
.userProfile-body-content .form fieldset .subform-cell > label,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > .label,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > label,
.userProfile-body-content .form fieldset .subform-row > .label,
.userProfile-body-content .form fieldset .subform-row > label,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > .label,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > label,
.userProfile-body-content .form fieldset .form-row > .label,
.userProfile-body-content .form fieldset .form-row > label {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 8px 0 !important;
  color: var(--ml-form-label-fg) !important;
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
  line-height: 1.45;
}
.form-section .form-cell > .form-cell-value > .label .form-error-message,
.form-section .form-cell > .form-cell-value > label .form-error-message,
.form-section .form-cell > .label .form-error-message,
.form-section .form-cell > label .form-error-message,
.form-section .subform-cell > .form-cell-value > .label .form-error-message,
.form-section .subform-cell > .form-cell-value > label .form-error-message,
.form-section .subform-cell > .label .form-error-message,
.form-section .subform-cell > label .form-error-message,
.form-section .subform-row > .form-cell-value > .label .form-error-message,
.form-section .subform-row > .form-cell-value > label .form-error-message,
.form-section .subform-row > .label .form-error-message,
.form-section .subform-row > label .form-error-message,
.form-section .form-row > .form-cell-value > .label .form-error-message,
.form-section .form-row > .form-cell-value > label .form-error-message,
.form-section .form-row > .label .form-error-message,
.form-section .form-row > label .form-error-message,
.subform-section .form-cell > .form-cell-value > .label .form-error-message,
.subform-section .form-cell > .form-cell-value > label .form-error-message,
.subform-section .form-cell > .label .form-error-message,
.subform-section .form-cell > label .form-error-message,
.subform-section .subform-cell > .form-cell-value > .label .form-error-message,
.subform-section .subform-cell > .form-cell-value > label .form-error-message,
.subform-section .subform-cell > .label .form-error-message,
.subform-section .subform-cell > label .form-error-message,
.subform-section .subform-row > .form-cell-value > .label .form-error-message,
.subform-section .subform-row > .form-cell-value > label .form-error-message,
.subform-section .subform-row > .label .form-error-message,
.subform-section .subform-row > label .form-error-message,
.subform-section .form-row > .form-cell-value > .label .form-error-message,
.subform-section .form-row > .form-cell-value > label .form-error-message,
.subform-section .form-row > .label .form-error-message,
.subform-section .form-row > label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > .label .form-error-message,
.userProfile-body-content .form fieldset .form-cell > label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-cell > label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > .label .form-error-message,
.userProfile-body-content .form fieldset .subform-row > label .form-error-message,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > .label .form-error-message,
.userProfile-body-content .form fieldset .form-row > .form-cell-value > label .form-error-message,
.userProfile-body-content .form fieldset .form-row > .label .form-error-message,
.userProfile-body-content .form fieldset .form-row > label .form-error-message {
  margin-top: 4px;
  color: var(--ml-bg-danger-default);
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-medium);
}
.form-section .form-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .form-cell > select,
.form-section .form-cell > textarea,
.form-section .form-cell .custom-input-container,
.form-section .form-cell .form-cell-value,
.form-section .form-cell .subform-cell-value,
.form-section .form-cell .form-fileupload,
.form-section .form-cell .form-input,
.form-section .form-cell .chosen-container,
.form-section .form-cell .password-input-container,
.form-section .subform-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .subform-cell > select,
.form-section .subform-cell > textarea,
.form-section .subform-cell .custom-input-container,
.form-section .subform-cell .form-cell-value,
.form-section .subform-cell .subform-cell-value,
.form-section .subform-cell .form-fileupload,
.form-section .subform-cell .form-input,
.form-section .subform-cell .chosen-container,
.form-section .subform-cell .password-input-container,
.form-section .subform-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .subform-row > select,
.form-section .subform-row > textarea,
.form-section .subform-row .custom-input-container,
.form-section .subform-row .form-cell-value,
.form-section .subform-row .subform-cell-value,
.form-section .subform-row .form-fileupload,
.form-section .subform-row .form-input,
.form-section .subform-row .chosen-container,
.form-section .subform-row .password-input-container,
.form-section .form-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.form-section .form-row > select,
.form-section .form-row > textarea,
.form-section .form-row .custom-input-container,
.form-section .form-row .form-cell-value,
.form-section .form-row .subform-cell-value,
.form-section .form-row .form-fileupload,
.form-section .form-row .form-input,
.form-section .form-row .chosen-container,
.form-section .form-row .password-input-container,
.subform-section .form-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .form-cell > select,
.subform-section .form-cell > textarea,
.subform-section .form-cell .custom-input-container,
.subform-section .form-cell .form-cell-value,
.subform-section .form-cell .subform-cell-value,
.subform-section .form-cell .form-fileupload,
.subform-section .form-cell .form-input,
.subform-section .form-cell .chosen-container,
.subform-section .form-cell .password-input-container,
.subform-section .subform-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .subform-cell > select,
.subform-section .subform-cell > textarea,
.subform-section .subform-cell .custom-input-container,
.subform-section .subform-cell .form-cell-value,
.subform-section .subform-cell .subform-cell-value,
.subform-section .subform-cell .form-fileupload,
.subform-section .subform-cell .form-input,
.subform-section .subform-cell .chosen-container,
.subform-section .subform-cell .password-input-container,
.subform-section .subform-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .subform-row > select,
.subform-section .subform-row > textarea,
.subform-section .subform-row .custom-input-container,
.subform-section .subform-row .form-cell-value,
.subform-section .subform-row .subform-cell-value,
.subform-section .subform-row .form-fileupload,
.subform-section .subform-row .form-input,
.subform-section .subform-row .chosen-container,
.subform-section .subform-row .password-input-container,
.subform-section .form-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.subform-section .form-row > select,
.subform-section .form-row > textarea,
.subform-section .form-row .custom-input-container,
.subform-section .form-row .form-cell-value,
.subform-section .form-row .subform-cell-value,
.subform-section .form-row .form-fileupload,
.subform-section .form-row .form-input,
.subform-section .form-row .chosen-container,
.subform-section .form-row .password-input-container,
.userProfile-body-content .form fieldset .form-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .form-cell > select,
.userProfile-body-content .form fieldset .form-cell > textarea,
.userProfile-body-content .form fieldset .form-cell .custom-input-container,
.userProfile-body-content .form fieldset .form-cell .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .subform-cell-value,
.userProfile-body-content .form fieldset .form-cell .form-fileupload,
.userProfile-body-content .form fieldset .form-cell .form-input,
.userProfile-body-content .form fieldset .form-cell .chosen-container,
.userProfile-body-content .form fieldset .form-cell .password-input-container,
.userProfile-body-content .form fieldset .subform-cell > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .subform-cell > select,
.userProfile-body-content .form fieldset .subform-cell > textarea,
.userProfile-body-content .form fieldset .subform-cell .custom-input-container,
.userProfile-body-content .form fieldset .subform-cell .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-value,
.userProfile-body-content .form fieldset .subform-cell .form-fileupload,
.userProfile-body-content .form fieldset .subform-cell .form-input,
.userProfile-body-content .form fieldset .subform-cell .chosen-container,
.userProfile-body-content .form fieldset .subform-cell .password-input-container,
.userProfile-body-content .form fieldset .subform-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .subform-row > select,
.userProfile-body-content .form fieldset .subform-row > textarea,
.userProfile-body-content .form fieldset .subform-row .custom-input-container,
.userProfile-body-content .form fieldset .subform-row .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .subform-cell-value,
.userProfile-body-content .form fieldset .subform-row .form-fileupload,
.userProfile-body-content .form fieldset .subform-row .form-input,
.userProfile-body-content .form fieldset .subform-row .chosen-container,
.userProfile-body-content .form fieldset .subform-row .password-input-container,
.userProfile-body-content .form fieldset .form-row > input:not([name=submit], [type=checkbox], [type=radio], [type=range]),
.userProfile-body-content .form fieldset .form-row > select,
.userProfile-body-content .form fieldset .form-row > textarea,
.userProfile-body-content .form fieldset .form-row .custom-input-container,
.userProfile-body-content .form fieldset .form-row .form-cell-value,
.userProfile-body-content .form fieldset .form-row .subform-cell-value,
.userProfile-body-content .form fieldset .form-row .form-fileupload,
.userProfile-body-content .form fieldset .form-row .form-input,
.userProfile-body-content .form fieldset .form-row .chosen-container,
.userProfile-body-content .form fieldset .form-row .password-input-container {
  flex: 0 0 auto !important;
  width: 100% !important;
}
.form-section .form-cell,
.form-section .subform-cell,
.form-section .subform-row,
.form-section .form-row,
.subform-section .form-cell,
.subform-section .subform-cell,
.subform-section .subform-row,
.subform-section .form-row,
.userProfile-body-content .form fieldset .form-cell,
.userProfile-body-content .form fieldset .subform-cell,
.userProfile-body-content .form fieldset .subform-row,
.userProfile-body-content .form fieldset .form-row {
  /* option lists (checkbox / radio groups) stay horizontal */
}
.form-section .form-cell .form-cell-value,
.form-section .form-cell .subform-cell-value,
.form-section .subform-cell .form-cell-value,
.form-section .subform-cell .subform-cell-value,
.form-section .subform-row .form-cell-value,
.form-section .subform-row .subform-cell-value,
.form-section .form-row .form-cell-value,
.form-section .form-row .subform-cell-value,
.subform-section .form-cell .form-cell-value,
.subform-section .form-cell .subform-cell-value,
.subform-section .subform-cell .form-cell-value,
.subform-section .subform-cell .subform-cell-value,
.subform-section .subform-row .form-cell-value,
.subform-section .subform-row .subform-cell-value,
.subform-section .form-row .form-cell-value,
.subform-section .form-row .subform-cell-value,
.userProfile-body-content .form fieldset .form-cell .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .subform-cell-value,
.userProfile-body-content .form fieldset .subform-cell .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-value,
.userProfile-body-content .form fieldset .subform-row .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .subform-cell-value,
.userProfile-body-content .form fieldset .form-row .form-cell-value,
.userProfile-body-content .form fieldset .form-row .subform-cell-value {
  gap: 12px 24px;
}
.form-section .form-cell .form-cell-value label,
.form-section .form-cell .subform-cell-value label,
.form-section .subform-cell .form-cell-value label,
.form-section .subform-cell .subform-cell-value label,
.form-section .subform-row .form-cell-value label,
.form-section .subform-row .subform-cell-value label,
.form-section .form-row .form-cell-value label,
.form-section .form-row .subform-cell-value label,
.subform-section .form-cell .form-cell-value label,
.subform-section .form-cell .subform-cell-value label,
.subform-section .subform-cell .form-cell-value label,
.subform-section .subform-cell .subform-cell-value label,
.subform-section .subform-row .form-cell-value label,
.subform-section .subform-row .subform-cell-value label,
.subform-section .form-row .form-cell-value label,
.subform-section .form-row .subform-cell-value label,
.userProfile-body-content .form fieldset .form-cell .form-cell-value label,
.userProfile-body-content .form fieldset .form-cell .subform-cell-value label,
.userProfile-body-content .form fieldset .subform-cell .form-cell-value label,
.userProfile-body-content .form fieldset .subform-cell .subform-cell-value label,
.userProfile-body-content .form fieldset .subform-row .form-cell-value label,
.userProfile-body-content .form fieldset .subform-row .subform-cell-value label,
.userProfile-body-content .form fieldset .form-row .form-cell-value label,
.userProfile-body-content .form fieldset .form-row .subform-cell-value label {
  flex: 1 !important;
  gap: 8px;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-base) !important;
  font-weight: var(--ml-font-weight-regular) !important;
  line-height: 1.4;
}
.form-section .form-cell .customHtml > .form-cell-value,
.form-section .form-cell .customHtml > .subform-cell-value,
.form-section .subform-cell .customHtml > .form-cell-value,
.form-section .subform-cell .customHtml > .subform-cell-value,
.form-section .subform-row .customHtml > .form-cell-value,
.form-section .subform-row .customHtml > .subform-cell-value,
.form-section .form-row .customHtml > .form-cell-value,
.form-section .form-row .customHtml > .subform-cell-value,
.subform-section .form-cell .customHtml > .form-cell-value,
.subform-section .form-cell .customHtml > .subform-cell-value,
.subform-section .subform-cell .customHtml > .form-cell-value,
.subform-section .subform-cell .customHtml > .subform-cell-value,
.subform-section .subform-row .customHtml > .form-cell-value,
.subform-section .subform-row .customHtml > .subform-cell-value,
.subform-section .form-row .customHtml > .form-cell-value,
.subform-section .form-row .customHtml > .subform-cell-value,
.userProfile-body-content .form fieldset .form-cell .customHtml > .form-cell-value,
.userProfile-body-content .form fieldset .form-cell .customHtml > .subform-cell-value,
.userProfile-body-content .form fieldset .subform-cell .customHtml > .form-cell-value,
.userProfile-body-content .form fieldset .subform-cell .customHtml > .subform-cell-value,
.userProfile-body-content .form fieldset .subform-row .customHtml > .form-cell-value,
.userProfile-body-content .form fieldset .subform-row .customHtml > .subform-cell-value,
.userProfile-body-content .form fieldset .form-row .customHtml > .form-cell-value,
.userProfile-body-content .form fieldset .form-row .customHtml > .subform-cell-value {
  padding: 0 !important;
}
.form-section,
.subform-section,
.userProfile-body-content .form fieldset {
  /* nested subforms should not double the frame */
}
.form-section .subform-section,
.subform-section .subform-section,
.userProfile-body-content .form fieldset .subform-section {
  margin-top: 20px !important;
}
.form-section[id$=_ghost_section], .form-section.multiPagedForm-parent-section, .form-section:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm), .form-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm), .form-section:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame), .form-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame),
.subform-section[id$=_ghost_section],
.subform-section.multiPagedForm-parent-section,
.subform-section:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm),
.subform-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm),
.subform-section:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame),
.subform-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame),
.userProfile-body-content .form fieldset[id$=_ghost_section],
.userProfile-body-content .form fieldset.multiPagedForm-parent-section,
.userProfile-body-content .form fieldset:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm),
.userProfile-body-content .form fieldset:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm),
.userProfile-body-content .form fieldset:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame),
.userProfile-body-content .form fieldset:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) {
  background: transparent !important;
  border: none !important;
}
.form-section[id$=_ghost_section] > [class*=form-column],
.form-section[id$=_ghost_section] > .section-content > [class*=form-column], .form-section.multiPagedForm-parent-section > [class*=form-column],
.form-section.multiPagedForm-parent-section > .section-content > [class*=form-column], .form-section:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm) > [class*=form-column],
.form-section:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm) > .section-content > [class*=form-column], .form-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm) > [class*=form-column],
.form-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm) > .section-content > [class*=form-column], .form-section:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > [class*=form-column],
.form-section:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > .section-content > [class*=form-column], .form-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > [class*=form-column],
.form-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > .section-content > [class*=form-column],
.subform-section[id$=_ghost_section] > [class*=form-column],
.subform-section[id$=_ghost_section] > .section-content > [class*=form-column],
.subform-section.multiPagedForm-parent-section > [class*=form-column],
.subform-section.multiPagedForm-parent-section > .section-content > [class*=form-column],
.subform-section:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm) > [class*=form-column],
.subform-section:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm) > .section-content > [class*=form-column],
.subform-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm) > [class*=form-column],
.subform-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm) > .section-content > [class*=form-column],
.subform-section:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > [class*=form-column],
.subform-section:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > .section-content > [class*=form-column],
.subform-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > [class*=form-column],
.subform-section:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > .section-content > [class*=form-column],
.userProfile-body-content .form fieldset[id$=_ghost_section] > [class*=form-column],
.userProfile-body-content .form fieldset[id$=_ghost_section] > .section-content > [class*=form-column],
.userProfile-body-content .form fieldset.multiPagedForm-parent-section > [class*=form-column],
.userProfile-body-content .form fieldset.multiPagedForm-parent-section > .section-content > [class*=form-column],
.userProfile-body-content .form fieldset:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm) > [class*=form-column],
.userProfile-body-content .form fieldset:has(> [class*=form-column] > [class*=form-cell] > .multiPagedForm) > .section-content > [class*=form-column],
.userProfile-body-content .form fieldset:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm) > [class*=form-column],
.userProfile-body-content .form fieldset:has(> .section-content > [class*=form-column] > [class*=form-cell] > .multiPagedForm) > .section-content > [class*=form-column],
.userProfile-body-content .form fieldset:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > [class*=form-column],
.userProfile-body-content .form fieldset:has(> [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > .section-content > [class*=form-column],
.userProfile-body-content .form fieldset:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > [class*=form-column],
.userProfile-body-content .form fieldset:has(> .section-content > [class*=form-column] > [class*=form-cell] > [class*=form-container].no-frame) > .section-content > [class*=form-column] {
  padding: 0 !important;
}

/* Read-only presentation of a value (no input) */
.form-cell-value,
.subform-cell-value {
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-base);
}

/* ── Custom HTML ──
   A cell's value box is a flex row, which is what a control and its option
   labels want and the opposite of what a snippet of markup wants: every
   top-level node the app wrote becomes a flex item, laid out side by side in a
   row it never asked for and, because a flex item's floor is its content,
   holding the row open at the widest of them. A card grid written as three
   divs comes out as three columns that will not stack.

   `form.scss` already says this for `.form-cell-value`. The same element
   inside a subform renders `.subform-cell-value` - usually with
   `.form-cell-full`, since custom HTML rarely carries a label - and was left
   out, so custom markup behaved one way in a form and another way one level
   down. */
.customHtml .form-cell-value,
.customHtml .subform-cell-value {
  display: block !important;
  padding: 0 !important;
}

.userProfile-body-content .form fieldset {
  padding: 0 !important;
}
.userProfile-body-content .form fieldset > legend {
  padding: 22px var(--ml-card-padding) !important;
}

/* ── Action row ──
   Mechanics only. Whether this is a footer welded to the form or a bar standing
   apart from it, and which end the buttons sit at, is the preset's call.

   `justify-content` is inherited rather than set, so a preset changes the
   alignment once on this element and the inner rows follow. */
.form-section#section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ml-space-3);
}
.form-section#section-actions .form-column,
.form-section#section-actions .subform-column {
  padding: 0 !important;
}
.form-section#section-actions {
  /* actions stay on one line: they must not inherit the label-above stack */
}
.form-section#section-actions .form-cell,
.form-section#section-actions .form-row {
  flex-direction: row;
  align-items: center;
  justify-content: inherit;
  gap: var(--ml-space-3) !important;
  margin-bottom: 0 !important;
}
.form-section#section-actions input.form-button,
.form-section#section-actions .btn {
  width: auto !important;
}
.form-section#section-actions:not(:has(.form-cell > *)) {
  display: none;
}

/* ── Messages ── */
.form-message {
  padding: 12px 16px;
  border-radius: var(--ml-input-radius-base);
  background: var(--ml-bg-success-weak);
  color: var(--ml-text-on-success-weak);
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-semibold);
}
.form-message.form-errors {
  background: var(--ml-bg-danger-weak);
  color: var(--ml-text-on-danger-weak);
}

.alert {
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  background-image: none !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-medium);
}
.alert.alert-danger, .alert.form-errors {
  background-color: var(--ml-bg-danger-weak) !important;
  border-color: var(--ml-bg-danger-weak) !important;
  color: var(--ml-text-on-danger-weak) !important;
}
.alert.alert-success {
  background-color: var(--ml-bg-success-weak) !important;
  border-color: var(--ml-bg-success-weak) !important;
  color: var(--ml-text-on-success-weak) !important;
}
.alert.alert-warning {
  background-color: var(--ml-bg-warning-weak) !important;
  border-color: var(--ml-bg-warning-weak) !important;
  color: var(--ml-text-on-warning-weak) !important;
}
.alert.alert-info {
  background-color: var(--ml-bg-info-weak) !important;
  border-color: var(--ml-bg-info-weak) !important;
  color: var(--ml-text-on-info-weak) !important;
}

/* ── Form headers rendered outside a section ── */
.viewForm-body-header h1, .viewForm-body-header h2, .viewForm-body-header h3, .viewForm-body-header h4,
.form-header h1,
.form-header h2,
.form-header h3,
.form-header h4 {
  color: var(--ml-text-default);
}

/* ── Wizard / steps ── */
.bootstrap-steps .step,
.form-steps .step {
  border-radius: var(--ml-input-radius-base) !important;
}
.bootstrap-steps .step.active .step-circle,
.bootstrap-steps .step .step-circle,
.form-steps .step.active .step-circle,
.form-steps .step .step-circle {
  border-radius: var(--ml-input-radius-base) !important;
  box-shadow: none !important;
}

/* ── Small screens ──
   Joget's form builder writes a fixed `width:XX%` inline style on each
   `.form-column`/`.subform-column` to lay out a multi-column section, then
   floats them side by side. Nothing here ever overrides that width, so a
   2- or 3-column section stays split at any viewport and its fields get
   squeezed instead of stacking. `!important` is required to out-specify
   that inline style.

   `min-width: 0` because unfloating a column can leave it a flex item, and a
   flex item's floor is its content: a column holding a subform table or a
   long-labelled control would keep the table's width and push the section
   past the screen instead of stacking at the screen's width. */
@media (max-width: 767.98px) {
  .form-column,
  .subform-column {
    width: auto !important;
    float: none !important;
    flex: 1;
    min-width: 0;
    padding: 8px 12px !important;
  }
}
/* ── Nav pills (tabbed forms) ── */
.nav.nav-pills {
  padding: 8px !important;
  border-radius: var(--ml-input-radius-base) !important;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default);
}
.nav.nav-pills .nav-link {
  border-radius: var(--ml-input-radius-base) !important;
  background-color: transparent !important;
  color: var(--ml-text-weak) !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-semibold);
}
.nav.nav-pills .nav-link:hover {
  opacity: 1;
  background-color: var(--ml-page-bg) !important;
  color: var(--ml-text-default) !important;
}
.nav.nav-pills .nav-link.active {
  color: var(--ml-text-on-brand) !important;
}
.nav.nav-pills .moving-tab {
  border-radius: var(--ml-input-radius-base) !important;
}
.nav.nav-pills .moving-tab .nav-link {
  border-radius: var(--ml-input-radius-base) !important;
}

/* ============================================================================
   Narrow screens
   ============================================================================
   A Joget form is already one column of stacked fields, so what it needs here
   is mostly permission to shrink, plus the two places the desktop layout
   assumed room it does not have: the action row, and the tab strip a tabbed
   form heads itself with. */
@media (max-width: 767.98px) {
  /* -- The shrink floor --
     Every row in a form is a flex container: the cell, the label, the value
     box. A flex item's default `min-width` is `auto`, which is its content's
     min-content width, so one item that cannot be narrowed - a subform table,
     a multi-select sized for a desktop column, an unbreakable label - sets a
     floor for the row, the row sets one for the section and the section for
     the page. The symptom is the whole page scrolling sideways while the form
     itself looks too narrow for the screen, because it is sized to a viewport
     wider than the one you have.

     Releasing the floor here rather than per component: the offender is
     whatever the app happened to put in the cell, so there is no list of
     them to write. */
  .form-cell,
  .subform-cell,
  .form-row,
  .subform-row,
  .section-content,
  .form-cell > *,
  .subform-cell > * {
    min-width: 0;
    max-width: 100%;
  }
  /* `.form-cell-full` is a cell's value box widened to the full row. The
     skeleton pins it at `flex: 0 0 auto` + `width: 100%`, which is right
     until what is inside it is wider than the row - then it has no way to
     give any of that width back. Specificity has to clear the skeleton's own
     `.form-section .form-cell .subform-cell-value` (0,3,0). */
  .form-section .form-cell .subform-cell-value.form-cell-full,
  .form-section .subform-cell .subform-cell-value.form-cell-full,
  .subform-section .subform-cell .subform-cell-value.form-cell-full {
    flex: 1 1 auto !important;
  }
  /* -- Controls --
     The skeleton widens the controls that are a cell's DIRECT children. A
     plugin that wraps its input in a div of its own - and most of them do -
     leaves an input at its HTML `size` or at a width the plugin's own
     stylesheet chose for a desktop column. Buttons are excluded: the action
     row below decides their width. */
  .form-cell input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]),
  .form-cell textarea,
  .form-cell select,
  .form-cell .chosen-container {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* -- Horizontal column --
     `.form-column-horizontal` is the action row's shape without its id: a
     right-aligned flex row of controls, usually buttons, that a form builder
     can put anywhere. Same treatment as `#section-actions` below, including
     `flex: 1 1 140px` rather than a full-width stack, so two short buttons
     still share a line rather than taking a row of chrome each.

     Its `justify-content: end` is left alone: once every item on a line
     grows there is no free space for it to distribute, so the row reads as
     stretched either way and this block stays out of a specificity fight it
     does not need to win. */
  .form-column.form-column-horizontal,
  .subform-column.subform-column-horizontal {
    flex-wrap: wrap;
  }
  .form-column.form-column-horizontal > .form-cell,
  .form-column.form-column-horizontal > .subform-cell,
  .subform-column.subform-column-horizontal > .form-cell,
  .subform-column.subform-column-horizontal > .subform-cell {
    flex: 1 1 100%;
    min-width: 0;
  }
  .form-column.form-column-horizontal input.form-button,
  .form-column.form-column-horizontal .btn,
  .subform-column.subform-column-horizontal input.form-button,
  .subform-column.subform-column-horizontal .btn {
    flex: 1 1 140px !important;
    width: auto !important;
    min-width: 0;
  }
  /* -- Action row --
     Three buttons - submit, save as draft, cancel - sized to their labels and
     laid out in a row. At 360px the labels are longer than the thirds they
     get, so they were wrapping mid-word inside a button.

     `flex: 1 1 140px` rather than a stack of full-width buttons: two short
     actions still share a line, and only the row that genuinely cannot fit
     breaks. A full-width stack would give a two-button form three rows of
     chrome under every field it has. */
  .form-section#section-actions .form-cell,
  .form-section#section-actions .form-row {
    flex-wrap: wrap;
    width: 100%;
  }
  .form-section#section-actions input.form-button,
  .form-section#section-actions .btn {
    flex: 1 1 140px;
    width: auto !important;
    min-width: 0;
  }
  /* -- Tab strip --
     `.nav-pills` is a row of tabs one per form page. The moving-tab indicator
     under it is positioned in JS from the active pill's box, so wrapping the
     pills onto a second line leaves the indicator measuring a box that is no
     longer where it was. Scroll instead of wrap, and the measurement stays
     true. */
  .nav.nav-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .nav.nav-pills::-webkit-scrollbar {
    display: none;
  }
  .nav.nav-pills .nav-item {
    flex: 0 0 auto;
  }
  .nav.nav-pills .nav-link {
    white-space: nowrap;
  }
}
@media (max-width: 575.98px) {
  /* A field's help text and its error message are both set at the caption
     size, which is the smallest thing on the page and the one a form makes
     you read when something has gone wrong. */
  .form-cell .form-cell-validator,
  .form-error-message {
    font-size: var(--ml-type-caption-m-size);
  }
}
/**
 * Melkart theme — datalist skeleton
 *
 * Identity-neutral. The filter grid, the table's own geometry, row and cell
 * metrics, row actions, the footer, pagination and the responsive card mode.
 *
 * The three framed surfaces here - the filter card, the table shell and the
 * assembled list card - all read `--ml-datalist-bg`, `--ml-datalist-border`,
 * `--ml-datalist-radius` and `--ml-datalist-shadow`, which is why only one
 * datalist decision needed a preset file: whether the panel header is held off
 * the table by a gap or closed by a rule. Everything else that separates the
 * identities here is a value, and those four tokens carry it.
 *
 * Card mode - what the list becomes on a phone - is at the bottom of this file
 * rather than in a stylesheet of its own. It used to live in
 * `scss/datalist-responsive.scss`, which is emitted BEFORE this layer, so every
 * rule it wrote that this file also writes lost the tie: the row kept its 48px
 * table height, its hairline and its `!important` transparent background while
 * pretending to be a card. Mobile rules for a component belong after that
 * component's desktop rules, in the same file, or they are decoration.
 */
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Toolbar ── */
}
body:not(.datalist-compact-style) .dataList .actions, body.datalist-compact-style .dataList .actions {
  gap: 10px;
  align-items: center;
}
body:not(.datalist-compact-style) .dataList .actions.top, body.datalist-compact-style .dataList .actions.top {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Filters ── */
}
body:not(.datalist-compact-style) .dataList .filter_form, body.datalist-compact-style .dataList .filter_form {
  padding: 20px var(--ml-card-padding);
  margin-bottom: 20px;
  background: var(--ml-datalist-bg);
  border: var(--ml-border-width) solid var(--ml-datalist-border);
  border-radius: var(--ml-datalist-radius);
  box-shadow: var(--ml-datalist-shadow);
  /* The filter row becomes the spec's field grid.
     `min(220px, 100%)` rather than a bare 220px: `minmax(220px, 1fr)`
     inside a container narrower than 220px lays a 220px track anyway and
     pushes the whole page into horizontal scroll, which is every phone
     under about 370px once the gutters are taken off. */
}
body:not(.datalist-compact-style) .dataList .filter_form .filters, body.datalist-compact-style .dataList .filter_form .filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  align-items: end;
  gap: 16px;
}
body:not(.datalist-compact-style) .dataList .filter_form .filter-cell, body.datalist-compact-style .dataList .filter_form .filter-cell {
  flex: 0 1 auto;
  min-width: 0;
}
body:not(.datalist-compact-style) .dataList .filter_form .filter-cell label.mobile_label, body.datalist-compact-style .dataList .filter_form .filter-cell label.mobile_label {
  margin-bottom: 7px !important;
  color: var(--ml-text-weak) !important;
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
}
body:not(.datalist-compact-style) .dataList .filter_form .filter-cell > [id*=_container] select, body.datalist-compact-style .dataList .filter_form .filter-cell > [id*=_container] select {
  min-height: var(--ml-control-height-md) !important;
  padding: 0 14px !important;
  font-size: var(--ml-font-size-base);
}
body:not(.datalist-compact-style) .dataList .filter_form .filter-cell > [id*=_container]::after, body.datalist-compact-style .dataList .filter_form .filter-cell > [id*=_container]::after {
  top: 20px;
  color: var(--ml-text-weak);
  display: none;
}
body:not(.datalist-compact-style) .dataList .filter_form input:not([type=checkbox], [type=radio], [type=submit]),
body:not(.datalist-compact-style) .dataList .filter_form select,
body:not(.datalist-compact-style) .dataList .filter_form textarea, body.datalist-compact-style .dataList .filter_form input:not([type=checkbox], [type=radio], [type=submit]),
body.datalist-compact-style .dataList .filter_form select,
body.datalist-compact-style .dataList .filter_form textarea {
  min-height: var(--ml-control-height-md) !important;
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
  border-color: var(--ml-input-border) !important;
  box-shadow: none !important;
}
body:not(.datalist-compact-style) .dataList .filter_form input::placeholder, body.datalist-compact-style .dataList .filter_form input::placeholder {
  font-size: var(--ml-font-size-label) !important;
  color: var(--ml-text-disabled) !important;
}
body:not(.datalist-compact-style) .dataList .filter_form .waves-button-input, body.datalist-compact-style .dataList .filter_form .waves-button-input {
  height: var(--ml-control-height-md);
  padding: 0 20px !important;
}
body:not(.datalist-compact-style) .dataList .filter_form .from_to_date_filter_container .from-date-container, body.datalist-compact-style .dataList .filter_form .from_to_date_filter_container .from-date-container {
  border-color: var(--ml-border-default) !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* A form with no filter to show is hidden by ml-theme.js, which also sets
     this class — it stays in the DOM for its paging inputs. */
}
body:not(.datalist-compact-style) .dataList .filter_form.ml-filters-empty, body.datalist-compact-style .dataList .filter_form.ml-filters-empty {
  display: none !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Panel headers built by ml-theme.js ──
     How the header is separated from the table under it - a gap, or a rule it
     sits above - is the identity's, in `presets/<name>/_datalist.scss`. */
}
body:not(.datalist-compact-style) .dataList .ml-panel-header, body.datalist-compact-style .dataList .ml-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--ml-space-4) var(--ml-space-5);
}
body:not(.datalist-compact-style) .dataList .ml-panel-heading, body.datalist-compact-style .dataList .ml-panel-heading {
  min-width: 0;
}
body:not(.datalist-compact-style) .dataList .ml-panel-title, body.datalist-compact-style .dataList .ml-panel-title {
  margin: 0;
  color: var(--ml-text-default);
  font-size: var(--ml-type-heading-s-size);
  line-height: var(--ml-type-heading-s-line);
  font-weight: var(--ml-type-heading-weight);
  letter-spacing: var(--ml-type-heading-s-tracking);
  line-height: 1.3;
}
body:not(.datalist-compact-style) .dataList .ml-panel-subtitle, body.datalist-compact-style .dataList .ml-panel-subtitle {
  margin: 6px 0 0;
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-label);
  line-height: 1.6;
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions, body.datalist-compact-style .dataList .ml-panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  /* the export dropdown is a full-width right-aligned strip on its own */
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions .dropdown-exports, body.datalist-compact-style .dataList .ml-panel-actions .dropdown-exports {
  display: block;
  flex: 0 0 auto;
  width: auto;
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions input[type=submit],
body:not(.datalist-compact-style) .dataList .ml-panel-actions button[type=submit],
body:not(.datalist-compact-style) .dataList .ml-panel-actions .btn, body.datalist-compact-style .dataList .ml-panel-actions input[type=submit],
body.datalist-compact-style .dataList .ml-panel-actions button[type=submit],
body.datalist-compact-style .dataList .ml-panel-actions .btn {
  margin: 0 !important;
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions, body.datalist-compact-style .dataList .ml-panel-actions {
  /* Joget ships the filter submit as a small secondary button; in the panel
     header it is the primary action. */
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions input[type=submit],
body:not(.datalist-compact-style) .dataList .ml-panel-actions button[type=submit],
body:not(.datalist-compact-style) .dataList .ml-panel-actions input.form-button, body.datalist-compact-style .dataList .ml-panel-actions input[type=submit],
body.datalist-compact-style .dataList .ml-panel-actions button[type=submit],
body.datalist-compact-style .dataList .ml-panel-actions input.form-button {
  height: var(--ml-control-height-md) !important;
  padding: 0 20px !important;
  background-color: var(--ml-bg-brand-default) !important;
  background-image: none !important;
  border: 0 !important;
  color: var(--ml-text-on-brand) !important;
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
  letter-spacing: var(--ml-tracking-xl);
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions input[type=submit]:hover, body:not(.datalist-compact-style) .dataList .ml-panel-actions input[type=submit]:focus, body:not(.datalist-compact-style) .dataList .ml-panel-actions input[type=submit]:active,
body:not(.datalist-compact-style) .dataList .ml-panel-actions button[type=submit]:hover,
body:not(.datalist-compact-style) .dataList .ml-panel-actions button[type=submit]:focus,
body:not(.datalist-compact-style) .dataList .ml-panel-actions button[type=submit]:active,
body:not(.datalist-compact-style) .dataList .ml-panel-actions input.form-button:hover,
body:not(.datalist-compact-style) .dataList .ml-panel-actions input.form-button:focus,
body:not(.datalist-compact-style) .dataList .ml-panel-actions input.form-button:active, body.datalist-compact-style .dataList .ml-panel-actions input[type=submit]:hover, body.datalist-compact-style .dataList .ml-panel-actions input[type=submit]:focus, body.datalist-compact-style .dataList .ml-panel-actions input[type=submit]:active,
body.datalist-compact-style .dataList .ml-panel-actions button[type=submit]:hover,
body.datalist-compact-style .dataList .ml-panel-actions button[type=submit]:focus,
body.datalist-compact-style .dataList .ml-panel-actions button[type=submit]:active,
body.datalist-compact-style .dataList .ml-panel-actions input.form-button:hover,
body.datalist-compact-style .dataList .ml-panel-actions input.form-button:focus,
body.datalist-compact-style .dataList .ml-panel-actions input.form-button:active {
  background-color: var(--ml-bg-brand-hover) !important;
  color: var(--ml-text-on-brand) !important;
}
body:not(.datalist-compact-style) .dataList .ml-panel-actions .dropdown-exports .dropdown-toggle, body.datalist-compact-style .dataList .ml-panel-actions .dropdown-exports .dropdown-toggle {
  height: var(--ml-control-height-md) !important;
  min-height: var(--ml-control-height-md) !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Table shell ── */
}
body:not(.datalist-compact-style) .dataList .table-wrapper, body.datalist-compact-style .dataList .table-wrapper {
  width: 100%;
  margin-top: 0 !important;
  padding: 0 !important;
  background: var(--ml-datalist-bg);
  border: var(--ml-border-width) solid var(--ml-datalist-border);
  border-radius: var(--ml-datalist-radius);
  box-shadow: var(--ml-datalist-shadow);
  overflow-x: auto;
}
body:not(.datalist-compact-style) .dataList table, body.datalist-compact-style .dataList table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Header ── */
}
body:not(.datalist-compact-style) .dataList table thead tr, body.datalist-compact-style .dataList table thead tr {
  background: var(--ml-table-head-bg);
  box-shadow: none !important;
}
body:not(.datalist-compact-style) .dataList table thead tr th, body.datalist-compact-style .dataList table thead tr th {
  height: var(--ml-table-head-height);
  padding: var(--ml-space-3) var(--ml-space-4) !important;
  background: var(--ml-table-head-bg) !important;
  border: 0 !important;
  border-bottom: var(--ml-border-width) solid var(--ml-table-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ml-table-head-fg) !important;
  font-size: var(--ml-type-table-header-size) !important;
  font-weight: var(--ml-type-table-header-weight) !important;
  letter-spacing: var(--ml-type-table-header-tracking);
  line-height: var(--ml-type-table-header-line);
  text-align: start;
  text-transform: var(--ml-type-table-header-transform) !important;
  vertical-align: middle !important;
}
body:not(.datalist-compact-style) .dataList table thead tr th::before, body:not(.datalist-compact-style) .dataList table thead tr th::after, body.datalist-compact-style .dataList table thead tr th::before, body.datalist-compact-style .dataList table thead tr th::after {
  display: none !important;
}
body:not(.datalist-compact-style) .dataList table thead tr th a, body.datalist-compact-style .dataList table thead tr th a {
  color: var(--ml-text-weak) !important;
  font-size: var(--ml-type-table-header-size) !important;
  font-weight: var(--ml-type-table-header-weight) !important;
  text-transform: var(--ml-type-table-header-transform);
}
body:not(.datalist-compact-style) .dataList table thead tr th a:hover, body.datalist-compact-style .dataList table thead tr th a:hover {
  color: var(--ml-text-default) !important;
}
body:not(.datalist-compact-style) .dataList table thead tr th.sorted a, body:not(.datalist-compact-style) .dataList table thead tr th.sorted a:hover, body.datalist-compact-style .dataList table thead tr th.sorted a, body.datalist-compact-style .dataList table thead tr th.sorted a:hover {
  color: var(--ml-text-default) !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Body ── */
}
body:not(.datalist-compact-style) .dataList table tbody, body.datalist-compact-style .dataList table tbody {
  border-radius: 0;
}
body:not(.datalist-compact-style) .dataList table tbody::before, body.datalist-compact-style .dataList table tbody::before {
  display: none !important;
  content: none !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr, body.datalist-compact-style .dataList table tbody tr {
  position: relative;
  z-index: 1;
  height: var(--ml-table-row-height);
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: var(--ml-border-width) solid var(--ml-table-border) !important;
  transition: background-color var(--ml-transition);
}
body:not(.datalist-compact-style) .dataList table tbody tr:nth-of-type(odd), body.datalist-compact-style .dataList table tbody tr:nth-of-type(odd) {
  background: var(--ml-table-zebra) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr:hover::after, body.datalist-compact-style .dataList table tbody tr:hover::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--ml-table-row-hover) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr:last-child, body.datalist-compact-style .dataList table tbody tr:last-child {
  border-bottom: 0 !important;
  border-radius: 0 !important;
}
body:not(.datalist-compact-style) .dataList table tbody td, body.datalist-compact-style .dataList table tbody td {
  position: relative;
  z-index: 1;
  padding: 14px 16px !important;
  border-radius: 0 !important;
  color: var(--ml-text-default);
  font-size: var(--ml-type-table-text-size) !important;
  line-height: var(--ml-type-table-text-line) !important;
  text-align: start;
  vertical-align: middle !important;
  /* A table is a column of values read against each other. Reference
     numbers, amounts and dates only line up if the digits are one
     width, and the proportional 1 in most UI faces is the reason a
     column of ids looks ragged for no reason you can name. */
  font-variant-numeric: tabular-nums;
}
body:not(.datalist-compact-style) .dataList table tbody td.dataListAlignCenter, body.datalist-compact-style .dataList table tbody td.dataListAlignCenter {
  text-align: center;
}
body:not(.datalist-compact-style) .dataList table tbody td.dataListAlignRight, body.datalist-compact-style .dataList table tbody td.dataListAlignRight {
  text-align: end;
}
body:not(.datalist-compact-style) .dataList table tbody, body.datalist-compact-style .dataList table tbody {
  /* the record identifier carries the row */
}
body:not(.datalist-compact-style) .dataList table tbody td:first-child, body.datalist-compact-style .dataList table tbody td:first-child {
  color: var(--ml-text-default);
  font-weight: var(--ml-font-weight-semibold);
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Chips ──
     Status chips rendered by the list formatters, and the tag chips an app
     puts in a cell. Both size to their text and both are pills: a chip is the
     one thing in a row that is not on the column grid, and the round end is
     what says "this is a state", not another boxed field.

     Colour is never touched. What is in a status chip is the app's decision -
     it wrote the fill and the label - and a theme that recoloured it would be
     overriding meaning, not styling. Geometry is the theme's. */
}
body:not(.datalist-compact-style) .dataList table tbody tr td > p,
body:not(.datalist-compact-style) .dataList table tbody tr td .datalist-chips, body.datalist-compact-style .dataList table tbody tr td > p,
body.datalist-compact-style .dataList table tbody tr td .datalist-chips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ml-space-1-5);
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 4px 11px !important;
  border-radius: var(--ml-datalist-chip-radius) !important;
  font-size: var(--ml-font-size-n4) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
  line-height: 1.4 !important;
  letter-spacing: var(--ml-tracking-lg);
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* Several chips in one cell stack rather than run into each other, and the
     stack is start-aligned however wide the column is. */
}
body:not(.datalist-compact-style) .dataList table tbody tr td:has(> .datalist-chips + .datalist-chips), body.datalist-compact-style .dataList table tbody tr td:has(> .datalist-chips + .datalist-chips) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ml-space-1);
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Row actions ── */
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action, body.datalist-compact-style .dataList table tbody tr td.row_action {
  width: 1% !important;
  padding: 10px 16px !important;
  text-align: end;
  white-space: nowrap;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner, body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner {
  display: inline-block;
  width: 100%;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > .btn,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .btn, body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > .btn,
body.datalist-compact-style .dataList table tbody tr td.row_action > .btn {
  height: var(--ml-control-height-sm);
  min-height: var(--ml-control-height-sm);
  padding: 0 14px !important;
  border-radius: var(--ml-table-radius) !important;
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
  display: flex !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far), body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i),
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa),
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas),
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far),
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i),
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa),
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas),
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) {
  width: var(--ml-control-height-sm);
  height: var(--ml-control-height-sm);
  line-height: var(--ml-control-height-sm);
  border-radius: var(--ml-table-radius);
  background: var(--ml-bg-brand-weakest);
  color: var(--ml-text-on-brand-weak);
  transition: background-color var(--ml-transition);
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far):hover, body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far):hover {
  background: var(--ml-bg-brand-weak);
  color: var(--ml-text-on-brand-weak);
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .zmdi,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) i,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .fa,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .far,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .fas,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .zmdi, body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> i) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > a:not(.btn):has(> .far) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas) .zmdi,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) i,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .fa,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .far,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .fas,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far) .zmdi {
  font-size: var(--ml-font-size-base);
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i), body.datalist-compact-style .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i),
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i) {
  background: var(--ml-bg-danger-weak) !important;
  color: var(--ml-text-on-danger-weak) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i):hover, body.datalist-compact-style .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i):hover {
  background: var(--ml-bg-danger-weak) !important;
  color: var(--ml-bg-danger-default) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action, body.datalist-compact-style .dataList table tbody tr td.row_action {
  /* Icon-only actions read as quiet square buttons, not as a stack of solid
     brand blocks — labelled actions (EXAMINER, Consulter) keep their fill. */
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn:has(> i:only-child),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child), body.datalist-compact-style .dataList table tbody tr td.row_action .btn:has(> i:only-child),
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child) {
  height: var(--ml-control-height-sm);
  min-height: var(--ml-control-height-sm);
  border-color: transparent !important;
  background-color: var(--ml-bg-brand-weakest) !important;
  background-image: none !important;
  color: var(--ml-text-on-brand-weak) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn:has(> i:only-child):hover, body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn:has(> i:only-child):focus,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child):focus, body.datalist-compact-style .dataList table tbody tr td.row_action .btn:has(> i:only-child):hover, body.datalist-compact-style .dataList table tbody tr td.row_action .btn:has(> i:only-child):focus,
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child):focus {
  background-color: var(--ml-bg-brand-weak) !important;
  color: var(--ml-text-on-brand-weak) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn.btn-link:has(> i:only-child),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-link:has(> i:only-child), body.datalist-compact-style .dataList table tbody tr td.row_action .btn.btn-link:has(> i:only-child),
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-link:has(> i:only-child) {
  background-color: transparent !important;
  color: var(--ml-text-weak) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn.btn-link:has(> i:only-child):hover, body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn.btn-link:has(> i:only-child):focus,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-link:has(> i:only-child):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-link:has(> i:only-child):focus, body.datalist-compact-style .dataList table tbody tr td.row_action .btn.btn-link:has(> i:only-child):hover, body.datalist-compact-style .dataList table tbody tr td.row_action .btn.btn-link:has(> i:only-child):focus,
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-link:has(> i:only-child):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-link:has(> i:only-child):focus {
  background-color: var(--ml-page-bg) !important;
  color: var(--ml-text-default) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child),
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child), body.datalist-compact-style .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child),
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child) {
  background-color: var(--ml-bg-danger-weak) !important;
  color: var(--ml-text-on-danger-weak) !important;
}
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child):hover, body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child):focus,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child):hover,
body:not(.datalist-compact-style) .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child):focus, body.datalist-compact-style .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child):hover, body.datalist-compact-style .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child):focus,
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child):hover,
body.datalist-compact-style .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child):focus {
  background-color: var(--ml-bg-danger-weak) !important;
  color: var(--ml-bg-danger-default) !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Footer ── */
}
body:not(.datalist-compact-style) .dataList .datalist-footer, body.datalist-compact-style .dataList .datalist-footer {
  margin: 0 !important;
  padding: 16px 20px;
  background: var(--ml-bg-surface-1);
  border-top: var(--ml-border-width) solid var(--ml-border-default);
  border-radius: 0 0 var(--ml-table-radius) var(--ml-table-radius);
  flex-direction: row-reverse;
}
body:not(.datalist-compact-style) .dataList .datalist-footer .pagebanner, body.datalist-compact-style .dataList .datalist-footer .pagebanner {
  padding: 0 !important;
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-label);
  text-align: start;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── Pagination ── */
}
body:not(.datalist-compact-style) .dataList span.pagelinks, body.datalist-compact-style .dataList span.pagelinks {
  justify-content: flex-end;
  gap: 6px;
}
body:not(.datalist-compact-style) .dataList span.pagelinks a,
body:not(.datalist-compact-style) .dataList span.pagelinks strong,
body:not(.datalist-compact-style) .dataList span.pagelinks > span,
body:not(.datalist-compact-style) .dataList span.pagelinks .pc, body.datalist-compact-style .dataList span.pagelinks a,
body.datalist-compact-style .dataList span.pagelinks strong,
body.datalist-compact-style .dataList span.pagelinks > span,
body.datalist-compact-style .dataList span.pagelinks .pc {
  width: var(--ml-control-height-sm) !important;
  height: var(--ml-control-height-sm) !important;
  margin: 0 !important;
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
  border-radius: var(--ml-table-radius) !important;
  background: var(--ml-bg-surface-1) !important;
  box-shadow: none !important;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-medium);
  transition: border-color var(--ml-transition), background-color var(--ml-transition);
}
body:not(.datalist-compact-style) .dataList span.pagelinks a:hover,
body:not(.datalist-compact-style) .dataList span.pagelinks strong:hover,
body:not(.datalist-compact-style) .dataList span.pagelinks > span:hover,
body:not(.datalist-compact-style) .dataList span.pagelinks .pc:hover, body.datalist-compact-style .dataList span.pagelinks a:hover,
body.datalist-compact-style .dataList span.pagelinks strong:hover,
body.datalist-compact-style .dataList span.pagelinks > span:hover,
body.datalist-compact-style .dataList span.pagelinks .pc:hover {
  background: var(--ml-bg-surface-1) !important;
  border-color: var(--ml-text-default) !important;
  color: var(--ml-text-default) !important;
}
body:not(.datalist-compact-style) .dataList span.pagelinks strong, body.datalist-compact-style .dataList span.pagelinks strong {
  border-color: var(--ml-bg-brand-default) !important;
  background: var(--ml-bg-brand-default) !important;
  color: var(--ml-text-on-brand) !important;
  font-weight: var(--ml-font-weight-semibold);
}
body:not(.datalist-compact-style) .dataList span.pagelinks .pc[class*=-disabled], body.datalist-compact-style .dataList span.pagelinks .pc[class*=-disabled] {
  background: var(--ml-bg-surface-1) !important;
  border-color: var(--ml-border-default) !important;
  color: var(--ml-text-disabled) !important;
  cursor: default;
}
body:not(.datalist-compact-style) .dataList span.pagelinks .pc[class*=-disabled]:hover, body.datalist-compact-style .dataList span.pagelinks .pc[class*=-disabled]:hover {
  background: var(--ml-bg-surface-1) !important;
  border-color: var(--ml-border-default) !important;
}
body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
  /* ── List card (header + table + footer), assembled by ml-theme.js ── */
}
body:not(.datalist-compact-style) .dataList .ml-list-card, body.datalist-compact-style .dataList .ml-list-card {
  background: var(--ml-datalist-bg);
  border: var(--ml-border-width) solid var(--ml-datalist-border);
  border-radius: var(--ml-datalist-radius);
  box-shadow: var(--ml-datalist-shadow);
  overflow: hidden;
  /* the card carries the frame; the scroll area must not repeat it */
}
body:not(.datalist-compact-style) .dataList .ml-list-card .table-wrapper, body.datalist-compact-style .dataList .ml-list-card .table-wrapper {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body:not(.datalist-compact-style) .dataList .ml-list-card .datalist-footer, body.datalist-compact-style .dataList .ml-list-card .datalist-footer {
  border-top: var(--ml-border-width) solid var(--ml-border-weak);
  border-radius: 0;
}
body:not(.datalist-compact-style) .dataList .ml-list-header, body.datalist-compact-style .dataList .ml-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 20px var(--ml-card-padding);
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
}
body:not(.datalist-compact-style) .dataList .ml-list-heading, body.datalist-compact-style .dataList .ml-list-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
}
body:not(.datalist-compact-style) .dataList .ml-list-title, body.datalist-compact-style .dataList .ml-list-title {
  margin: 0;
  color: var(--ml-text-default);
  font-size: var(--ml-type-heading-xs-size);
  line-height: var(--ml-type-heading-xs-line);
  font-weight: var(--ml-type-heading-weight);
  letter-spacing: var(--ml-type-heading-xs-tracking);
  line-height: 1.3;
}
body:not(.datalist-compact-style) .dataList .ml-list-subtitle, body.datalist-compact-style .dataList .ml-list-subtitle {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-label);
}
body:not(.datalist-compact-style) .dataList .ml-list-count, body.datalist-compact-style .dataList .ml-list-count {
  padding: 3px 10px;
  border: var(--ml-border-width) solid var(--ml-border-weak);
  border-radius: var(--ml-datalist-chip-radius);
  background: var(--ml-page-bg);
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-semibold);
  white-space: nowrap;
}
body:not(.datalist-compact-style) .dataList .ml-list-tools, body.datalist-compact-style .dataList .ml-list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
body:not(.datalist-compact-style) .dataList .ml-list-tools select.ml-page-size, body.datalist-compact-style .dataList .ml-list-tools select.ml-page-size {
  width: auto;
  min-width: 72px;
  min-height: var(--ml-control-height-sm) !important;
  padding: 0 10px !important;
  font-size: var(--ml-font-size-label) !important;
}
body:not(.datalist-compact-style) .dataList .ml-list-tools, body.datalist-compact-style .dataList .ml-list-tools {
  /* fallback slot for lists with no filter card: reads before the page size */
}
body:not(.datalist-compact-style) .dataList .ml-list-tools .dropdown-exports, body.datalist-compact-style .dataList .ml-list-tools .dropdown-exports {
  display: block;
  flex: 0 0 auto;
  width: auto;
  /* sized to the tools row, which is shorter than the panel header */
}
body:not(.datalist-compact-style) .dataList .ml-list-tools .dropdown-exports .dropdown-toggle, body.datalist-compact-style .dataList .ml-list-tools .dropdown-exports .dropdown-toggle {
  height: var(--ml-control-height-sm) !important;
  min-height: var(--ml-control-height-sm) !important;
  padding: 0 14px !important;
  font-size: var(--ml-font-size-label) !important;
}
body:not(.datalist-compact-style) .dataList .ml-list-tools .dropdown-exports .dropdown-menu, body.datalist-compact-style .dataList .ml-list-tools .dropdown-exports .dropdown-menu {
  margin: 0 !important;
}

/* ── Exports ── */
.dataList div.exportlinks {
  padding: 12px 16px;
  background: transparent !important;
  border: 0 !important;
  gap: 10px;
  font-size: var(--ml-font-size-label);
}

span.export {
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-label) !important;
  font-weight: var(--ml-font-weight-medium);
}

.dropdown-exports .dropdown-toggle {
  height: var(--ml-control-height-md);
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
  background: var(--ml-bg-surface-1) !important;
  color: var(--ml-text-default) !important;
  border-radius: var(--ml-table-radius) !important;
}

/* ── Compact list: no gaps, single flat surface ── */
body.datalist-compact-style .dataList .table-wrapper {
  background: var(--ml-bg-surface-1);
  box-shadow: none !important;
}
body.datalist-compact-style .dataList table tbody tr {
  background: transparent !important;
}
body.datalist-compact-style .dataList span.pagelinks {
  padding: 0 !important;
  background: transparent !important;
}

/* Lists embedded in a dialog keep the same header treatment */
.iframe-content .dataList table thead tr,
.iframe-content .dataList table thead th {
  background: var(--ml-table-head-bg) !important;
}

/* ============================================================================
   Card mode
   ============================================================================
   Below the phone breakpoint the table stops being a table.

   A table is a shape for comparing rows against each other across a shared set
   of columns. On a 375px screen there is room for one column, so nothing is
   being compared and the shape has no work left to do. What the user is doing
   instead is reading one record at a time and acting on it. So each record
   becomes a card:

       ┌────────────────────────────────────┐
       │ REQ-2024-0184                      │  ← the identifier, promoted
       ├────────────────────────────────────┤
       │ Demandeur           Marie Lambert  │  ← column name, then value
       │ Date                  12/03/2024   │
       │ Statut                  [En cours] │
       ├────────────────────────────────────┤
       │              Consulter    Supprimer│  ← actions, pinned to the bottom
       └────────────────────────────────────┘

   Three moves make it, and they are all about hierarchy rather than fitting:

   1. The frame migrates. The list card carried the border, radius and shadow
      on desktop; here it steps back to a transparent stack and each row carries
      them instead, so a record is a unit you can see the edges of.
   2. The first cell is promoted. The desktop table already bolds it because it
      is the record identifier; here it loses its column-name prefix, takes the
      card title line and is divided from the attributes under it. The remaining
      cells are label/value pairs, the label being the column name the hidden
      header used to carry.
   3. Actions are pinned to the bottom, whatever column they were in, by
      ordering them last in the card flex flow rather than by moving DOM. They
      get a footer strip: on a phone the thing you do to a record should be in
      one predictable place, not wherever the list designer put the column.

   The label text is `data-label`, written onto every cell by
   `melkart-legacy-theme.js` from that cell own column header. */
@media (max-width: 575.98px) {
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- The shell steps back -- */
  }
  body:not(.datalist-compact-style) .dataList .ml-list-card,
  body:not(.datalist-compact-style) .dataList .table-wrapper, body.datalist-compact-style .dataList .ml-list-card,
  body.datalist-compact-style .dataList .table-wrapper {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    /* both are scroll/clip containers on desktop, and both would cut
       the corners and shadows off the cards inside them */
    overflow: visible;
  }
  body:not(.datalist-compact-style) .dataList .ml-list-header, body.datalist-compact-style .dataList .ml-list-header {
    padding: 0 0 var(--ml-space-4);
    border-bottom: 0;
  }
  body:not(.datalist-compact-style) .dataList .ml-list-heading, body.datalist-compact-style .dataList .ml-list-heading {
    flex: 1 1 100%;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* One row of controls, each at the tap floor, allowed to wrap. */
  }
  body:not(.datalist-compact-style) .dataList .ml-list-tools, body.datalist-compact-style .dataList .ml-list-tools {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  body:not(.datalist-compact-style) .dataList .ml-list-tools > *, body.datalist-compact-style .dataList .ml-list-tools > * {
    flex: 1 1 auto;
    min-width: 0;
  }
  body:not(.datalist-compact-style) .dataList .ml-list-tools, body.datalist-compact-style .dataList .ml-list-tools {
    /* Back to the input size, which is 16px here. These two are set at
       the label size on desktop because they are small tools beside a
       heading - but iOS zooms into any control it focuses under 16px
       and does not zoom back out, and a page-size selector is not worth
       leaving the user panning across the list they were reading. */
  }
  body:not(.datalist-compact-style) .dataList .ml-list-tools select, body.datalist-compact-style .dataList .ml-list-tools select {
    font-size: var(--ml-type-input-s-size) !important;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- The table becomes a stack -- */
  }
  body:not(.datalist-compact-style) .dataList table, body.datalist-compact-style .dataList table {
    display: block;
    width: 100% !important;
    border: 0;
  }
  body:not(.datalist-compact-style) .dataList table thead, body.datalist-compact-style .dataList table thead {
    /* Column names are not gone, they are on every card as the label of
       the pair they introduce. The sort links they also carried are put
       back by the select in the list header - see melkart-theme.js. */
    display: none;
  }
  body:not(.datalist-compact-style) .dataList table tbody, body.datalist-compact-style .dataList table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--ml-datalist-card-gap);
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- The row becomes the card -- */
  }
  body:not(.datalist-compact-style) .dataList table tbody tr, body.datalist-compact-style .dataList table tbody tr {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: var(--ml-datalist-card-padding);
    background: var(--ml-datalist-card-bg) !important;
    border: var(--ml-border-width) solid var(--ml-datalist-card-border) !important;
    border-radius: var(--ml-datalist-card-radius) !important;
    box-shadow: var(--ml-datalist-card-shadow);
    /* The zebra stripe and the full-bleed hover overlay are both about
       telling adjacent rows apart inside one surface. Cards are already
       apart. */
  }
  body:not(.datalist-compact-style) .dataList table tbody tr:nth-of-type(odd), body.datalist-compact-style .dataList table tbody tr:nth-of-type(odd) {
    background: var(--ml-datalist-card-bg) !important;
  }
  body:not(.datalist-compact-style) .dataList table tbody tr:hover::after, body.datalist-compact-style .dataList table tbody tr:hover::after {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- The cell becomes a label/value pair -- */
  }
  body:not(.datalist-compact-style) .dataList table tbody td, body.datalist-compact-style .dataList table tbody td {
    display: flex;
    align-items: baseline;
    gap: var(--ml-space-4);
    padding: var(--ml-space-2) 0 !important;
    border: 0 !important;
    /* the value side; the label is start-aligned back below */
    /* a reference number or a URL with no spaces in it must break
       rather than push the card past the viewport */
    overflow-wrap: anywhere;
  }
  body:not(.datalist-compact-style) .dataList table tbody td::before, body.datalist-compact-style .dataList table tbody td::before {
    content: attr(data-label);
    flex: 0 0 var(--ml-datalist-card-label-width);
    text-align: start;
    color: var(--ml-datalist-card-label-fg);
    font-size: var(--ml-type-table-header-size);
    font-weight: var(--ml-type-table-header-weight);
    letter-spacing: var(--ml-type-table-header-tracking);
    line-height: var(--ml-type-table-text-line);
    text-transform: var(--ml-type-table-header-transform);
  }
  body:not(.datalist-compact-style) .dataList table tbody td, body.datalist-compact-style .dataList table tbody td {
    /* Whatever Joget put in the cell fills what is left. Without the
       `min-width: 0` a long unbroken child refuses to shrink and takes
       the card with it. */
  }
  body:not(.datalist-compact-style) .dataList table tbody td > *, body.datalist-compact-style .dataList table tbody td > * {
    flex: 1 1 auto;
    min-width: 0;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* A column with no header text has no name to introduce its value
       with, so the label slot would be 40% of empty. */
  }
  body:not(.datalist-compact-style) .dataList table tbody td[data-label=""]::before, body.datalist-compact-style .dataList table tbody td[data-label=""]::before {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* A cell with nothing in it is a label introducing a blank, which is
       noise on a card and invisible in a table. `data-ml-empty` is set by
       melkart-legacy-theme.js, which can see that the cell holds neither
       text nor a control. */
  }
  body:not(.datalist-compact-style) .dataList table tbody td[data-ml-empty], body.datalist-compact-style .dataList table tbody td[data-ml-empty] {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* A cell spanning the table is the "no records found" row. It is a
       sentence about the list, not a value in a column, so it gets neither
       a label nor the title treatment below - just the middle of the card
       it is alone in. */
  }
  body:not(.datalist-compact-style) .dataList table tbody td[colspan], body.datalist-compact-style .dataList table tbody td[colspan] {
    display: block;
    padding: var(--ml-space-2) 0 !important;
    text-align: center;
    color: var(--ml-text-weak);
  }
  body:not(.datalist-compact-style) .dataList table tbody td[colspan]::before, body.datalist-compact-style .dataList table tbody td[colspan]::before {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- 2. The identifier becomes the card title -- */
  }
  body:not(.datalist-compact-style) .dataList table tbody td:first-child:not(.row_action, [colspan]), body.datalist-compact-style .dataList table tbody td:first-child:not(.row_action, [colspan]) {
    display: block;
    margin-bottom: var(--ml-space-2);
    padding: 0 0 var(--ml-space-3) !important;
    border-bottom: var(--ml-border-width) solid var(--ml-border-weak) !important;
    color: var(--ml-text-default);
    font-size: var(--ml-type-body-xl-size) !important;
    line-height: var(--ml-type-body-xl-line) !important;
    font-weight: var(--ml-font-weight-semibold);
    text-align: start;
    /* it is the title, not a value that needs introducing */
  }
  body:not(.datalist-compact-style) .dataList table tbody td:first-child:not(.row_action, [colspan])::before, body.datalist-compact-style .dataList table tbody td:first-child:not(.row_action, [colspan])::before {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* A cell holding several chips is a column on desktop, where the chips
       are the whole of the cell. Here the cell also carries its label, and
       a column would drop that onto a line of its own. */
  }
  body:not(.datalist-compact-style) .dataList table tbody td:has(> .datalist-chips + .datalist-chips), body.datalist-compact-style .dataList table tbody td:has(> .datalist-chips + .datalist-chips) {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- 3. Actions become the card footer -- */
  }
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action, body.datalist-compact-style .dataList table tbody tr td.row_action {
    /* last in the flow whatever column it came from; every other cell
       is at the default 0 */
    order: 1;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--ml-space-2);
    width: auto !important;
    margin-top: var(--ml-space-2);
    padding: var(--ml-space-3) 0 0 !important;
    border-top: var(--ml-border-width) solid var(--ml-border-weak) !important;
  }
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action::before, body.datalist-compact-style .dataList table tbody tr td.row_action::before {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner, body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: var(--ml-space-2);
    width: 100%;
  }
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action, body.datalist-compact-style .dataList table tbody tr td.row_action {
    /* A labelled action is the card primary button and gets the room to
       look like one; icon-only actions stay square beside it. */
  }
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .row_action_inner > .btn,
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action > .btn, body.datalist-compact-style .dataList table tbody tr td.row_action > .row_action_inner > .btn,
  body.datalist-compact-style .dataList table tbody tr td.row_action > .btn {
    flex: 0 1 auto;
    justify-content: center;
    padding: 0 var(--ml-space-4) !important;
  }
  body:not(.datalist-compact-style) .dataList table tbody tr td.row_action, body.datalist-compact-style .dataList table tbody tr td.row_action {
    /* An action cell with nothing in it would draw a footer rule under
       a card and then nothing under that. It is caught by
       `data-ml-empty` above like any other empty cell, and NOT by a
       `:has(.row_action_inner:empty)` of its own: `:empty` counts
       whitespace as content, so the newline Joget leaves inside that
       div makes the match miss about as often as it lands. */
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* A checkbox column is a bulk-selection affordance, and bulk selection
       is not what a phone is for. It keeps its cell so nothing Joget submits
       goes missing, but it sits above the title rather than claiming a
       label/value row of its own. */
  }
  body:not(.datalist-compact-style) .dataList table tbody td:has(> input[type=checkbox]:only-child), body.datalist-compact-style .dataList table tbody td:has(> input[type=checkbox]:only-child) {
    order: -1;
    justify-content: flex-start;
    padding-bottom: var(--ml-space-1) !important;
  }
  body:not(.datalist-compact-style) .dataList table tbody td:has(> input[type=checkbox]:only-child)::before, body.datalist-compact-style .dataList table tbody td:has(> input[type=checkbox]:only-child)::before {
    display: none;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- Footer -- */
  }
  body:not(.datalist-compact-style) .dataList .datalist-footer, body.datalist-compact-style .dataList .datalist-footer {
    /* the DOM order is [links, banner]; reversing the column puts the
       count above the pager, which is the order they are read in */
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--ml-space-3);
    margin-top: var(--ml-space-4) !important;
    padding: var(--ml-space-4) 0 0;
    background: transparent;
    border-top: var(--ml-border-width) solid var(--ml-border-weak);
    border-radius: 0;
    /* the legacy layer gives both children `flex: 1`, which shares out
       a row and stretches a column */
  }
  body:not(.datalist-compact-style) .dataList .datalist-footer .pagebanner,
  body:not(.datalist-compact-style) .dataList .datalist-footer .pagelinks, body.datalist-compact-style .dataList .datalist-footer .pagebanner,
  body.datalist-compact-style .dataList .datalist-footer .pagelinks {
    flex: 0 0 auto;
  }
  body:not(.datalist-compact-style) .dataList .datalist-footer .pagebanner, body.datalist-compact-style .dataList .datalist-footer .pagebanner {
    text-align: center;
  }
  body:not(.datalist-compact-style) .dataList span.pagelinks, body.datalist-compact-style .dataList span.pagelinks {
    justify-content: center;
    flex-wrap: wrap;
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* -- Filters -- */
  }
  body:not(.datalist-compact-style) .dataList .filter_form, body.datalist-compact-style .dataList .filter_form {
    padding: var(--ml-card-padding);
  }
  body:not(.datalist-compact-style) .dataList .filter_form .filters, body.datalist-compact-style .dataList .filter_form .filters {
    grid-template-columns: 1fr;
    gap: var(--ml-space-3);
  }
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList {
    /* The submit and the export dropdown share the row and fill it: two
       half-width buttons read as a pair of equals, which is what they are. */
  }
  body:not(.datalist-compact-style) .dataList .ml-panel-actions, body.datalist-compact-style .dataList .ml-panel-actions {
    flex: 1 1 100%;
    justify-content: stretch;
  }
  body:not(.datalist-compact-style) .dataList .ml-panel-actions > *, body.datalist-compact-style .dataList .ml-panel-actions > * {
    flex: 1 1 0;
    min-width: 0;
  }
  body:not(.datalist-compact-style) .dataList .ml-panel-actions .dropdown-exports,
  body:not(.datalist-compact-style) .dataList .ml-panel-actions .dropdown-exports .dropdown-toggle, body.datalist-compact-style .dataList .ml-panel-actions .dropdown-exports,
  body.datalist-compact-style .dataList .ml-panel-actions .dropdown-exports .dropdown-toggle {
    width: 100%;
  }
}
/* -- Sort control --
   Built into the list header by melkart-theme.js and shown only in card mode,
   because it exists to replace the sortable column headers the card hides. It
   is a plain select rather than a menu: it has one job, the options are the
   column names, and picking one follows that column own sort link. */
.ml-sort {
  display: none;
}

@media (max-width: 575.98px) {
  body:not(.datalist-compact-style) .dataList, body.datalist-compact-style .dataList .ml-list-tools .ml-sort {
    display: block;
    flex: 1 1 140px;
    width: auto;
    min-height: var(--ml-control-height-sm) !important;
    padding: 0 var(--ml-space-2-5) !important;
  }
}
/**
 * Melkart theme — form/list plugins
 *
 * Widgets that ship their own look (multi-selects, repeaters, tag chips) pulled
 * onto the theme's own control and dropdown tokens, so they follow whichever
 * identity is active instead of carrying a third look of their own.
 */
/* ── Chosen multi-select chips ── */
.chosen-container .chosen-choices {
  min-height: var(--ml-control-height) !important;
  padding: 6px 10px !important;
  gap: 6px;
}
.chosen-container .chosen-choices > li.search-choice {
  padding: 5px 10px !important;
  border-radius: var(--ml-dropdown-radius) !important;
  background: var(--ml-page-bg) !important;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-medium);
  box-shadow: none !important;
}
.chosen-container .chosen-choices > li.search-choice:hover {
  box-shadow: none !important;
  background: var(--ml-border-default) !important;
}

.chosen-choices li.search-field input[type=text] {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.chosen-container .chosen-single {
  min-height: var(--ml-control-height) !important;
  font-size: var(--ml-font-size-base);
}

/* ── Multi-select list filter ── */
.filters .filter-cell > .typeAheadMultiSelect .btn-group > button.multiselect {
  height: var(--ml-control-height-md) !important;
  padding: 0 14px !important;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
  border-radius: var(--ml-dropdown-radius) !important;
  box-shadow: none !important;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-base) !important;
  font-weight: var(--ml-font-weight-regular);
  justify-content: space-between !important;
}

.dataList .filter_form .multiselect-container {
  padding: 6px !important;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-dropdown-radius) !important;
  box-shadow: none !important;
}
.dataList .filter_form .multiselect-container .input-group {
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
}
.dataList .filter_form .multiselect-container .input-group::before {
  color: var(--ml-text-disabled);
  padding: 0 !important;
  margin-right: 2px !important;
  margin-left: 12px;
}
.dataList .filter_form .multiselect-container .input-group .multiselect-search {
  min-height: var(--ml-control-height-sm) !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.typeAheadMultiSelect .multiselect-container > li > a > label {
  border-radius: var(--ml-dropdown-radius);
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-label);
}

.typeAheadMultiSelect .multiselect-container > li.active > a > label {
  background: var(--ml-bg-brand-weakest);
  color: var(--ml-text-on-brand-weak);
  font-weight: var(--ml-font-weight-semibold);
}

/* ── Repeater tables ── */
.subform_repeater_container table {
  border-collapse: collapse;
  border-spacing: 0;
}

.subform_repeater_container table thead tr,
.subform_repeater_container table thead th {
  background-color: var(--ml-table-head-bg) !important;
  color: var(--ml-text-weak) !important;
  font-size: var(--ml-font-size-n4) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
  letter-spacing: var(--ml-tracking-xl);
  text-transform: uppercase;
}

.subform_repeater_container table thead tr th:first-child,
.subform_repeater_container table thead tr th:last-child,
.subform_repeater_container tr td:nth-child(2),
.subform_repeater_container tr td:last-child {
  border-radius: 0;
}

.subform_repeater_container table thead th {
  border-bottom: var(--ml-border-width) solid var(--ml-border-default) !important;
}

.subform_repeater_container table tbody tr {
  background: transparent !important;
  border-radius: 0;
}
.subform_repeater_container table tbody tr:last-of-type {
  border-bottom: 0 !important;
}

.subform_repeater_container table td {
  border-width: 0 0 1px 0 !important;
  border-color: var(--ml-border-weak) !important;
  padding: 10px !important;
}

.subform_repeater .repeater-action a.repeater-action-delete {
  width: var(--ml-control-height-sm);
  height: var(--ml-control-height-sm);
  border-radius: var(--ml-dropdown-radius) !important;
  background: var(--ml-bg-danger-weak) !important;
}
.subform_repeater .repeater-action a.repeater-action-delete:hover {
  background: var(--ml-bg-danger-weak) !important;
}

/* ── Steps indicator ── */
.stepsIcon .step .step-icon {
  background: var(--ml-border-default) !important;
}
.stepsIcon .step .step-title {
  color: var(--ml-text-weak) !important;
  font-weight: var(--ml-font-weight-medium) !important;
}
.stepsIcon .step.completed .step-icon-wrap .step-icon,
.stepsIcon .step.completed .step-icon-wrap::before {
  background: var(--ml-bg-brand-default) !important;
}
.stepsIcon .step.completed .step-icon i {
  color: var(--ml-text-on-brand) !important;
}
.stepsIcon .step.completed h4.step-title {
  color: var(--ml-text-default) !important;
}

/* ── Inline "friendly touch" option buttons ── */
.friendly-touch-option,
.friendly-touch label {
  border-radius: var(--ml-dropdown-radius) !important;
}

/* ── File preview cards ── */
.file-preview,
.attachment-item,
.form-fileupload .files > div {
  border-radius: var(--ml-dropdown-radius) !important;
}

.from_to_date_filter_container {
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
}

/* ── Enhanced choice fields (org.joget.plugin.melkart.EnhanceChoiceFields) ──
 *
 * The plugin rewrites a radio or checkbox group into a row of tiles - icon,
 * title, description, a check mark on the one you picked - and inlines a
 * <style> per element to paint them. That block is written for a light page
 * and says so: a slate fill, a slate icon disc, #666 description text, a hover
 * mixed toward `white`, and a selected wash written `hsl(from <accent> h s
 * 98%)`, which pins lightness at 98% whatever the scheme. All of it goes
 * white-on-white in dark mode.
 *
 * Nothing in that block carries `!important`, so `!important` here is enough
 * to win however the two land - which matters, because the plugin emits its
 * <style> per element, inside <body>, after this stylesheet.
 *
 * `--enhance-choice-primary` is the one thing kept: the plugin writes the
 * option's own colour inline on each tile, and that is authored data, not
 * identity. `--ml-choice-accent` reads it and falls back to the theme's brand
 * for an option the author gave no colour. It is declared here, on the tile,
 * rather than in the token layer, because a custom property substitutes on the
 * element that declares it - a `body`-level one would bake in the fallback
 * before reaching a tile, and so would anything mixed from it.
 *
 * Everything the accent does not touch reads a `--ml-choice-*` token, which is
 * how the three identities differ without a file each: Material lifts the tile
 * and rounds the disc from its own token block, SIAM gets 2px corners and no
 * shadow from the scales. Only the selected state needs a preset file, and
 * only for SIAM - see presets/siam/plugins.
 */
.selectable-cards {
  gap: var(--ml-choice-card-gap) !important;
}

.selectable-cards .selectable-card {
  --ml-choice-accent: var(--enhance-choice-primary, var(--ml-bg-brand-default));
  padding: var(--ml-choice-card-padding) !important;
  background: var(--ml-choice-card-bg) !important;
  border: var(--ml-choice-card-border-width) solid var(--ml-choice-card-border) !important;
  border-radius: var(--ml-choice-card-radius) !important;
  box-shadow: var(--ml-choice-card-shadow) !important;
  color: var(--ml-text-default) !important;
}

.selectable-cards:not(.readonly-cards) .selectable-card:hover {
  background: color-mix(in srgb, var(--ml-choice-accent) 6%, var(--ml-choice-card-bg)) !important;
  border-color: color-mix(in srgb, var(--ml-choice-accent) 30%, var(--ml-choice-card-border)) !important;
}

/* `:not(.no-icon)` is the plugin's own flag for an option that was given an
   icon. Without it this would draw a 32px disc around the empty <i> the
   template ships either way. */
.selectable-cards .selectable-card:not(.no-icon) .card-icon {
  flex: 0 0 auto;
  width: var(--ml-choice-icon-size) !important;
  height: var(--ml-choice-icon-size) !important;
  border-radius: var(--ml-choice-icon-radius) !important;
  background: var(--ml-choice-icon-bg) !important;
  color: var(--ml-choice-icon-fg) !important;
  font-size: var(--ml-icon-size-sm) !important;
}

.selectable-cards .selectable-card .card-info .selectable-label {
  font-size: var(--ml-type-caption-m-size) !important;
  line-height: var(--ml-type-caption-m-line) !important;
  font-weight: var(--ml-type-caption-weight) !important;
  letter-spacing: var(--ml-type-caption-m-tracking);
  color: var(--ml-text-default) !important;
}

.selectable-cards .selectable-card .card-info .selectable-desc {
  font-size: var(--ml-type-body-m-size) !important;
  line-height: var(--ml-type-body-m-line) !important;
  font-weight: var(--ml-type-body-weight) !important;
  letter-spacing: var(--ml-type-body-m-tracking);
  color: var(--ml-text-weak) !important;
}

.selectable-cards .selectable-card .check-icon {
  color: var(--ml-choice-accent) !important;
  font-size: var(--ml-icon-size-md) !important;
}

/* -- the option you picked --
   The accent as a hairline and a wash of itself, not as a fill: the tile has a
   title, a description and an icon on it, and a saturated ground under all
   three is the identity SIAM asks for and the others do not. The border width
   does not change with the state - a 2px selected edge on a 1px resting one
   moves every tile in the row by a pixel. */
.selectable-cards .selectable-card.active {
  background: color-mix(in srgb, var(--ml-choice-accent) 8%, var(--ml-choice-card-bg)) !important;
  border-color: var(--ml-choice-accent) !important;
  box-shadow: var(--ml-choice-card-shadow-selected) !important;
}

.selectable-cards .selectable-card.active .card-info .selectable-label {
  color: var(--ml-choice-accent) !important;
}

.selectable-cards .selectable-card.active:not(.no-icon) .card-icon {
  background: var(--ml-choice-accent) !important;
  color: var(--ml-choice-icon-fg-selected) !important;
}

/* -- read-only --
   The plugin drops the whole group to 0.8 opacity, which reads as "off" on a
   light page and as "sunk into the page" on a dark one. A disabled input
   surface says the same thing in both. */
.selectable-cards.readonly-cards {
  opacity: 1 !important;
}

.selectable-cards.readonly-cards .selectable-card {
  background: var(--ml-input-bg-disabled) !important;
  border-color: var(--ml-border-weak) !important;
  box-shadow: none !important;
}

.selectable-cards.readonly-cards .selectable-card:not(.active) .card-info .selectable-label,
.selectable-cards.readonly-cards .selectable-card .card-info .selectable-desc {
  color: var(--ml-text-disabled) !important;
}

/* ── Form stepper (org.joget.plugin.melkart.FormStepper) ──
 *
 * bs-stepper ships literal colours - a #6c757d trigger, a #6c757d/#007bff
 * circle, rgba(0,0,0,.12) connectors, an rgba(0,0,0,.06) hover - and the
 * plugin's template inlines a <style> of its own on top of them, with a white
 * header card and a #007bff active label. Neither survives a dark scheme.
 *
 * Both land after this stylesheet: `bs-stepper.min.css` is <link>ed from the
 * template, inside <body>, and the inline block follows it. So every selector
 * here carries a `body` prefix to out-specify them on order-independent
 * grounds, and the two facing an inlined `!important` - the active and the
 * errored label - carry one of their own.
 *
 * This is the neutral stepper: a header card, a filled circle per step, a
 * hairline between them, brand on the step you are on. Access recomposes it
 * into a segmented strip; see presets/access/plugins.
 */
body .stepper-section > [class*=form-column],
body .stepper-section > .section-content > [class*=form-column] {
  padding: 0 !important;
}

body .stepper-section .bs-stepper-header {
  background: var(--ml-card-bg) !important;
  border-radius: var(--ml-dropdown-radius) !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  /* bs-stepper bleeds the strip 10px past its container under 520px, which
     was meant for a header with no box of its own. */
  margin-inline: 0 !important;
}

body .stepper-section .bs-stepper-header .step .step-trigger {
  color: var(--ml-text-weak);
  border-radius: var(--ml-btn-radius-md);
}
body .stepper-section .bs-stepper-header .step .step-trigger:hover {
  background-color: var(--ml-bg-highlight-dark-alpha-050);
}
body .stepper-section .bs-stepper-header .step .step-trigger {
  /* bs-stepper paints `:focus` brand-blue and drops the outline; a click
     leaves the trigger focused, so this is a resting state, not a keyboard
     one. The ring is put back on `:focus-visible` only. */
}
body .stepper-section .bs-stepper-header .step .step-trigger:focus {
  color: var(--ml-text-default);
}
body .stepper-section .bs-stepper-header .step .step-trigger:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ml-focus-ring-color);
}

body .stepper-section .bs-stepper-header .bs-stepper-circle {
  background-color: var(--ml-bg-strong);
  color: var(--ml-text-weak);
}

body .stepper-section .bs-stepper-header .step.active .bs-stepper-circle {
  background-color: var(--ml-bg-brand-default);
  color: var(--ml-text-on-brand);
}

body .stepper-section .bs-stepper-header .step.active .bs-stepper-label {
  color: var(--ml-text-brand-default) !important;
}

body .stepper-section .bs-stepper-header .line {
  background-color: var(--ml-border-weak);
}

/* -- a step whose pane holds a field-level error -- */
body .stepper-section .bs-stepper-header .step.has-error .bs-stepper-circle {
  background-color: var(--ml-bg-danger-default);
  color: var(--ml-btn-danger-solid-fg);
}

body .stepper-section .bs-stepper-header .step.has-error .bs-stepper-label {
  color: var(--ml-text-danger-default) !important;
}

/* ── Multi paged form (org.melkart.MultiPagedForm) ──
 *
 * The plugin ships its own stylesheet and routes the wizard card's colours
 * through `--mpf-*`; those are fed from `tokens/vendor`. What is left here is
 * the half it hardcoded - the tab strip, the error state, the mobile nav - plus
 * the two places where `--mpf-accent` is used as small text or a thin outline
 * rather than a fill, which needs the readable brand *text* role instead.
 *
 * Every selector carries a `body` prefix on purpose. The plugin's stylesheet is
 * <link>ed by the form template, inside <body> and therefore after ours, so a
 * rule of equal specificity would lose on order; the `!important` ones also have
 * to beat the forced error block the template inlines after that.
 */
body .multiPagedForm .page-nav-panel .nav_item button {
  color: var(--ml-text-weak);
}

body .multiPagedForm .page-nav-panel .nav_item.current button {
  color: var(--ml-text-default);
}

/* -- tab mode -- */
body .multiPagedForm.tab .page-nav-panel {
  border-bottom-color: var(--ml-border-default);
}

body .multiPagedForm.tab .page-nav-panel .nav_item button {
  background: var(--ml-bg-strong);
  border-color: var(--ml-border-default);
}

body .multiPagedForm.tab .page-nav-panel .nav_item.current button {
  background: var(--ml-card-bg);
  color: var(--ml-text-default);
}

/* -- wizard mode -- */
body .multiPagedForm.wizard .page-nav-panel .nav_item button:hover {
  border-color: var(--ml-border-hover);
}

/* An outlined badge and an uppercase caption: brand as a fill is legible on a
   dark card, brand as a hairline or 10px text is not. */
body .multiPagedForm.wizard .nav_item.state-enabled .mpf-step-badge {
  border-color: var(--ml-border-brand-default);
}

body.dark-version .multiPagedForm.wizard .page-nav-panel .nav_item.current > button {
  background: var(--ml-color-neutral-700);
}

body .multiPagedForm.wizard .nav_item.state-enabled .mpf-step-sub,
body .multiPagedForm.wizard .nav_item.current .mpf-step-sub {
  color: var(--ml-text-brand-default);
}

/* -- error state -- */
body .multiPagedForm .page-nav-panel .nav_item.error button {
  border-color: var(--ml-border-danger-default) !important;
  box-shadow: inset 0 0 0 2px var(--ml-bg-danger-default) !important;
  color: var(--ml-text-danger-default);
}

body .multiPagedForm .page-nav-panel .nav_item.error .mpf-step-title {
  color: var(--ml-text-danger-default) !important;
}

body .multiPagedForm .page-nav-panel .nav_item.error .mpf-step-badge {
  background: var(--ml-bg-danger-default) !important;
  border-color: var(--ml-border-danger-default) !important;
  color: var(--ml-btn-danger-solid-fg) !important;
}

body .multiPagedForm .page-nav-panel .nav_item.error button::after {
  background: var(--ml-bg-danger-default);
  color: var(--ml-btn-danger-solid-fg);
}

body .multiPagedForm.tab .page-nav-panel .nav_item.error button {
  background: var(--ml-bg-danger-weak);
  color: var(--ml-text-on-danger-weak);
}

body .multiPagedForm.wizard .page-nav-panel .nav_item.error button {
  background: var(--ml-bg-danger-weakest);
}

body .multiPagedForm .page-container > .page.error {
  border-color: var(--ml-border-danger-default) !important;
  border-width: 2px !important;
  background: transparent !important;
}

/* -- mobile: tab mode swaps to a stack of full-width rows -- */
@media (max-width: 767.98px) {
  /* The RTL copy is not cosmetic: the plugin sets the grey on a single rule
     whose second selector is `.rtl .multiPagedForm...`, which out-specifies
     the `body`-prefixed one above whenever the page is right-to-left. */
  body .multiPagedForm.tab .page-nav-panel .nav_item button,
  body.rtl .multiPagedForm.tab .page-nav-panel .nav_item button {
    background: var(--ml-bg-strong);
    border-color: var(--ml-border-default);
  }
  body .multiPagedForm.tab .page-nav-panel .nav_item.current button,
  body .multiPagedForm.tab .page-nav-panel .nav_item.current button:disabled {
    background: var(--ml-bg-strong);
    color: var(--ml-text-default);
  }
  body .multiPagedForm.tab .page-container {
    border-color: var(--ml-border-default);
  }
}
/* ============================================================================
   Narrow screens
   ============================================================================
   Three of the plugins here draw a horizontal strip whose width is a function
   of how many items the app configured - a step per form page, a tile per
   choice, a column per repeater field - so none of them has a width the theme
   can predict. On a desktop that is fine; on a phone each one is the reason the
   whole page scrolls sideways, which is the worst failure mode a layout has,
   because it moves everything else too.

   Two answers, picked per plugin by asking whether the items are a sequence or
   a set:

   - A sequence keeps its order and scrolls inside its own box. The steps of a
     wizard mean something in order and stacking them vertically would eat the
     screen before the form under them got any, so the strip scrolls and snaps.
   - A set reflows to one column. Choice tiles are alternatives, not an order,
     so a column is a truer shape for them on a phone than a squeezed row.

   The repeater is the exception that keeps a horizontal scroll on the TABLE
   rather than reflowing to cards like the data list does: its cells are inputs
   the user is filling in, and a two-line label/value pair around a text field
   is harder to fill than a column you scroll to. */
@media (max-width: 767.98px) {
  /* -- Icon stepper (sequence) --
     A five-step strip at the desktop size is 400px of icons before the
     titles, on a 360px screen. The step shrinks, and what still does not fit
     scrolls, one step at a time. */
  .stepsIcon {
    --step-size: 44px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    /* the row is the scroll container, so the fade-out of a cut-off step is
       the affordance - it must not be clipped by a scrollbar gutter */
    scrollbar-width: none;
  }
  .stepsIcon::-webkit-scrollbar {
    display: none;
  }
  .stepsIcon .step {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }
  .stepsIcon .step .step-title {
    font-size: var(--ml-font-size-label) !important;
  }
  /* -- bs-stepper header (sequence) --
     Same shape, different plugin. bs-stepper lays its header out with
     `flex-wrap: wrap` under 520px, which drops each step onto a line of its
     own and turns the header card into a column taller than the pane it
     heads. */
  body .stepper-section .bs-stepper-header {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  body .stepper-section .bs-stepper-header::-webkit-scrollbar {
    display: none;
  }
  body .stepper-section .bs-stepper-header .step {
    scroll-snap-align: center;
    flex: 1 0 auto;
  }
  body .stepper-section .bs-stepper-header .step button {
    width: 100% !important;
  }
  body .stepper-section .bs-stepper-header .line {
    flex: 0 0 var(--ml-space-4);
    min-width: var(--ml-space-4);
  }
  /* -- Multi paged form nav (sequence) --
     Its tab mode already stacks at this width (see above). Wizard mode keeps
     its rail, which is the same strip problem. */
  body .multiPagedForm.wizard .page-nav-panel {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  body .multiPagedForm.wizard .page-nav-panel::-webkit-scrollbar {
    display: none;
  }
  /* -- Multi paged form pages --
     The card the plugin wraps a page in is the outermost box between the
     form and the viewport, and it is sized for a desktop: a min-width on the
     container holds the whole form wider than the screen, so the fields
     inside it never get the chance to stack no matter what the form layer
     says. Releasing it here is what lets the shrink floor in
     `components/_form.scss` reach the page. */
  body .multiPagedForm,
  body .multiPagedForm .mpf-container,
  body .multiPagedForm .page-container,
  body .multiPagedForm .page-container > .page {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body .multiPagedForm .mpf-container .subform-section .subform-column {
    padding: 10px 5px !important;
  }
  /* -- Choice tiles (set) --
     One column. The tile is a title, a description and an icon side by side;
     two of those in half a phone screen is three words per line. */
  .selectable-cards {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  .selectable-cards .selectable-card {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* -- Repeater (scrolls) --
     The scroll is already there; what was missing was any sign of it. The
     inline shadow appears only against a scrolled edge, so a table that fits
     shows nothing and a table that does not shows which way it goes. */
  .subform_repeater_container {
    background: linear-gradient(to right, var(--ml-card-bg) 30%, transparent), linear-gradient(to left, var(--ml-card-bg) 30%, transparent), linear-gradient(to right, var(--ml-bg-highlight-dark-alpha-100), transparent 12px), linear-gradient(to left, var(--ml-bg-highlight-dark-alpha-100), transparent 12px);
    background-repeat: no-repeat;
    background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100%;
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-attachment: local, local, scroll, scroll;
  }
  /* The delete action is the one control in a repeater row a finger has to
     find among text fields. */
  .subform_repeater .repeater-action a.repeater-action-delete {
    width: var(--ml-touch-target);
    height: var(--ml-touch-target);
  }
  /* -- Multi-selects --
     Both of these render a panel positioned against their trigger, and both
     ship a fixed pixel width that was chosen for a desktop column. */
  .chosen-container,
  .chosen-container .chosen-drop {
    max-width: 100% !important;
  }
  .typeAheadMultiSelect .btn-group,
  .typeAheadMultiSelect .multiselect-container {
    max-width: 100% !important;
  }
  .typeAheadMultiSelect .multiselect-container {
    width: 100% !important;
  }
  /* -- Drop zone --
     Its own message block is centred in a box sized for a desktop column. */
  .dropzone.form-fileupload {
    padding: var(--ml-space-5) var(--ml-space-4) !important;
  }
  /* An uploaded file is a name, a size and a remove button; the 5% indent
     came out of the width the name had to wrap in. */
  ul.form-fileupload-value {
    padding-left: 0 !important;
  }
  ul.form-fileupload-value > li {
    gap: var(--ml-space-2-5);
  }
  ul.form-fileupload-value li .remove {
    /* it was a 16px glyph with no box around it, between two rows of
       file names */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--ml-touch-target);
    min-height: var(--ml-touch-target);
    margin-inline-start: auto !important;
  }
}
/**
 * Melkart theme — overlays
 *
 * Dropdowns, dialogs, modals, tooltips, popovers, toasts, the block-UI veil.
 *
 * These all used to read `--ml-modal-radius` - a dropdown, a tooltip, a badge
 * and a button all took the modal's corner - and force `box-shadow: none`,
 * which is why `--ml-dropdown-radius`, `--ml-badge-radius`,
 * `--ml-dropdown-shadow` and `--ml-modal-shadow` had no consumers between them.
 * Each object now reads its own tokens, so a preset can round a dropdown
 * without rounding every dialog on the page.
 */
/* ── Dropdowns ── */
.dropdown-menu {
  padding: 6px !important;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-dropdown-radius) !important;
}
.dropdown-menu::before {
  display: none !important;
}
.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  border-radius: var(--ml-radius-xs) !important;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-medium);
  transition: background-color var(--ml-transition);
}
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus {
  background: var(--ml-page-bg) !important;
  color: var(--ml-text-default) !important;
}
.dropdown-menu .dropdown-item i,
.dropdown-menu .dropdown-item [class*=fa-],
.dropdown-menu .dropdown-item [class*=zmdi] {
  width: 16px;
  margin: 0 !important;
  font-size: var(--ml-font-size-label);
  text-align: center;
  color: var(--ml-text-disabled);
}
.dropdown-menu .dropdown-divider {
  margin: 6px 0;
  border-top: var(--ml-border-width) solid var(--ml-border-weak);
}

.dropdown .dropdown-menu.dropdown-menu-end.notifications {
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  min-width: 320px;
}

.inbox-notifications .inbox-notifications-title {
  color: var(--ml-text-default);
  font-size: var(--ml-type-caption-wide-size);
  line-height: var(--ml-type-caption-wide-line);
  font-weight: var(--ml-type-caption-wide-weight);
  text-transform: var(--ml-type-caption-wide-transform);
  letter-spacing: var(--ml-type-caption-wide-tracking);
}
.inbox-notifications .inbox-notifications-list .dropdown-item {
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
  border-radius: 0 !important;
}
.inbox-notifications .inbox-notifications-list .avatar {
  width: 36px !important;
  height: 36px !important;
  background: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
  font-size: var(--ml-font-size-base) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
}

/* ── jQuery UI dialogs (form / list popups) ── */
.ui-widget-overlay {
  background: var(--ml-modal-backdrop) !important;
  opacity: 1 !important;
}

.ui-dialog {
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-modal-radius) !important;
  box-shadow: var(--ml-modal-shadow) !important;
  overflow: hidden;
}
.ui-dialog .ui-dialog-content {
  border-radius: 0 !important;
  background: var(--ml-bg-surface-1) !important;
}
.ui-dialog .ui-dialog-titlebar-close::before {
  color: var(--ml-text-weak);
}

/* ── Bootstrap modals ── */
.modal-content {
  background: var(--ml-bg-surface-1);
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-modal-radius) !important;
}

.modal-header {
  padding: 20px var(--ml-card-padding);
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
}
.modal-header .modal-title {
  font-size: var(--ml-font-size-n1);
  font-weight: var(--ml-font-weight-semibold);
}

.modal-body {
  padding: var(--ml-card-padding);
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-base);
  line-height: 1.7;
}

.modal-footer {
  padding: 18px var(--ml-card-padding);
  border-top: var(--ml-border-width) solid var(--ml-border-weak);
  gap: 10px;
}

/* ── SweetAlert2 ── */
div:where(.swal2-container) .swal2-popup {
  border: var(--ml-border-width) solid var(--ml-border-default);
  border-radius: var(--ml-modal-radius) !important;
  background: var(--ml-bg-surface-1) !important;
  font-family: var(--ml-font-body) !important;
}

div:where(.swal2-container) .swal2-title {
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-1);
  font-weight: var(--ml-font-weight-semibold);
}

div:where(.swal2-container) .swal2-html-container {
  color: var(--ml-text-weak) !important;
  font-size: var(--ml-font-size-base);
}

.swal2-actions {
  --bs-btn-border-radius: var(--ml-btn-radius-sm);
  gap: 10px;
}
.swal2-actions button {
  height: var(--ml-control-height-md);
  padding: 0 20px !important;
  border-radius: var(--ml-btn-radius-sm) !important;
  background-color: var(--ml-bg-brand-default) !important;
  border-color: var(--ml-bg-brand-default) !important;
  box-shadow: none !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-xl);
}
.swal2-actions button:hover, .swal2-actions button:focus {
  background-color: var(--ml-bg-brand-hover) !important;
  border-color: var(--ml-bg-brand-hover) !important;
  box-shadow: none !important;
}
.swal2-actions button {
  /* The dialog's secondary button, and styled off the same tokens as the
     one in `_buttons.scss` - swal2 renders it outside anything `.btn`
     matches, so it has to restate the treatment rather than inherit it. */
}
.swal2-actions button.swal2-cancel {
  background-color: var(--ml-btn-secondary-bg) !important;
  border: var(--ml-border-width) solid var(--ml-btn-secondary-border) !important;
  box-shadow: none !important;
  color: var(--ml-btn-secondary-fg) !important;
}
.swal2-actions button.swal2-cancel:hover, .swal2-actions button.swal2-cancel:focus {
  background-color: var(--ml-btn-secondary-bg-hover) !important;
  border-color: var(--ml-btn-secondary-border-hover) !important;
  box-shadow: none !important;
}

/* ── Loaders ── */
.blockUI.blockMsg.blockPage {
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-modal-radius) !important;
  box-shadow: var(--ml-modal-shadow) !important;
}
.blockUI.blockMsg.blockPage h1 {
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-0) !important;
  font-weight: var(--ml-font-weight-semibold) !important;
}

.page-loading-container {
  background: var(--ml-page-bg);
}

/* ── Tooltips & popovers ── */
.tooltip-inner {
  border-radius: var(--ml-radius-sm) !important;
  background: var(--ml-text-default) !important;
  color: var(--ml-color-white);
  font-family: var(--ml-font-body);
  font-size: var(--ml-font-size-label);
}

.popover {
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-dropdown-radius) !important;
  box-shadow: var(--ml-dropdown-shadow) !important;
  font-family: var(--ml-font-body);
}

/* ── Badges ── */
.badge {
  padding: 5px 10px;
  border-radius: var(--ml-badge-radius) !important;
  background-image: none !important;
  font-size: var(--ml-font-size-n4);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-lg);
  line-height: 1.4;
  text-transform: none;
}
.badge.bg-gradient-primary, .badge.badge-primary {
  background-color: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
}
.badge.bg-gradient-success, .badge.badge-success {
  background-color: var(--ml-bg-success-weak) !important;
  color: var(--ml-text-on-success-weak) !important;
}
.badge.bg-gradient-warning, .badge.badge-warning {
  background-color: var(--ml-bg-warning-weak) !important;
  color: var(--ml-text-on-warning-weak) !important;
}
.badge.bg-gradient-danger, .badge.badge-danger {
  background-color: var(--ml-bg-danger-weak) !important;
  color: var(--ml-text-on-danger-weak) !important;
}
.badge.bg-gradient-info, .badge.badge-info {
  background-color: var(--ml-bg-info-weak) !important;
  color: var(--ml-text-on-info-weak) !important;
}

/**
 * Melkart theme — login
 *
 * Three layouts, one set of mechanics. `login-illustration`, `login-basic` and
 * `login-cover` all reuse the same field recipe, intro block, button and
 * signup/footer rules - a `.ml-login__field` is styled once here and looks
 * right in a split-screen column, an inverted card and a light one. What
 * differs between them is composition: how much of the viewport the brand ink
 * or photo takes, whether the sign-in surface sits on it or beside it, whether
 * the page scrolls. That composition is mechanics too - it lives in the
 * variant-specific sections below - while what marks an *identity* on top of a
 * given layout (SIAM's gradient bars, Material's elevation) is decided in
 * `presets/<name>/_login.scss`.
 *
 * `login-illustration`: a brand panel on the leading side, full viewport, and a
 * quiet sign-in column on the trailing one.
 *
 * `login-basic`: the same brand ink (or photo) fills the whole viewport, and
 * the sign-in column sits inverted inside a transparent white-bordered card.
 * The page never scrolls - see the section below for why.
 *
 * `login-cover`: a short ink or photo banner at the top of the page, and a
 * light, ordinary card that overlaps its lower edge and continues in normal
 * flow beneath it. The page scrolls freely, which is the whole difference
 * from `login-basic`.
 *
 * `loginImageStyle` (rounded/full) and `showLoginImageOverlay` apply to
 * whichever of the three is active; each variant's section says what "rounded"
 * and "the overlay" mean for it, because an inset split panel, an inset
 * backdrop and an inset banner are three different pieces of geometry.
 */
/* The login backdrop. It was the last place in the stylesheet holding a palette
   of its own - the old navy and gold - so it now reads the brand ramp and
   follows a configured brand colour like everything else.
   The scrims need the ramp at partial alpha and the ramp is hex, so they use
   color-mix rather than a second set of rgb triples. */
/* the basic layout puts the form itself on the photo, not just brand copy, so
   its scrim closes the mid-gradient window the hero can afford to leave open */
body#login {
  background: var(--ml-bg-surface-1) !important;
}
body#login.login-type-illustration, body#login.login-type-cover, body#login.login-type-basic {
  background: var(--ml-bg-surface-1) !important;
}
body#login.dark-version {
  background: var(--ml-page-bg) !important;
}
body#login {
  /* the shell is only a wrapper here: no canvas, no rounding, no offset */
}
body#login .main-content {
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
body#login {
  /* The reveal icon. One rule for all three layouts: `.ml-login__control` is
     always a small wrapper around just the input, so 50% of its own height
     centres the icon on the input regardless of what sits above it. */
}
body#login #toggle-login-password {
  right: auto;
  inset-inline-end: 14px;
  color: var(--ml-text-disabled);
  font-size: var(--ml-font-size-n1);
}
body#login {
  /* Joget's own error markup - `login_error_classes` is its class, not ours. */
}
body#login .alert.form-errors,
body#login .alert-danger {
  margin-bottom: 24px;
  padding: 12px 16px !important;
  border-radius: var(--ml-login-card-radius);
  background: var(--ml-bg-danger-weak) !important;
  border: var(--ml-border-width) solid var(--ml-bg-danger-weak) !important;
  color: var(--ml-text-on-danger-weak) !important;
  font-size: var(--ml-font-size-label);
  font-weight: var(--ml-font-weight-medium);
}
body#login {
  /* `login_form_footer` is Joget's own wrapper class, always rendered
     alongside `.ml-login__footer` - this is what actually colours it. */
}
body#login .login_form_footer {
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-base);
}
body#login .login_form_footer a {
  color: var(--ml-text-default);
  font-weight: var(--ml-font-weight-semibold);
}
body#login .login_form_footer a:hover {
  color: var(--ml-bg-brand-default);
}

/* ── Split screen ── */
.ml-login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  background: var(--ml-bg-surface-1);
}

/* ── Image shape ──
   `loginImageStyle` picks one of two, independent of the active design
   identity: full bleed (no modifier - the rule above already draws it) or
   `--rounded`, which insets the hero into the page and lifts it with a
   shadow. Collapses back to full bleed under 992px either way - see the
   responsive block below - where a floating panel above the form would read
   as a stray card. */
.ml-login--rounded {
  gap: var(--ml-gutter);
  padding: var(--ml-gutter);
}

.ml-login--rounded .ml-login__hero {
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-2);
}

.ml-login--rounded .ml-login__panel {
  padding: var(--ml-space-10);
  background: transparent;
}

/* ── Brand panel ── */
.ml-login__hero {
  position: relative;
  overflow: hidden;
  padding: 56px;
  background: linear-gradient(150deg, var(--ml-color-brand-900), var(--ml-color-brand-600) 55%, var(--ml-color-brand-800));
}
.ml-login__hero.ml-login__hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ml-login__hero-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--ml-color-brand-600) 55%, transparent), transparent 60%), radial-gradient(110% 80% at 90% 85%, color-mix(in srgb, var(--ml-color-warning-400) 30%, transparent), transparent 60%);
  /* a photo needs the ink back to keep the brand copy legible */
}
.ml-login__hero--photo .ml-login__hero-mask {
  background: linear-gradient(150deg, color-mix(in srgb, var(--ml-color-brand-900) 88%, transparent), color-mix(in srgb, var(--ml-color-brand-600) 66%, transparent) 55%, color-mix(in srgb, var(--ml-color-brand-800) 82%, transparent)), radial-gradient(110% 80% at 90% 85%, color-mix(in srgb, var(--ml-color-warning-400) 22%, transparent), transparent 60%);
}
.ml-login__hero-mask {
  /* Overlay switched off in the settings: the photo carries the panel on its
     own. Only the photo case has a switch - without one there is nothing left
     to look at but the ink. */
}
.ml-login__hero--photo.ml-login__hero--bare .ml-login__hero-mask {
  background: none;
}

/* Nothing is darkening the photo any more, so the copy has to hold its own
   edge. A shadow, not a scrim: it follows the glyphs instead of flattening the
   picture, which is the whole reason the overlay was turned off. */
.ml-login__hero--photo.ml-login__hero--bare .ml-login__hero-inner {
  text-shadow: 0 1px 3px var(--ml-alpha-dark-500);
}

.ml-login__hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 100%;
  text-align: start;
}

.ml-login__hero-logo {
  height: 70px;
  width: auto;
  max-width: 100%;
  max-height: 70px;
}

.ml-login__hero-body {
  max-width: 480px;
}

/* The rule opening the hero copy. Sized and coloured from tokens, so an
   identity restyles it without recomposing anything. */
.ml-login__accent {
  display: block;
  width: var(--ml-login-accent-width);
  height: var(--ml-login-accent-height);
  margin-bottom: 28px;
  border-radius: var(--ml-login-accent-radius);
  background: var(--ml-login-accent-bg);
}

.ml-login__hero-title {
  margin: 0;
  color: var(--ml-color-white);
  font-size: var(--ml-font-size-5);
  font-weight: var(--ml-font-weight-bold);
  letter-spacing: var(--ml-tracking-xs);
  line-height: 1.2;
  text-wrap: pretty;
}

.ml-login__hero-text {
  margin: 20px 0 0;
  color: var(--ml-color-neutral-200);
  font-size: var(--ml-font-size-0);
  font-weight: var(--ml-font-weight-regular);
  line-height: 1.6;
}

.ml-login__hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ml-color-neutral-400);
  font-size: var(--ml-font-size-base);
  font-weight: var(--ml-font-weight-medium);
}

/* ── Sign-in column ── */
.ml-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: var(--ml-bg-surface-1);
}

.ml-login__form {
  width: 100%;
  max-width: 400px;
}

.ml-login__intro {
  margin-bottom: 36px;
  text-align: start;
}

.ml-login__eyebrow {
  margin: 0;
  color: var(--ml-text-weak);
  font-size: var(--ml-type-caption-wide-size);
  line-height: var(--ml-type-caption-wide-line);
  font-weight: var(--ml-type-caption-wide-weight);
  letter-spacing: var(--ml-type-caption-wide-tracking);
  text-transform: var(--ml-type-caption-wide-transform);
}

.ml-login__title {
  margin: 0 0 8px;
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-4);
  font-weight: var(--ml-font-weight-bold);
  letter-spacing: var(--ml-tracking-sm);
  line-height: 1.2;
}

/* The gap belongs to the pair, not to the heading: with the overline switched
   off the heading has to sit flush against the top of the column. */
.ml-login__eyebrow + .ml-login__title {
  margin-top: 14px;
}

/* `login-basic` has no "Login" heading between the two - the brand title
   already carries that role - so the overline sits directly over the hint. */
.ml-login__eyebrow + .ml-login__hint {
  margin-top: 8px;
}

.ml-login__hint {
  margin: 0;
  padding: 0 !important;
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-n1) !important;
  line-height: 1.6;
}

.ml-login__field {
  margin-bottom: 20px;
  text-align: start;
}

.ml-login__label {
  display: block;
  margin: 0 0 8px;
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-base);
  font-weight: var(--ml-font-weight-semibold);
  line-height: 1.4;
}

.ml-login__control {
  position: relative;
}

.ml-login__control #toggle-login-password {
  top: 50%;
}

.ml-login__input.form-control {
  /* taller than the system control - see `--ml-login-input-height` */
  width: 100% !important;
  height: var(--ml-login-input-height) !important;
  min-height: var(--ml-login-input-height) !important;
  padding: 0 16px !important;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
  border-radius: var(--ml-login-card-radius) !important;
  box-shadow: none !important;
  color: var(--ml-text-default) !important;
  font-size: var(--ml-font-size-n1) !important;
}
.ml-login__input.form-control:focus {
  border-color: var(--ml-bg-brand-default) !important;
}

/* room for the reveal icon the theme's script toggles in */
.login-password-input .ml-login__input.form-control {
  padding-inline-end: 44px !important;
}

.ml-login__forgot {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 28px;
}
.ml-login__forgot a {
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-base);
  font-weight: var(--ml-font-weight-medium);
}
.ml-login__forgot a:hover {
  color: var(--ml-text-default);
}

/* no forgot-password link configured: keep the CTA off the last field */
.ml-login__field + .ml-login__submit {
  margin-top: 28px;
}

.ml-login__button.btn {
  display: flex !important;
  width: 100%;
  margin: 0 !important;
  font-size: var(--ml-font-size-n1) !important;
}

/* The strip closing the CTA. It belongs to the identity that squares the button
   off above it - SIAM, in `presets/siam/_login.scss` - so every layout ships
   without one by default. Unscoped on purpose: the same button and the same
   strip render in the split screen, the basic card and the cover card. */
.ml-login__accent-bar {
  display: none;
  height: var(--ml-sidenav-accent-bar);
}

.ml-login__signup {
  margin: 32px 0 0;
  color: var(--ml-text-weak);
  font-size: var(--ml-font-size-base);
  text-align: center;
}
.ml-login__signup a {
  color: var(--ml-text-default);
  font-weight: var(--ml-font-weight-semibold);
}
.ml-login__signup a:hover {
  color: var(--ml-bg-brand-default);
}

.ml-login__footer {
  margin-top: 24px;
  text-align: center;
}

/* ── Responsive: the panel collapses to a brand band above the form ── */
@media (max-width: 991.98px) {
  .ml-login {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ml-login--rounded {
    gap: 0;
    padding: 0;
  }
  .ml-login--rounded .ml-login__hero {
    border-radius: 0;
    box-shadow: none;
  }
  .ml-login--rounded .ml-login__panel {
    padding: var(--ml-space-10) var(--ml-space-6);
  }
  .ml-login__hero {
    padding: 32px 24px;
  }
  .ml-login__hero-inner {
    gap: 24px;
    min-height: 0;
    flex-direction: row-reverse;
    align-items: center;
  }
  .ml-login__hero-inner .ml-login__hero-top {
    flex: 1;
    justify-content: center;
    display: flex;
  }
  .ml-login__hero-inner .ml-login__hero-top .ml-login__hero-brand {
    flex-shrink: 0;
  }
  .ml-login__hero-logo {
    height: 100px;
    max-height: 100px;
  }
  .ml-login__accent {
    margin-bottom: 20px;
  }
  .ml-login__hero-title {
    font-size: var(--ml-type-heading-m-size);
    line-height: var(--ml-type-heading-m-line);
    letter-spacing: var(--ml-tracking-sm);
  }
  .ml-login__hero-text,
  .ml-login__hero-values {
    display: none;
  }
  .ml-login__panel {
    padding: 40px 24px;
  }
}
/* ── Shared: brand row (`login-basic`, `login-cover`) ──
   Logo and platform name on one row. Normal-surface coloured by default,
   because `login-cover`'s card sits on the ordinary page background;
   `login-basic` inverts it the same way it inverts every other text element on
   its card, in the block further down. */
.ml-login__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-align: start;
}

.ml-login__brand-logo {
  flex: 0 0 auto;
  height: 44px;
  width: auto;
  max-width: 55%;
  max-height: 44px;
}

/* the base theme ships `h1 { font-size: 3rem !important }` */
.ml-login__brand-title {
  margin: 0;
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-1) !important;
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-sm) !important;
  line-height: 1.3 !important;
}

/* a hairline separates the name from the logo — only when there is a logo */
.ml-login__brand-logo + .ml-login__brand-title {
  padding-inline-start: 16px;
  border-inline-start: var(--ml-border-width) solid var(--ml-border-weak);
}

/* ── Centred card over the full-bleed brand backdrop (`login-basic`) ──
   Same ink/scrim as the hero. The card itself is only an outline: transparent
   surface, 1px white border, gradient bar marking its top edge. Everything
   inside reuses the `ml-login__*` recipes, inverted for the dark surface.

   The page must not scroll: the stage is exactly one viewport tall and the
   card is trimmed to fit inside it. On a viewport too short for even the
   compacted card, the card body scrolls — never the page. */
.ml-login-basic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100vh;
  height: 100dvh; /* mobile browsers whose toolbars eat into 100vh */
  padding: 32px 24px;
  background: var(--ml-bg-surface-1);
}

body#login.login-type-basic {
  overflow: hidden;
}

/* ── Image shape ──
   The backdrop, not the stage above, is what `loginImageStyle` resizes: "full"
   is it filling the stage edge to edge (the rule below), "rounded" insets it
   with the page gutter and lifts it off the stage with a shadow, so the
   stage's own surface colour shows through the gap - the same move the split
   screen makes with `--ml-gutter`. Collapses back to full under 575.98px,
   see the responsive block. */
.ml-login-basic__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(150deg, var(--ml-color-brand-900), var(--ml-color-brand-600) 55%, var(--ml-color-brand-800));
}
.ml-login-basic__backdrop.ml-login-basic__backdrop--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ml-login-basic__backdrop--rounded {
  inset: var(--ml-gutter);
  overflow: hidden;
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-2);
}

.ml-login-basic__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--ml-color-brand-600) 55%, transparent), transparent 60%), radial-gradient(110% 80% at 90% 85%, color-mix(in srgb, var(--ml-color-warning-400) 30%, transparent), transparent 60%);
  /* a photo needs the ink back to keep the card's copy legible */
}
.ml-login-basic__backdrop--photo .ml-login-basic__mask {
  background: linear-gradient(150deg, color-mix(in srgb, var(--ml-color-brand-900) 94%, transparent), color-mix(in srgb, var(--ml-color-brand-600) 82%, transparent) 55%, color-mix(in srgb, var(--ml-color-brand-800) 92%, transparent)), radial-gradient(110% 80% at 90% 85%, color-mix(in srgb, var(--ml-color-warning-400) 22%, transparent), transparent 60%);
}
.ml-login-basic__mask {
  /* Overlay switched off in the settings: the photo carries the card on its
     own, and the card's copy picks up a shadow instead - see below. */
}
.ml-login-basic__backdrop--photo.ml-login-basic__backdrop--bare .ml-login-basic__mask {
  background: none;
}

/* Nothing is darkening the photo any more. Unlike the hero, the card's copy
   sits on the photo through a transparent card rather than directly, so the
   shadow goes on the card and every child inherits it. */
.ml-login-basic__backdrop--photo.ml-login-basic__backdrop--bare ~ .ml-login-basic__card {
  text-shadow: 0 1px 3px var(--ml-alpha-dark-500);
}

.ml-login-basic__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* so the accent bar takes the card's radius */
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  background: transparent;
  border: var(--ml-border-width) solid var(--ml-color-white);
  border-radius: var(--ml-login-card-radius);
}

.ml-login-basic__card-accent {
  flex: 0 0 auto;
}

.ml-login-basic__body {
  overflow-y: auto;
  padding: 36px 40px 32px;
}

/* ── Inverted sign-in column ──
   Only the card chrome and the copy invert: the controls stay white, so the two
   fields read as the one place on the page that takes input.

   Scoped through `body#login` on purpose — the pre-redesign `#login input` and
   `#login #toggle-login-password` rules are id-weighted, so a class-only
   selector loses to them even with `!important`. */
body#login .ml-login-basic .ml-login__intro {
  margin-bottom: 24px;
}
body#login .ml-login-basic .ml-login__brand-title {
  color: var(--ml-color-white) !important;
}
body#login .ml-login-basic .ml-login__brand-logo + .ml-login__brand-title {
  border-inline-start-color: var(--ml-alpha-light-300);
}
body#login .ml-login-basic .ml-login__eyebrow {
  color: var(--ml-color-neutral-300);
}
body#login .ml-login-basic .ml-login__hint {
  color: var(--ml-color-neutral-200);
  font-size: var(--ml-font-size-base) !important;
}
body#login .ml-login-basic .ml-login__label {
  color: var(--ml-color-neutral-100);
}
body#login .ml-login-basic .ml-login__field {
  margin-bottom: 18px;
}
body#login .ml-login-basic .ml-login__input.form-control {
  background: var(--ml-color-white) !important;
  border-color: var(--ml-input-border) !important;
  color: var(--ml-text-default) !important;
}
body#login .ml-login-basic .ml-login__input.form-control::placeholder {
  color: var(--ml-text-disabled) !important;
}
body#login .ml-login-basic .ml-login__input.form-control:focus {
  border-color: var(--ml-bg-brand-default) !important;
}
body#login .ml-login-basic .ml-login__input.form-control {
  /* Chrome's own autofill fill is a different white — pin it to ours */
}
body#login .ml-login-basic .ml-login__input.form-control:-webkit-autofill, body#login .ml-login-basic .ml-login__input.form-control:-webkit-autofill:hover, body#login .ml-login-basic .ml-login__input.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ml-text-default);
  caret-color: var(--ml-text-default);
  -webkit-box-shadow: inset 0 0 0 1000px var(--ml-input-bg) !important;
  box-shadow: inset 0 0 0 1000px var(--ml-input-bg) !important;
}
body#login .ml-login-basic #toggle-login-password {
  color: var(--ml-text-disabled);
}
body#login .ml-login-basic .ml-login__forgot {
  margin: 10px 0 22px;
}
body#login .ml-login-basic .ml-login__forgot a {
  color: var(--ml-color-neutral-300);
}
body#login .ml-login-basic .ml-login__forgot a:hover {
  color: var(--ml-color-white);
}
body#login .ml-login-basic .ml-login__field + .ml-login__submit {
  margin-top: 22px;
}
body#login .ml-login-basic {
  /* the CTA inverts on the dark surface: white fill, brand ink as the label */
}
body#login .ml-login-basic .ml-login__button.btn {
  background: var(--ml-color-white) !important;
  border-color: var(--ml-color-white) !important;
  color: var(--ml-bg-brand-default) !important;
}
body#login .ml-login-basic .ml-login__button.btn:hover, body#login .ml-login-basic .ml-login__button.btn:focus {
  background: var(--ml-alpha-light-800) !important;
  border-color: var(--ml-alpha-light-800) !important;
  color: var(--ml-bg-brand-default) !important;
}
body#login .ml-login-basic .ml-login__signup {
  margin-top: 22px;
}
body#login .ml-login-basic .ml-login__footer {
  margin-top: 18px;
}
body#login .ml-login-basic .ml-login__signup,
body#login .ml-login-basic .login_form_footer {
  color: var(--ml-color-neutral-300);
}
body#login .ml-login-basic .ml-login__signup a,
body#login .ml-login-basic .login_form_footer a {
  color: var(--ml-color-white);
}
body#login .ml-login-basic .ml-login__signup a:hover,
body#login .ml-login-basic .login_form_footer a:hover {
  color: var(--ml-color-neutral-200);
}
body#login .ml-login-basic {
  /* Joget renders the footer slot even when it is empty */
}
body#login .ml-login-basic .ml-login__footer:empty {
  display: none;
}
body#login .ml-login-basic .alert.form-errors,
body#login .ml-login-basic .alert-danger {
  margin-bottom: 18px;
}

/* ── Banner + overlapping card (`login-cover`) ──
   A short ink or photo strip at the top of the page, and a light, ordinary
   card that overlaps its lower edge and continues in normal flow beneath it.
   Unlike `login-basic`, the page scrolls freely - nothing here is clamped to
   one viewport. Nothing sits directly on the banner either, so the overlay
   toggle is purely how dark the strip reads: no legibility fallback to design
   for, unlike the hero or the basic card. Everything inside the card reuses
   the `ml-login__*` recipes unstyled - a normal surface, not an inverted
   one, because it never leaves the page's own background. */
.ml-login-cover {
  position: relative;
  min-height: 100vh;
  padding-bottom: var(--ml-space-10);
  background: var(--ml-bg-surface-1);
}

.ml-login-cover__banner {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: linear-gradient(150deg, var(--ml-color-brand-900), var(--ml-color-brand-600) 55%, var(--ml-color-brand-800));
}
.ml-login-cover__banner.ml-login-cover__banner--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ml-login-cover__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 15% 10%, color-mix(in srgb, var(--ml-color-brand-600) 55%, transparent), transparent 60%), radial-gradient(110% 80% at 90% 85%, color-mix(in srgb, var(--ml-color-warning-400) 30%, transparent), transparent 60%);
}
.ml-login-cover__banner--photo .ml-login-cover__mask {
  background: linear-gradient(150deg, color-mix(in srgb, var(--ml-color-brand-900) 88%, transparent), color-mix(in srgb, var(--ml-color-brand-600) 66%, transparent) 55%, color-mix(in srgb, var(--ml-color-brand-800) 82%, transparent)), radial-gradient(110% 80% at 90% 85%, color-mix(in srgb, var(--ml-color-warning-400) 22%, transparent), transparent 60%);
}
.ml-login-cover__mask {
  /* purely cosmetic here - nothing sits on the banner to lose legibility */
}
.ml-login-cover__banner--photo.ml-login-cover__banner--bare .ml-login-cover__mask {
  background: none;
}

/* ── Image shape ──
   "full" is the banner above, edge to edge. "rounded" insets it with the page
   gutter on three sides - the fourth stays open for the card to overlap - and
   lifts it with a shadow, the same move the split screen and the basic
   backdrop make with the same token. */
.ml-login-cover--rounded .ml-login-cover__banner {
  margin: var(--ml-gutter) var(--ml-gutter) 0;
  border-radius: var(--ml-radius-lg) var(--ml-radius-lg) 0 0;
  box-shadow: var(--ml-shadow-2);
}

.ml-login-cover__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: -96px;
  padding: 0 24px;
}

.ml-login-cover__card {
  position: relative;
  overflow: hidden; /* so the accent bar takes the card's radius */
  width: 100%;
  max-width: var(--ml-login-card-width);
  background: var(--ml-card-bg);
  border: var(--ml-border-width) solid var(--ml-card-border);
  border-radius: var(--ml-card-radius);
  box-shadow: var(--ml-card-shadow);
}

.ml-login-cover__body {
  padding: var(--ml-login-card-padding);
}

.ml-login-cover .ml-login__footer:empty {
  display: none;
}

/* the gradient marks the card the way it closes the sidebar - SIAM only, see
   its preset file. Shared with `login-basic`'s: same bar, same job. */
.ml-login-basic__card-accent,
.ml-login-cover__card-accent {
  display: none;
  height: 4px;
}

@media (max-width: 575.98px) {
  .ml-login__hero {
    padding: 24px 20px;
  }
  .ml-login__hero-top {
    display: none;
  }
  .ml-login__panel {
    padding: 32px 20px;
  }
  .ml-login__title {
    font-size: var(--ml-type-heading-l-size);
    line-height: var(--ml-type-heading-l-line);
  }
  .ml-login-basic {
    padding: 20px 16px;
  }
  /* the framed backdrop is a tablet/desktop affordance - a phone screen has
     no page background left to show through the gap */
  .ml-login-basic__backdrop--rounded {
    inset: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ml-login-basic__body {
    padding: 28px 24px 24px;
  }
  .ml-login__brand {
    gap: 12px;
    margin-bottom: 20px;
  }
  .ml-login__brand-logo {
    height: 36px;
    max-height: 36px;
  }
  .ml-login__brand-title {
    font-size: var(--ml-font-size-n1) !important;
  }
  .ml-login__brand-logo + .ml-login__brand-title {
    padding-inline-start: 12px;
  }
  .ml-login-cover__banner {
    height: 220px;
  }
  .ml-login-cover--rounded .ml-login-cover__banner {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ml-login-cover__wrap {
    margin-top: -64px;
    padding: 0 16px;
  }
  .ml-login-cover__body {
    padding: var(--ml-space-8) var(--ml-space-6) var(--ml-space-6);
  }
}
#content.page_content {
  position: relative;
}
#content.page_content.ajaxloading {
  pointer-events: none;
  cursor: progress;
}
#content.page_content.ajaxloading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ml-page-bg);
  opacity: 0.45;
}
#content.page_content.ajaxloading::before {
  content: "";
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 2000;
  background: var(--ml-bg-brand-default);
  transform-origin: left center;
  animation: ml-ajax-progress 1.2s var(--ml-ease) infinite;
}

body.ml-no-skeleton .ajaxloading > :is(main, div) {
  background-image: none !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

body.ml-no-skeleton .ajaxloading > :is(main, div) * {
  visibility: visible !important;
  opacity: 1 !important;
}

[dir=rtl] #content.page_content.ajaxloading::before {
  transform-origin: right center;
}

@keyframes ml-ajax-progress {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  70% {
    transform: scaleX(0.8);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #content.page_content.ajaxloading::before {
    animation: none;
    transform: none;
  }
}
/**
 * Melkart theme — home board skeleton
 *
 * A userview's landing page as a deck of cards: one tile per page the viewer may
 * open, grouped the way the sidebar groups them, over a greeting, a summary
 * strip and a search field. The markup is server-rendered by
 * `templates/userview/homeBoard.ftl`; see `org.melkart.plugin.ThemeHomeBoard`
 * for the model and for which page becomes the board.
 *
 * **Three layouts, one markup.** `grid`, `list` and `spotlight` are modifiers on
 * the root and every difference between them is in this file — the template
 * branches on nothing. That is what keeps the feature one thing rather than
 * three: favourites, search, the pending-count chips and the empty state are
 * written once and are true of all three.
 *
 *   grid       category sections, each an auto-fill deck. The default.
 *   list       the same sections as full-width rows, for a userview with more
 *              pages than a deck can hold without scrolling.
 *   spotlight  one flat wall of tiles under a centred search. The sections are
 *              still in the markup — collapsed with `display: contents`, so the
 *              search filter and the favourites row keep working on them — and
 *              the category moves onto the tile, where the heading used to be.
 *
 * Identity-neutral. Every value reads an `--ml-board-*` token (declared in
 * `tokens/_components.scss`), so an identity reskins the board by setting values
 * in its `_tokens.scss`; only a change of *composition* needs a file in
 * `presets/<name>/_home-board.scss`.
 */
/* ==========================================================================
   The page the board is on
   ========================================================================== */
/* `ml-board-page--flush` is printed onto <body> by the server when the admin
   asked the board to hide the rail. It is a body class and not a script so the
   shell is right at the first paint — a page that rearranges itself afterwards
   is a page that visibly jumps. The panel is only hidden, never removed: the
   pending counts on the tiles are mirrored from its own badges, which Joget
   fills by ajax after load. */
body.ml-board-page--flush #sidenav-main,
body.ml-board-page--flush .sidenav-backdrop {
  display: none !important;
}
body.ml-board-page--flush {
  /* The offset the rail was holding open, and the control that opened it. */
}
body.ml-board-page--flush .main-content,
body.ml-board-page--flush .sidenav.fixed-start + .main-content,
body.ml-board-page--flush .sidenav.fixed-end + .main-content {
  margin-inline: 0 !important;
}
body.ml-board-page--flush nav.navbar-main .sidenav-toggler,
body.ml-board-page--flush nav.navbar-main .navbar-nav > .nav-item > .nav-link:has(.sidenav-toggler-inner) {
  display: none !important;
}

/* ==========================================================================
   Board
   ========================================================================== */
.ml-board {
  max-width: var(--ml-board-max-width);
  margin-inline: auto;
  color: var(--ml-text-default);
}

/* Sections, decks and chips all carry a `display`, so the attribute that hides
   them has to carry more weight than the layout that shows them. Everything the
   board's script toggles is toggled with `hidden`, and this is what makes that
   one mechanism work for all of it. */
.ml-board [hidden] {
  display: none !important;
}

/* ── Greeting ─────────────────────────────────────────────────────────── */
.ml-board__intro {
  margin-bottom: var(--ml-space-8);
}

.ml-board__eyebrow {
  margin: 0;
  font-size: var(--ml-type-caption-wide-size);
  line-height: var(--ml-type-caption-wide-line);
  font-weight: var(--ml-type-caption-wide-weight);
  letter-spacing: var(--ml-type-caption-wide-tracking);
  text-transform: var(--ml-type-caption-wide-transform);
  color: var(--ml-text-weak);
}

.ml-board__title {
  /* The base theme ships `h1 { font-size: 3rem !important }`. */
  margin: var(--ml-space-2) 0 var(--ml-space-2) !important;
  font-family: var(--ml-font-headers);
  font-size: var(--ml-type-heading-2xl-size) !important;
  line-height: var(--ml-type-heading-2xl-line);
  letter-spacing: var(--ml-type-heading-2xl-tracking);
  font-weight: var(--ml-type-heading-weight);
  color: var(--ml-text-default);
  text-wrap: balance;
}

.ml-board__lead {
  margin: 0;
  font-size: var(--ml-type-body-l-size);
  line-height: var(--ml-type-body-l-line);
  color: var(--ml-text-weak);
}

.ml-board__accent-bar {
  display: block;
  width: var(--ml-board-intro-accent-width);
  height: var(--ml-board-intro-accent-height);
  margin-top: var(--ml-space-5);
  background: var(--ml-board-intro-accent);
}

/* ── Summary strip ────────────────────────────────────────────────────── */
.ml-board__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--ml-board-gap);
  margin: 0 0 var(--ml-space-7);
  padding: 0;
  list-style: none;
}

.ml-board__stat {
  display: flex;
  flex-direction: column;
  gap: var(--ml-space-3);
  padding: var(--ml-board-card-padding);
  background: var(--ml-board-stat-bg);
  border: var(--ml-border-width) solid var(--ml-board-stat-border);
  border-radius: var(--ml-board-stat-radius);
}

.ml-board__stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-space-2);
}

.ml-board__stat-label {
  font-size: var(--ml-type-caption-wide-size);
  line-height: var(--ml-type-caption-wide-line);
  font-weight: var(--ml-type-caption-wide-weight);
  letter-spacing: var(--ml-type-caption-wide-tracking);
  text-transform: var(--ml-type-caption-wide-transform);
  color: var(--ml-text-weak);
}

.ml-board__stat-icon {
  flex: 0 0 auto;
  font-size: var(--ml-icon-size-sm);
  line-height: 1;
  color: var(--ml-icon-weak);
}

.ml-board__stat-value {
  font-family: var(--ml-font-headers);
  font-size: var(--ml-type-heading-l-size);
  line-height: var(--ml-type-heading-l-line);
  font-weight: var(--ml-type-heading-weight);
  font-variant-numeric: tabular-nums;
  color: var(--ml-text-default);
}

/* ── Search ───────────────────────────────────────────────────────────── */
/* The bar is the control and the input is only its text layer. The reset below
   used to be `!important` on every line, because the theme's input recipe
   claimed every text field on the page at the same weight; the recipe is now
   scoped to the markup the theme owns and the board is not in it, so the plain
   declarations are enough. */
.ml-board__search {
  display: flex;
  align-items: center;
  gap: var(--ml-space-3);
  height: var(--ml-board-search-height);
  padding-inline: var(--ml-space-4);
  margin-bottom: var(--ml-space-8);
  background: var(--ml-input-bg);
  border: var(--ml-border-width) solid var(--ml-input-border);
  border-radius: var(--ml-input-radius-base);
  transition: border-color var(--ml-duration-fast) var(--ml-ease);
}

.ml-board__search:focus-within {
  border-color: var(--ml-input-border-focus);
}

.ml-board__search-icon {
  flex: 0 0 auto;
  font-size: var(--ml-icon-size-sm);
  line-height: 1;
  color: var(--ml-icon-weak);
}

.ml-board__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: var(--ml-type-input-m-size);
  color: var(--ml-input-fg);
}
.ml-board__search-input::placeholder {
  color: var(--ml-input-placeholder);
}
.ml-board__search-input {
  /* WebKit draws a clear button that is not in the design system, and it sits
     on top of the shortcut hint. */
}
.ml-board__search-input::-webkit-search-cancel-button {
  appearance: none;
}

.ml-board__search-key {
  flex: 0 0 auto;
  padding: var(--ml-space-1) var(--ml-space-2);
  border: var(--ml-border-width) solid var(--ml-border-weak);
  border-radius: var(--ml-radius-xs);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: var(--ml-type-caption-s-size);
  font-weight: var(--ml-font-weight-semibold);
  color: var(--ml-text-weak);
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.ml-board__section {
  margin-bottom: var(--ml-board-section-gap);
}
.ml-board__section:last-of-type {
  margin-bottom: 0;
}

.ml-board__section-head {
  display: flex;
  align-items: baseline;
  gap: var(--ml-space-3);
  margin-bottom: var(--ml-space-4);
}

.ml-board__section-title {
  margin: 0 !important;
  font-family: var(--ml-font-headers);
  font-size: var(--ml-type-heading-s-size) !important;
  line-height: var(--ml-type-heading-s-line);
  letter-spacing: var(--ml-type-heading-s-tracking);
  font-weight: var(--ml-type-heading-weight);
  color: var(--ml-text-default);
}

.ml-board__section-count {
  font-size: var(--ml-type-caption-m-size);
  font-variant-numeric: tabular-nums;
  color: var(--ml-text-weak);
}

.ml-board__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--ml-board-card-min), 1fr));
  gap: var(--ml-board-gap);
}

/* ── Tile ─────────────────────────────────────────────────────────────── */
/* A <div> holding a full-size <a>, not an <a> holding a button: the favourite
   toggle is a real control, and a <button> inside an <a> is neither valid nor
   operable. The frame, the pointer feedback and the accent edge are the div's;
   the link fills it. */
.ml-board__card {
  position: relative;
  display: flex;
  min-height: var(--ml-board-card-min-height);
  background: var(--ml-board-card-bg);
  border: var(--ml-border-width) solid var(--ml-board-card-border);
  border-block-start: var(--ml-board-accent-bar) solid var(--ml-board-accent);
  border-radius: var(--ml-board-card-radius);
  box-shadow: var(--ml-board-card-shadow);
  transition: border-color var(--ml-duration-fast) var(--ml-ease), box-shadow var(--ml-duration-fast) var(--ml-ease), transform var(--ml-duration-fast) var(--ml-ease);
}
.ml-board__card:hover, .ml-board__card:focus-within {
  /* the three neutral sides ink in; the accent edge keeps its own colour */
  border-color: var(--ml-board-card-hover-border);
  border-block-start-color: var(--ml-board-accent);
  box-shadow: var(--ml-board-card-hover-shadow);
  transform: translateY(var(--ml-board-card-lift));
}

.ml-board__link {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: var(--ml-space-4);
  padding: var(--ml-board-card-padding);
  color: inherit;
  text-decoration: none;
}
.ml-board__link:hover, .ml-board__link:focus, .ml-board__link:active {
  color: inherit;
  text-decoration: none;
}

.ml-board__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--ml-board-icon-size);
  height: var(--ml-board-icon-size);
  border-radius: var(--ml-board-icon-radius);
  /* Mixed here rather than declared as a token: with the palette accent the
     server writes `--ml-board-accent` inline on each tile, and a var() is
     substituted on the element that declares it - a tint composed in the
     token file would have mixed that file's default and ignored the tile. */
  background: color-mix(in srgb, var(--ml-board-accent) 12%, transparent);
  color: var(--ml-board-accent);
  font-size: var(--ml-icon-size-md);
  line-height: 1;
  transition: background-color var(--ml-duration-fast) var(--ml-ease);
}

.ml-board__card:hover .ml-board__icon {
  background: color-mix(in srgb, var(--ml-board-accent) 20%, transparent);
}

.ml-board__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: var(--ml-space-1);
}

.ml-board__name {
  font-size: var(--ml-type-body-m-size);
  line-height: var(--ml-type-body-m-line);
  font-weight: var(--ml-font-weight-semibold);
  color: var(--ml-text-default);
  text-wrap: pretty;
}

/* Printed on every tile, shown only where the heading above is not already
   saying it: the favourites row and the spotlight wall. */
.ml-board__cat {
  display: none;
  font-size: var(--ml-type-caption-m-size);
  line-height: var(--ml-type-caption-m-line);
  color: var(--ml-text-weak);
}

.ml-board__section--favourites .ml-board__cat {
  display: block;
}

/* Combined: one deck for every category, so the tile is the only thing left
   that can say which category it came from. */
.ml-board--combined .ml-board__cat {
  display: block;
}

.ml-board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ml-space-2);
  margin-top: auto;
}

.ml-board__open {
  display: inline-flex;
  align-items: center;
  gap: var(--ml-space-2);
  font-size: var(--ml-type-caption-m-size);
  font-weight: var(--ml-font-weight-semibold);
  color: var(--ml-text-weak);
  transition: color var(--ml-duration-fast) var(--ml-ease);
}
.ml-board__open i {
  font-size: var(--ml-icon-size-4xs);
  transition: transform var(--ml-duration-fast) var(--ml-ease);
}

.ml-board__card:hover .ml-board__open {
  color: var(--ml-text-default);
}

.ml-board__card:hover .ml-board__open i {
  transform: translateX(3px);
}

/* The pending count, mirrored from the sidebar's own badge once Joget's ajax
   call has resolved it. Absent until then, and absent for good on an install
   that does not count rows - which is why the node ships empty and hidden. */
.ml-board__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ml-space-1);
  padding: 2px var(--ml-space-2);
  border-radius: var(--ml-board-badge-radius);
  background: var(--ml-board-badge-bg);
  color: var(--ml-board-badge-fg);
  font-size: var(--ml-type-caption-s-size);
  font-weight: var(--ml-font-weight-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Favourite toggle ─────────────────────────────────────────────────── */
.ml-board__fav {
  position: absolute;
  z-index: 2;
  inset-block-start: var(--ml-space-2);
  inset-inline-end: var(--ml-space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ml-size-sm);
  height: var(--ml-size-sm);
  padding: 0;
  border: 0;
  border-radius: var(--ml-radius-xs);
  background: transparent;
  color: var(--ml-icon-disabled);
  font-size: var(--ml-icon-size-2xs);
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--ml-duration-fast) var(--ml-ease), color var(--ml-duration-fast) var(--ml-ease), background-color var(--ml-duration-fast) var(--ml-ease);
}
.ml-board__fav:hover {
  background: var(--ml-bg-strong);
  color: var(--ml-icon-default);
}

.ml-board__card:hover .ml-board__fav,
.ml-board__fav:focus-visible,
.ml-board__fav[aria-pressed=true] {
  opacity: 1;
}

.ml-board__fav[aria-pressed=true] {
  color: var(--ml-icon-warning-default);
}

/* A finger has no hover to reveal it with. */
@media (hover: none) and (pointer: coarse) {
  .ml-board__fav {
    opacity: 1;
  }
}
/* ── Nothing matched ──────────────────────────────────────────────────── */
.ml-board__empty {
  padding: var(--ml-space-10) var(--ml-space-6);
  border: var(--ml-border-width) dashed var(--ml-border-default);
  border-radius: var(--ml-board-card-radius);
  text-align: center;
}

.ml-board__empty-title {
  margin: 0;
  font-size: var(--ml-type-body-m-size);
  font-weight: var(--ml-font-weight-semibold);
  color: var(--ml-text-default);
}

.ml-board__empty-text {
  margin: var(--ml-space-1) 0 0;
  font-size: var(--ml-type-body-s-size);
  color: var(--ml-text-weak);
}

/* ==========================================================================
   Accent variants
   ========================================================================== */
/* `palette` needs nothing here: the server writes the hue onto each tile and
   every rule above already reads it. These two are the settings that take the
   per-tile value away again. */
.ml-board--accent-none {
  --ml-board-accent-bar: 0px;
}
.ml-board--accent-none .ml-board__icon {
  background: var(--ml-bg-strong);
  color: var(--ml-icon-default);
}
.ml-board--accent-none .ml-board__card:hover .ml-board__icon {
  background: var(--ml-bg-strongest);
}

/* ==========================================================================
   Layout: list
   ========================================================================== */
/* The same sections, as rows. For a userview with more pages than a deck can
   show at once: a row costs a third of the height and gives the category and
   the count somewhere to sit inline. */
.ml-board--list .ml-board__grid {
  grid-template-columns: 1fr;
  gap: var(--ml-space-2);
}
.ml-board--list .ml-board__card {
  min-height: 0;
}
.ml-board--list .ml-board__link {
  flex-direction: row;
  align-items: center;
  gap: var(--ml-space-4);
  padding-block: var(--ml-space-3);
}
.ml-board--list .ml-board__cat {
  display: block;
}
.ml-board--list .ml-board__foot {
  flex: 0 0 auto;
  margin-top: 0;
  /* clears the favourite toggle, which is still on the trailing edge */
  margin-inline-end: var(--ml-space-7);
  gap: var(--ml-space-4);
}
.ml-board--list {
  /* Centred on the row rather than pinned to a corner there is none of. */
}
.ml-board--list .ml-board__fav {
  inset-block: 0;
  margin-block: auto;
}

/* ==========================================================================
   Layout: spotlight
   ========================================================================== */
/* One wall of tiles under a centred search. The sections stay in the markup and
   stop being boxes: `display: contents` lifts every tile into the board's own
   grid, so the wall is one grid rather than a stack of them - and the search
   filter, which hides a section that has no matches left, still has a section to
   hide. The category the headings were carrying moves onto the tile. */
.ml-board--spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--ml-board-card-min), 1fr));
  gap: var(--ml-board-gap);
  align-content: start;
  max-width: calc(var(--ml-board-max-width) - 200px);
  --ml-board-card-min: 200px;
  --ml-board-card-min-height: 0px;
}
.ml-board--spotlight > .ml-board__intro,
.ml-board--spotlight > .ml-board__stats,
.ml-board--spotlight > .ml-board__search,
.ml-board--spotlight > .ml-board__empty {
  grid-column: 1/-1;
}
.ml-board--spotlight .ml-board__intro {
  text-align: center;
}
.ml-board--spotlight .ml-board__accent-bar {
  margin-inline: auto;
}
.ml-board--spotlight .ml-board__search {
  height: calc(var(--ml-board-search-height) + var(--ml-space-2));
}
.ml-board--spotlight .ml-board__section {
  display: contents;
}
.ml-board--spotlight .ml-board__section-head {
  display: none;
}
.ml-board--spotlight .ml-board__grid {
  display: contents;
}
.ml-board--spotlight .ml-board__cat {
  display: block;
}
.ml-board--spotlight .ml-board__link {
  gap: var(--ml-space-3);
}
.ml-board--spotlight {
  /* No "Open" on a wall of tiles - the whole tile is the affordance. The foot
     comes back only for a tile that has a count to report, which the board's
     script flags as it writes the chip. */
}
.ml-board--spotlight .ml-board__open {
  display: none;
}
.ml-board--spotlight .ml-board__foot {
  display: none;
}
.ml-board--spotlight .ml-board__card--has-count .ml-board__foot {
  display: flex;
}
.ml-board--spotlight {
  /* Favourites keep a band of their own: they are the one group on this wall
     that is not alphabetical noise. */
}
.ml-board--spotlight > .ml-board__section--favourites {
  display: block;
  grid-column: 1/-1;
  margin-bottom: var(--ml-space-6);
}
.ml-board--spotlight > .ml-board__section--favourites .ml-board__section-head {
  display: flex;
}
.ml-board--spotlight > .ml-board__section--favourites .ml-board__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--ml-board-card-min), 1fr));
  gap: var(--ml-board-gap);
}

/* ==========================================================================
   RTL
   ========================================================================== */
/* The arrow points the reading direction, and the nudge under the pointer
   follows it: the flip has already reversed the axis, so the same +3px steps
   toward the inline end. */
html[dir=rtl] .ml-board__open i,
body.rtl .ml-board__open i {
  transform: scaleX(-1);
}

html[dir=rtl] .ml-board__card:hover .ml-board__open i,
body.rtl .ml-board__card:hover .ml-board__open i {
  transform: scaleX(-1) translateX(3px);
}

/* ==========================================================================
   Narrow screens
   ========================================================================== */
@media (max-width: 991.98px) {
  .ml-board__grid,
  .ml-board--spotlight {
    --ml-board-card-min: 180px;
  }
  .ml-board__intro {
    margin-bottom: var(--ml-space-6);
  }
  .ml-board__title {
    font-size: var(--ml-type-heading-xl-size) !important;
    line-height: var(--ml-type-heading-xl-line);
  }
}
@media (max-width: 575.98px) {
  .ml-board__grid {
    grid-template-columns: 1fr;
  }
  .ml-board--spotlight {
    grid-template-columns: repeat(2, 1fr);
  }
  .ml-board--spotlight > .ml-board__section--favourites .ml-board__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ml-board__card {
    min-height: 0;
  }
  .ml-board__title {
    font-size: var(--ml-type-heading-l-size) !important;
    line-height: var(--ml-type-heading-l-line);
  }
  .ml-board__lead {
    font-size: var(--ml-type-body-m-size);
  }
  /* A phone keyboard has no Ctrl, and the hint is the first thing the bar can
     give up when it runs out of width. */
  .ml-board__search-key {
    display: none;
  }
  .ml-board__section {
    margin-bottom: var(--ml-space-7);
  }
}
/**
 * Access — form composition
 *
 * One card per SECTION. The form itself is a transparent stack and each section
 * is a panel standing 20px clear of the next: a hairline frame, a soft corner,
 * no elevation, and a header band closed by a rule.
 *
 * This replaces the single-card composition the identity shipped first, where
 * every section was flush inside one frame and divided by a hairline. The
 * single card held a short form together well and lost a long one: eight
 * sections inside one border is a scroll with no landmarks in it, and the only
 * thing marking "new subject" was a 12px uppercase label that looked the same
 * whether it was section two or section seven. Separating the frames puts the
 * boundary where the subject changes, which is the one place a form can afford
 * an edge.
 *
 * What keeps it from reading as a pile: every card is flat. Depth is reserved
 * for the one surface here that overlaps another, the sticky action bar.
 *
 * Two things the pre-redesign layer does to a section holding a subform had to
 * be undone here, and both for the same reason: they were written for a form
 * that was itself the card, so "strip the frame, strip the padding, let the
 * subform run edge to edge" landed the subform against the ONE border on the
 * page. There are as many borders as there are sections now, and a subform's
 * frame touching its section's frame is a seam rather than a nest. See the two
 * `:has(... .subform-container ...)` blocks below.
 *
 * On the selector: plain `body[data-ml-preset="access"]`, NOT `:where()`. The
 * token blocks use `:where()` to stay at (0,0,1) and settle by source order;
 * a layout block wants the opposite - it has to out-specify the skeleton's
 * bare `.form-section`, which carries `!important` of its own.
 */
body[data-ml-preset=access] {
  /* No card around the form: the sections are the cards.
     `:has(> .form-section)` keeps this off the login form and off any bare
     form Joget renders without sections. */
}
body[data-ml-preset=access] form:has(> .form-section) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-ml-preset=access] {
  /* `:not(#section-actions, .multiPagedForm-parent-section, [id$="_ghost_section"])` is doing two jobs. It says what the rule means -
     the action bar is not a plain section and gets its own block below - and
     the ID in it raises specificity to (1,2,2), which is what it takes to
     reach past the pre-redesign rules for `.form-section`.

     No `overflow: hidden`, deliberately: it would clip the inline dropdowns
     and date pickers that hang below their field. Nothing inside the card
     paints to its edge except the title band, which is separated by a rule
     rather than by a fill, so there is no corner to clip. */
}
body[data-ml-preset=access] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]) {
  background: var(--ml-card-bg);
  border: var(--ml-border-width) solid var(--ml-card-border);
  border-radius: var(--ml-card-radius) !important;
  box-shadow: var(--ml-card-shadow) !important;
  margin-top: var(--ml-space-5) !important;
}
body[data-ml-preset=access] :not(#_ja_inbox) form > .form-section:first-of-type {
  margin-top: 0 !important;
}
body[data-ml-preset=access] {
  /* ── Nested subform ──
     An object inside the card, not another card: same white, same hairline,
     one radius step down. Two panels of the same corner, one 24px inside the
     other, read as a seam - the step is what says which one contains which. */
}
body[data-ml-preset=access] .multiPagedForm .mpf-container > .subform-section {
  background: var(--ml-card-bg) !important;
  border: var(--ml-border-width) solid var(--ml-border-weak) !important;
  border-radius: var(--ml-radius-sm) !important;
  box-shadow: none !important;
  margin-top: var(--ml-space-4) !important;
}
body[data-ml-preset=access] .subform-section > .subform-column {
  padding: var(--ml-space-5) !important;
}
body[data-ml-preset=access] {
  /* ── Section title ──
     A header band, not a divider label: the card's own name, set at the size
     and colour of something you read rather than something you skim past,
     and closed by a rule that runs the full width of the card.

     Sentence case with no tracking. The band used to be 12px uppercase and
     weak, which was right when it was one label inside a shared frame and is
     wrong now that it heads a panel: uppercase micro-type is a column name,
     not a title. */
}
body[data-ml-preset=access] .form-section > .form-section-title,
body[data-ml-preset=access] .userProfile-body-content .form fieldset > legend {
  padding: var(--ml-space-3) var(--ml-space-5) !important;
  justify-content: space-between;
  margin: 0 !important;
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-n1);
  line-height: var(--ml-line-height-n1);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-sm);
  text-transform: none;
  width: auto !important;
  box-sizing: border-box;
}
body[data-ml-preset=access] {
  /* A subform's title heads a box inside the card, so it goes the other way:
     the uppercase micro-label the section title gave up, on the page ground,
     which is also how the data list heads its table. */
}
body[data-ml-preset=access] .subform-section > .subform-section-title {
  padding: var(--ml-space-3) var(--ml-space-5) !important;
  justify-content: space-between;
  margin: 0 !important;
  background: var(--ml-bg-default);
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
  border-radius: var(--ml-card-radius) var(--ml-card-radius) 0 0;
  color: var(--ml-text-weak);
  font-size: var(--ml-type-table-header-size);
  line-height: var(--ml-type-table-header-line);
  font-weight: var(--ml-type-table-header-weight);
  letter-spacing: var(--ml-type-table-header-tracking);
  text-transform: var(--ml-type-table-header-transform);
  width: auto !important;
  box-sizing: border-box;
}
body[data-ml-preset=access] {
  /* ── Sections holding a subform ──
     Both blocks below out-specify `form.scss`, which claims these sections at
     (1,5,0) and (0,4,0) respectively. The selectors are as long as they are
     because that is the specificity, not because the match needs it.

     A FRAMELESS subform is content, so its section is a card like any other
     and keeps its padding; the pre-redesign layer makes the section
     transparent and gives its title bar a white fill of its own to stand in
     for the card that is not there, and neither is wanted now. */
}
body[data-ml-preset=access] .form-section .subform-section, body[data-ml-preset=access] .subform-section .subform-section, body[data-ml-preset=access] .userProfile-body-content .form fieldset .subform-section,
body[data-ml-preset=access] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) {
  background: var(--ml-card-bg);
  border: var(--ml-border-width) solid var(--ml-card-border);
  border-radius: var(--ml-card-radius) !important;
  margin-top: var(--ml-space-5) !important;
}
body[data-ml-preset=access] .form-section .subform-section > .form-column, body[data-ml-preset=access] .subform-section .subform-section > .form-column, body[data-ml-preset=access] .userProfile-body-content .form fieldset .subform-section > .form-column,
body[data-ml-preset=access] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .form-column {
  padding: var(--ml-card-padding) !important;
}
body[data-ml-preset=access] .form-section .subform-section > .form-section-title, body[data-ml-preset=access] .subform-section .subform-section > .form-section-title, body[data-ml-preset=access] .userProfile-body-content .form fieldset .subform-section > .form-section-title,
body[data-ml-preset=access] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):has(> .form-column > .subform-cell > .subform-container.no-frame) > .form-section-title {
  background: transparent !important;
  border-radius: 0 !important;
}
body[data-ml-preset=access] {
  /* A FRAMED subform keeps its own box, so the section around it keeps the
     padding that holds that box off the card edge - and consecutive boxes
     keep the gap that says they are separate records. */
}
body[data-ml-preset=access] .form-section:has(.subform-container.has-frame) > .form-column {
  padding: var(--ml-card-padding) !important;
}
body[data-ml-preset=access] .form-section:has(.subform-container.has-frame) .subform-section + .subform-section {
  margin-top: var(--ml-space-4) !important;
}
body[data-ml-preset=access] {
  /* ── The stepper section ──
     A multi paged form's pages live inside one section, and the skeleton
     strips that section's column padding so the header strip can run edge to
     edge inside the single form card. There is no single form card any more -
     the stepper section is a card of its own now - so the padding comes back,
     or the strip and the pane under it sit flush against the frame. */
}
body[data-ml-preset=access] .stepper-section > .form-column,
body[data-ml-preset=access] .stepper-section > .section-content > .form-column {
  padding: var(--ml-card-padding) !important;
}
body[data-ml-preset=access] [class*=form-section]:has(> .section-content > [class*=form-column] .bs-stepper) {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
body[data-ml-preset=access] {
  /* ── Action bar ──
     A bar of its own, standing clear of the last section and pinned to the
     bottom of the viewport while there is still form below it. On a form long
     enough to scroll, the actions are otherwise a screen and a half away from
     whatever field you are looking at, and "where is the save button" is the
     question this identity is built to never make you ask.

     Sticky costs nothing when it is not needed: a form that fits on screen
     leaves the bar in normal flow at the end of the stack.

     This is the one surface in the identity that carries elevation, and it
     earns it by overlapping - the shadow is what says the content continues
     underneath rather than ending there. It is the CENTRED level 2: content
     passes under this bar from below, so a shadow cast downwards would fall
     on the side nothing is behind. Actions sit at the trailing edge,
     which is where a detached bar puts them; the single card that came before
     aligned them left, under the last field, and that argument went with the
     card. */
}
body[data-ml-preset=access] .form-section#section-actions {
  position: sticky;
  bottom: var(--ml-space-4);
  /* `!important` because the pre-redesign layer pins this element at
     `z-index: 0 !important`, which would leave the bar behind the cards
     it is supposed to float over. */
  z-index: 2 !important;
  justify-content: flex-end;
  margin: 0 !important;
  margin-top: var(--ml-space-5) !important;
  background: var(--ml-card-bg) !important;
  border: var(--ml-border-width) solid var(--ml-card-border) !important;
  border-radius: var(--ml-card-radius) !important;
  box-shadow: var(--ml-shadow-2-center) !important;
}
body[data-ml-preset=access] .form-section#section-actions > .section-content {
  flex: 1;
  padding: 13px 11px;
}
body[data-ml-preset=access] .form-section#section-actions.sp-fixed-buttons {
  border-radius: 0 !important;
}
body[data-ml-preset=access] {
  /* The control recipe restated for this identity. Through `controls` rather
     than by hand, so it inherits the skeleton's scope, its opt-in names and
     the `.ml-unstyled` opt-out instead of reaching every input on the page -
     this block used to be the widest selector in the preset layer. */
}
body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] .form-control:where(:not(.ml-unstyled, .ml-unstyled *)), body[data-ml-preset=access] .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)) {
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
}
body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=range]):where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) select:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) textarea:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-choices:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .chosen-container .chosen-single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) .select2-container--default .select2-selection--single:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] .form-control:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] .form-control:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active, body[data-ml-preset=access] .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):focus, body[data-ml-preset=access] .ml-input:where(:not(.ml-unstyled, .ml-unstyled *)):not([readonly], [disabled]):active {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--ml-input-border-focus);
}
body[data-ml-preset=access] {
  /* Subform repeater */
}
body[data-ml-preset=access] .subform_wrapper .subform-container {
  margin: 0 !important;
}
body[data-ml-preset=access] .subform_repeater > .subform_repeater_container > table > tbody > .grid-row > td.subform_wrapper {
  border: none !important;
}
body[data-ml-preset=access].no-label-section-merge .form-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):not(:has(> .form-column > .subform-cell > .subform-container.has-frame)),
body[data-ml-preset=access].no-label-section-merge .subform-section.no_label:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]):not(:has(> .form-column > .subform-cell > .subform-container.no-frame)):not(:has(> .form-column > .subform-cell > .subform-container.no-frame)) {
  margin-bottom: -7px !important;
}

body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=submit]:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] :where(.form-container, .form-cell, .subform-cell, .dataList, .userProfile-body-content, .ui-dialog, .modal, .swal2-popup, #login) input[type=button]:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] .btn:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] button.btn:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] a.btn:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] .form-button:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] .waves-button-input:not(.ml-unstyled, .ml-unstyled *), body[data-ml-preset=access] .ml-button:not(.ml-unstyled, .ml-unstyled *) {
  border-radius: var(--ml-radius-3xl) !important;
}

/**
 * Access — sidebar composition
 *
 * A flush, full-height rail separated from the content by a single hairline.
 * Nothing floats and nothing is elevated: the seam between rail and content is
 * one line, and the brand box runs into the top bar across it.
 *
 * Flattening material-dashboard's floating panel is a decision, not a fix, so
 * it lives here. The template still renders `border-radius-xl my-3`, and
 * Material's preset lets those stand.
 */
body[data-ml-preset=access] aside.sidenav.navbar-vertical {
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body[data-ml-preset=access] aside.sidenav.navbar-vertical.fixed-start {
  border-inline-end: var(--ml-border-width) solid var(--ml-sidenav-border) !important;
}
body[data-ml-preset=access] aside.sidenav.navbar-vertical.fixed-end {
  border-inline-start: var(--ml-border-width) solid var(--ml-sidenav-border) !important;
}
body[data-ml-preset=access] {
  /* Category rows are the rail's section headers, so they take the
     section-label treatment rather than reading as another menu row one step
     smaller than its siblings. */
}
body[data-ml-preset=access] .sidenav .navbar-nav .nav-link[data-bs-toggle=collapse] {
  font-size: var(--ml-font-size-n4) !important;
  letter-spacing: var(--ml-tracking-xl);
  text-transform: uppercase;
}
body[data-ml-preset=access] {
  /* A neutral pill, so it does not compete with the active row's brand tint,
     and a brand pill on the active row itself. */
}
body[data-ml-preset=access] aside.sidebar-nav a.nav-link .rowCount.badge,
body[data-ml-preset=access] .sidenav .navbar-nav .nav-link .rowCount.badge {
  padding: 1px 7px !important;
  border-radius: var(--ml-radius-full) !important;
  background: var(--ml-bg-strong) !important;
  color: var(--ml-text-weak) !important;
  line-height: 1.45 !important;
}
body[data-ml-preset=access] aside.sidebar-nav a.nav-link.active .rowCount.badge,
body[data-ml-preset=access] .sidenav .navbar-nav .nav-link.active .rowCount.badge {
  background: var(--ml-bg-brand-weak) !important;
  color: var(--ml-text-brand-down) !important;
}
body[data-ml-preset=access] .sidenav .navbar-nav > .nav-item > .collapse > .nav, body[data-ml-preset=access] .sidenav .navbar-nav > .nav-item > .collapsing > .nav {
  padding-inline-start: 5px !important;
  border-inline-start: 0 !important;
}

/**
 * Access — top bar composition
 *
 * Flush and square, closed by a hairline. Its height is shared with the
 * sidebar's brand box (`--ml-sidenav-brand-height` defaults to
 * `--ml-navbar-height`) so the two line up across the seam, and the border sits
 * inside that height - `box-sizing: border-box` is global - so the seam is one
 * line and not two.
 */
body[data-ml-preset=access] nav.navbar-main {
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: var(--ml-border-width) solid var(--ml-navbar-border) !important;
  box-shadow: var(--ml-navbar-shadow) !important;
  backdrop-filter: none !important;
}
body[data-ml-preset=access] .main-content {
  border-radius: 0 !important;
}
body[data-ml-preset=access].dark-version .main-content {
  background-color: var(--ml-page-bg) !important;
}
body[data-ml-preset=access].dark-version .navbar-main {
  background-color: var(--ml-datalist-bg) !important;
}

/**
 * Access — datalist composition
 *
 * The panel header is closed by a hairline rather than held off the table by a
 * gap, matching the way a form section's title is closed. The title itself
 * drops from a page heading to a card heading: the panel is one object inside
 * the page, not the page's subject.
 *
 * The other decision here is what a row action looks like. Everything else the
 * identity needs from the datalist is values, carried by `--ml-datalist-*`,
 * which default to Access's.
 */
body[data-ml-preset=access] {
  /* A title band, like a form section's: the name on one side, the actions on
     the other, closed by a rule. The skeleton starts its children at the top
     edge, which is right for a header carrying a subtitle and wrong for this
     one - a 24px title and a 40px button on the same line read as a row only
     when they share a centre. */
}
body[data-ml-preset=access] .dataList .ml-panel-header {
  align-items: center;
  padding-bottom: var(--ml-space-3);
  margin-bottom: var(--ml-space-4);
  border-bottom: var(--ml-border-width) solid var(--ml-border-weak);
}
body[data-ml-preset=access] .dataList .ml-panel-title,
body[data-ml-preset=access] .dataList .ml-list-title {
  font-size: var(--ml-font-size-n1);
  line-height: var(--ml-line-height-n1);
  letter-spacing: var(--ml-tracking-sm);
}
body[data-ml-preset=access] {
  /* ── Row actions ──
     Quiet outlined squares: the input surface, the input border, weak ink,
     and the brand only on hover.

     They used to be brand-tinted plates, which is the treatment a primary
     action gets - and on a list of ten rows that is ten primary actions down
     the right edge, a column of colour that pulls the eye away from the data
     it is there to act on. The row is the subject; its actions are available,
     not advertised. Colour comes back the moment you point at one.

     `!important` throughout because the skeleton sets these same properties
     with it, to get past the button classes Joget's own stylesheets attach. */
}
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> i),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .far),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far),
body[data-ml-preset=access] .dataList table tbody tr td.row_action .btn:has(> i:only-child),
body[data-ml-preset=access] .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child) {
  background: var(--ml-bg-surface-1) !important;
  background-image: none !important;
  border: var(--ml-border-width) solid var(--ml-input-border) !important;
  color: var(--ml-text-weak) !important;
  box-shadow: none !important;
}
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> i):hover, body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> i):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .fa):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .fas):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .far):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a:not(.btn):has(> .far):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> i):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fa):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .fas):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a:not(.btn):has(> .far):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .btn:has(> i:only-child):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .btn:has(> i:only-child):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .row_action_inner > .btn:has(> i:only-child):focus {
  background: var(--ml-bg-brand-weakest) !important;
  border-color: var(--ml-border-brand-default) !important;
  color: var(--ml-text-brand-default) !important;
}
body[data-ml-preset=access] .dataList table tbody tr td.row_action {
  /* A destructive action is the exception: it stays tinted at rest,
     because "which one of these deletes the record" is a question worth
     answering before the pointer arrives. */
}
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i),
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i),
body[data-ml-preset=access] .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child),
body[data-ml-preset=access] .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child) {
  background: var(--ml-bg-danger-weakest) !important;
  border-color: var(--ml-border-danger-weak) !important;
  color: var(--ml-text-danger-default) !important;
}
body[data-ml-preset=access] .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i):hover, body[data-ml-preset=access] .dataList table tbody tr td.row_action > a.btn-danger:not(.btn):has(> i):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action > .row_action_inner > a.btn-danger:not(.btn):has(> i):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .btn.btn-danger:has(> i:only-child):focus,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child):hover,
body[data-ml-preset=access] .dataList table tbody tr td.row_action .row_action_inner > .btn.btn-danger:has(> i:only-child):focus {
  background: var(--ml-bg-danger-weak) !important;
  border-color: var(--ml-border-danger-default) !important;
  color: var(--ml-text-on-danger-weak) !important;
}

/**
 * Access — form stepper composition
 *
 * A segmented strip, not a wizard rail. The step you are on is a pill on the
 * card's own white with a hairline round it; every other step is bare text.
 * No numbered circle and no connector: this identity carries the order in the
 * title ("Page 1 — …") and a rail drawn across a form card reads as a second
 * frame inside the first one.
 *
 * On the selector: plain `body[data-ml-preset="access"]`, NOT `:where()` - see
 * presets/access/form for why. Here it has a second job. The plugin's template
 * inlines its own <style> after this stylesheet, `!important` on the active and
 * the errored label; the preset attribute is what carries these past both that
 * and the skeleton's own overrides in components/plugins.
 */
body[data-ml-preset=access] {
  /* The header is the strip itself - no card, no padding of its own. The
     `overflow: hidden` the plugin sets would clip the active pill's shadow,
     and it is only there to keep the connectors inside a rounded box that
     this identity does not draw. */
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header {
  background: var(--ml-card-bg) !important;
  border-radius: var(--ml-card-radius) !important;
  border: var(--ml-border-width) solid var(--ml-border-weak) !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin-bottom: var(--ml-space-4) !important;
  gap: var(--ml-space-2);
  justify-content: flex-start;
  padding: 6px !important;
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .bs-stepper-circle,
body[data-ml-preset=access] .stepper-section .bs-stepper-header .line {
  display: none !important;
}
body[data-ml-preset=access] {
  /* Semibold in both states on purpose. The reference screens read the same
     weight for the active step and the rest - it is the pill and the colour
     that separate them - and a weight that changes with the state would
     reflow the strip on every step change. Size, leading and tracking are
     Caption/M. */
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step .step-trigger {
  padding: var(--ml-space-2-5) var(--ml-space-4);
  border: var(--ml-border-width) solid transparent;
  border-radius: var(--ml-btn-radius-md);
  background: transparent;
  color: var(--ml-text-weak);
  font-size: var(--ml-type-caption-m-size);
  line-height: var(--ml-type-caption-m-line);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-type-caption-m-tracking);
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step .step-trigger:hover {
  background-color: var(--ml-bg-highlight-dark-alpha-050);
  color: var(--ml-text-default);
}
body[data-ml-preset=access] {
  /* bs-stepper gives the label a .25rem margin of its own; the pill's padding
     is what sets the shape here, so it goes. */
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step .bs-stepper-label {
  margin: 0;
}
body[data-ml-preset=access] {
  /* A brand tint, not a white plate. The plate worked while the strip sat on
     the page ground and the form was one card; now that the stepper is a card
     of its own, white on white left the active step carrying nothing but a
     hairline - and the card's elevation, which this identity no longer
     draws. The tint says which step you are on without a second frame. */
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step.active .step-trigger {
  background: var(--ml-bg-brand-weakest);
  border-color: transparent;
  box-shadow: none;
  color: var(--ml-text-brand-default);
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step.active .bs-stepper-label {
  color: var(--ml-text-brand-default) !important;
}
body[data-ml-preset=access] {
  /* -- a step whose pane holds a field-level error --
     The pill still says where you are; the colour says which step is wrong. */
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step.has-error .bs-stepper-label {
  color: var(--ml-text-danger-default) !important;
}
body[data-ml-preset=access] .stepper-section .bs-stepper-header .step.has-error.active .step-trigger {
  border-color: var(--ml-border-danger-default);
}
body[data-ml-preset=access] {
  /* MultiPagedForm Plugin */
}
body[data-ml-preset=access] [id$=_ghost_section],
body[data-ml-preset=access] .multiPagedForm-parent-section {
  background: transparent !important;
  top: 0 !important;
  margin-top: 20px !important;
}
body[data-ml-preset=access] [id$=_ghost_section] > .section-content > .form-column,
body[data-ml-preset=access] [id$=_ghost_section] > .form-column,
body[data-ml-preset=access] .multiPagedForm-parent-section > .section-content > .form-column,
body[data-ml-preset=access] .multiPagedForm-parent-section > .form-column {
  padding: 0 !important;
}
body[data-ml-preset=access] [id$=_ghost_section] .multiPagedForm.wizard .page-nav-panel,
body[data-ml-preset=access] .multiPagedForm-parent-section .multiPagedForm.wizard .page-nav-panel {
  padding: 6px;
  background: var(--ml-card-bg);
  border-radius: var(--ml-card-radius);
  border: var(--ml-border-width) solid var(--ml-card-border);
}
body[data-ml-preset=access] [id$=_ghost_section] .multiPagedForm.wizard .page-nav-panel ul,
body[data-ml-preset=access] .multiPagedForm-parent-section .multiPagedForm.wizard .page-nav-panel ul {
  margin-bottom: 0 !important;
}
body[data-ml-preset=access] [id$=_ghost_section] .multiPagedForm.wizard .page-nav-panel .nav_item button,
body[data-ml-preset=access] .multiPagedForm-parent-section .multiPagedForm.wizard .page-nav-panel .nav_item button {
  border: none;
  box-shadow: none;
}
body[data-ml-preset=access] [id$=_ghost_section] .multiPagedForm.wizard .page-nav-panel .nav_item.current button,
body[data-ml-preset=access] [id$=_ghost_section] .multiPagedForm.wizard .page-nav-panel .nav_item.current button:disabled,
body[data-ml-preset=access] .multiPagedForm-parent-section .multiPagedForm.wizard .page-nav-panel .nav_item.current button,
body[data-ml-preset=access] .multiPagedForm-parent-section .multiPagedForm.wizard .page-nav-panel .nav_item.current button:disabled {
  background: var(--ml-bg-brand-weakest);
}
body[data-ml-preset=access] [id$=_ghost_section] .multiPagedForm.wizard .mpf-step-title,
body[data-ml-preset=access] .multiPagedForm-parent-section .multiPagedForm.wizard .mpf-step-title {
  font-size: 13px !important;
}

/**
 * SIAM — form composition
 *
 * The opposite of Access: no card around the form. Each section is a flat
 * bordered card standing 20px clear of the next, and its title is marked by a
 * 3px vertical brand bar rather than by a rule beneath it. Surfaces are
 * separated by borders, never by depth, so nothing here carries a shadow.
 *
 * This is the composition the shared component layer used to hold, which is
 * why SIAM's preset barely needed to exist. It lives here now, and the shared
 * layer holds mechanics only.
 */
body[data-ml-preset=siam] {
  /* No card: the form is a transparent stack of framed sections. */
}
body[data-ml-preset=siam] form:has(> .form-section) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-ml-preset=siam] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]),
body[data-ml-preset=siam] .subform-section,
body[data-ml-preset=siam] .userProfile-body-content .form fieldset {
  background: var(--ml-bg-surface-1);
  border: var(--ml-border-width) solid var(--ml-border-default);
  border-radius: var(--ml-input-radius-base) !important;
  box-shadow: none !important;
  margin-top: var(--ml-space-5) !important;
}
body[data-ml-preset=siam] {
  /* Separated by their own margins, so no divider between them. */
}
body[data-ml-preset=siam] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]) + .form-section {
  border-top: var(--ml-border-width) solid var(--ml-border-default) !important;
}
body[data-ml-preset=siam] :not(#_ja_inbox) form > .form-section:first-of-type {
  margin-top: 0 !important;
}
body[data-ml-preset=siam] {
  /* ── Section title ──
     A header, not a divider: full-size, dark, opened by the brand bar. */
}
body[data-ml-preset=siam] .form-section > .form-section-title,
body[data-ml-preset=siam] .subform-section > .subform-section-title,
body[data-ml-preset=siam] .userProfile-body-content .form fieldset > legend {
  padding: 22px var(--ml-card-padding) !important;
  border-bottom: var(--ml-border-width) solid var(--ml-border-default);
  color: var(--ml-text-brand-default);
  font-size: var(--ml-font-size-0);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-sm);
  text-transform: none;
  /* brand accent bar */
}
body[data-ml-preset=siam] .form-section > .form-section-title::before,
body[data-ml-preset=siam] .subform-section > .subform-section-title::before,
body[data-ml-preset=siam] .userProfile-body-content .form fieldset > legend::before {
  content: "";
  flex: 0 0 var(--ml-sidenav-accent-bar);
  width: var(--ml-sidenav-accent-bar);
  height: 20px;
  background: var(--ml-gradient-vertical);
}
body[data-ml-preset=siam] {
  /* ── Action row ──
     A bar of its own standing clear of the form, actions to the trailing
     edge. Not a footer: nothing is welded to anything in this identity. */
}
body[data-ml-preset=siam] .form-section#section-actions {
  justify-content: flex-end;
  margin-top: var(--ml-space-5) !important;
  padding: 18px var(--ml-card-padding) !important;
  background: var(--ml-bg-surface-1) !important;
  border: var(--ml-border-width) solid var(--ml-border-default) !important;
  border-radius: var(--ml-input-radius-base) !important;
  box-shadow: none !important;
}

/**
 * SIAM — sidebar composition
 *
 * The same flush rail as Access, closed at its foot by the four-stop brand
 * gradient strip. That strip is the one place SIAM's accent gold appears, and
 * it is the identity's signature on the shell.
 *
 * The active row is a solid brand fill here (set in `_tokens.scss`), which has
 * one knock-on this file has to handle: a counter pill sitting on a filled row
 * cannot be a brand pill, so it inverts to a translucent white one.
 */
body[data-ml-preset=siam] aside.sidenav.navbar-vertical {
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  /* room for the strip, so the last menu row cannot scroll under it */
  padding-bottom: var(--ml-sidenav-accent-bar);
}
body[data-ml-preset=siam] aside.sidenav.navbar-vertical.fixed-start {
  border-inline-end: var(--ml-border-width) solid var(--ml-sidenav-border) !important;
}
body[data-ml-preset=siam] aside.sidenav.navbar-vertical.fixed-end {
  border-inline-start: var(--ml-border-width) solid var(--ml-sidenav-border) !important;
}
body[data-ml-preset=siam] aside.sidenav.navbar-vertical {
  /* brand gradient strip, pinned to the bottom of the panel */
}
body[data-ml-preset=siam] aside.sidenav.navbar-vertical::after {
  content: "";
  position: fixed;
  bottom: 0;
  inset-inline-start: 0;
  width: var(--ml-sidenav-width);
  height: var(--ml-sidenav-accent-bar);
  background: var(--ml-gradient);
  pointer-events: none;
}
body[data-ml-preset=siam] .sidenav .navbar-collapse {
  padding-bottom: var(--ml-sidenav-accent-bar);
}
body[data-ml-preset=siam] {
  /* Category rows read as menu rows one step down, not as labels. */
}
body[data-ml-preset=siam] .sidenav .navbar-nav .nav-link[data-bs-toggle=collapse] {
  font-size: var(--ml-font-size-label) !important;
  letter-spacing: var(--ml-tracking-md);
  text-transform: none;
}
body[data-ml-preset=siam] {
  /* A brand-tinted pill on an ordinary row. */
}
body[data-ml-preset=siam] aside.sidebar-nav a.nav-link .rowCount.badge,
body[data-ml-preset=siam] .sidenav .navbar-nav .nav-link .rowCount.badge {
  padding: 3px 8px !important;
  border-radius: var(--ml-sidenav-item-radius) !important;
  background: var(--ml-bg-brand-weakest) !important;
  color: var(--ml-text-on-brand-weak) !important;
  line-height: 1.3 !important;
}
body[data-ml-preset=siam] {
  /* On the filled active row it has to invert: a brand tint on brand is
     invisible, and white text needs a translucent white plate under it. */
}
body[data-ml-preset=siam] aside.sidebar-nav a.nav-link.active .rowCount.badge,
body[data-ml-preset=siam] .sidenav .navbar-nav .nav-link.active .rowCount.badge {
  background: var(--ml-alpha-light-200) !important;
  color: var(--ml-text-on-brand) !important;
}

/* The strip has to follow the rail when it collapses to a mini bar, and back
   again on hover. Same media query the skeleton's mini-rail rules use. */
@media (min-width: 1200px) {
  body[data-ml-preset=siam] .g-sidenav-hidden aside.sidenav.navbar-vertical::after {
    width: var(--ml-sidenav-mini-width);
  }
  body[data-ml-preset=siam] .g-sidenav-hidden aside.sidenav.navbar-vertical:hover::after {
    width: var(--ml-sidenav-width);
  }
}
/**
 * SIAM — top bar composition
 *
 * Flush and square like Access, but closed by the heavier `border-default`
 * rather than a hairline: this identity separates every surface with a visible
 * 1px line and nothing else, so the line has to be the one you can see.
 */
body[data-ml-preset=siam] nav.navbar-main {
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: var(--ml-border-width) solid var(--ml-border-default) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body[data-ml-preset=siam] .main-content {
  border-radius: 0 !important;
}

/**
 * SIAM — datalist composition
 *
 * The panel header stands clear of the table on its own margin. Surfaces in
 * this identity are separated by whitespace and a visible border, never by a
 * rule drawn through a heading.
 */
body[data-ml-preset=siam] .dataList .ml-panel-header {
  margin-bottom: var(--ml-space-5);
  border-bottom: 0;
}

/**
 * SIAM — enhanced choice fields
 *
 * The picked option is filled with its accent, not washed with it. That is the
 * identity's one consistent move for a chosen thing: the sidebar's active row
 * is a solid brand plate, and a tile that only tinted itself would read as
 * hover next to it. Everything on the fill inverts, and the icon disc becomes
 * a light plate on it rather than a second saturated shape.
 *
 * Shape needs nothing here - 2px corners and no shadow already reach the tile
 * from `_tokens.scss` in this directory, through `--ml-radius-sm` and
 * `--ml-shadow-1`.
 *
 * This is a layout file rather than four token values because the fill derives
 * from `--enhance-choice-primary`, which the plugin writes inline on each tile.
 * A token declared on `body` substitutes there, and would carry the brand
 * fallback down to every tile instead of each tile's own colour; see the
 * header of `components/_plugins.scss`.
 *
 * On the selector: plain `body[data-ml-preset="siam"]`, NOT `:where()` - see
 * presets/siam/form for why.
 */
body[data-ml-preset=siam] .selectable-cards .selectable-card.active {
  background: var(--ml-choice-accent) !important;
  border-color: var(--ml-choice-accent) !important;
}
body[data-ml-preset=siam] .selectable-cards .selectable-card.active .card-info .selectable-label,
body[data-ml-preset=siam] .selectable-cards .selectable-card.active .card-info .selectable-desc,
body[data-ml-preset=siam] .selectable-cards .selectable-card.active .check-icon {
  color: var(--ml-text-on-brand) !important;
}
body[data-ml-preset=siam] {
  /* A white plate at 20%, read from the primitive on purpose: it sits on a
     saturated accent in both schemes, so it must not flip with the scheme
     the way `--ml-bg-highlight-light-*` would. */
}
body[data-ml-preset=siam] .selectable-cards .selectable-card.active:not(.no-icon) .card-icon {
  background: var(--ml-alpha-light-200) !important;
  color: var(--ml-text-on-brand) !important;
}

/**
 * SIAM — login composition
 *
 * The opposite of Access in all three layouts: nothing is inset and nothing
 * floats on a shadow. What marks the page instead is the four stop gradient,
 * SIAM's one deliberate spend of colour, drawn wherever a login layout closes
 * something off - the CTA in every layout, and the top edge of the card in
 * `basic` and `cover`. Flat elsewhere: SIAM's shadows are all `none`, so the
 * `cover`/`basic` card leans on `--ml-card-border` for its edge instead of a
 * shadow, same as every other SIAM surface.
 *
 * This is the composition the shared component layer used to hold before the
 * split screen had presets. It lives here now; the skeleton holds mechanics
 * only.
 *
 * The token half of it - the gradient rule, its 120x4 size, the taller control -
 * is in `_tokens.scss` beside this file, because those are values.
 *
 * On the selector: plain `body[data-ml-preset="siam"]`, NOT `:where()`, so it
 * out-specifies the skeleton's own `!important` rules.
 */
body[data-ml-preset=siam] {
  /* Square, because the strip below is drawn flush against it. The top
     corners keep the identity's 2px so the button is not the one element on
     the page with a corner nobody else has. Unscoped: the same button
     renders in the split screen and both cards. */
}
body[data-ml-preset=siam] .ml-login__button.btn {
  border-radius: var(--ml-radius-sm) var(--ml-radius-sm) 0 0 !important;
}
body[data-ml-preset=siam] {
  /* The strip closing the CTA - the sidebar's accent bar, reused on the one
     control every layout has. */
}
body[data-ml-preset=siam] .ml-login__accent-bar {
  display: block;
  background: var(--ml-gradient);
}
body[data-ml-preset=siam] {
  /* The same strip, opening the card instead of closing the button - marks
     `basic`'s and `cover`'s card the way the accent rule marks the
     illustration hero. */
}
body[data-ml-preset=siam] .ml-login-basic__card-accent,
body[data-ml-preset=siam] .ml-login-cover__card-accent {
  display: block;
  background: var(--ml-gradient);
}

/**
 * Material — form composition
 *
 * Separated by depth rather than by line: each section is its own elevated
 * card, borderless, rounded, floating on the page ground. That is the whole
 * distinction from SIAM, which separates the same sections by a 1px border and
 * no shadow, and from Access, which does not separate them at all.
 *
 * So this file sets no radius and no shadow value: `--ml-radius-*` and
 * `--ml-shadow-*` already carry Material's numbers from `_tokens.scss`. It only
 * decides which elements are the things that get elevated.
 */
body[data-ml-preset=material] {
  /* No card around the form; the sections are the cards. */
}
body[data-ml-preset=material] form:has(> .form-section) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body[data-ml-preset=material] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]),
body[data-ml-preset=material] .subform-section,
body[data-ml-preset=material] .userProfile-body-content .form fieldset {
  background: var(--ml-bg-surface-1);
  border: 0 !important;
  border-radius: var(--ml-card-radius) !important;
  box-shadow: var(--ml-card-shadow) !important;
  margin-top: var(--ml-space-6) !important;
}
body[data-ml-preset=material] {
  /* Depth already separates them, so there is no divider to draw. */
}
body[data-ml-preset=material] form > .form-section:not(#section-actions, .multiPagedForm-parent-section, [id$=_ghost_section]) + .form-section {
  border-top: 0 !important;
}
body[data-ml-preset=material] :not(#_ja_inbox) form > .form-section:first-of-type {
  margin-top: 0 !important;
}
body[data-ml-preset=material] {
  /* ── Section title ──
     Material titles the card rather than labelling a band inside it, and it
     has no rule beneath: the card edge is the separation. */
}
body[data-ml-preset=material] .form-section > .form-section-title,
body[data-ml-preset=material] .subform-section > .subform-section-title,
body[data-ml-preset=material] .userProfile-body-content .form fieldset > legend {
  padding: var(--ml-space-6) var(--ml-card-padding) var(--ml-space-2) !important;
  border-bottom: 0;
  color: var(--ml-text-default);
  font-size: var(--ml-font-size-1);
  font-weight: var(--ml-font-weight-semibold);
  letter-spacing: var(--ml-tracking-sm);
  text-transform: none;
}
body[data-ml-preset=material] {
  /* The column then needs no top padding of its own - the title already
     carries the gap that would have been the card's inner edge. */
}
body[data-ml-preset=material] .form-section:not(.no_label) > .form-column {
  padding-top: var(--ml-space-2) !important;
}
body[data-ml-preset=material] {
  /* ── Action row ──
     Its own elevated card, actions to the trailing edge, which is where
     Material puts a card's primary action. */
}
body[data-ml-preset=material] .form-section#section-actions {
  justify-content: flex-end;
  margin-top: var(--ml-space-6) !important;
  padding: var(--ml-space-4) 0 !important;
  border: 0 !important;
}

/**
 * Material — sidebar composition
 *
 * The detached rail: a rounded, elevated panel floating clear of the content on
 * all four sides, which is what material-dashboard draws and what the template
 * has always asked for with `border-radius-xl my-3` on the `<aside>`.
 *
 * Note what this file does NOT do. It sets no margin: `my-3` and `ms-3` from
 * the template already supply it. It sets no radius or shadow value:
 * `--ml-radius-*` and `--ml-shadow-*` carry Material's own numbers. The panel
 * floated all along - the shared layer was flattening it with `margin: 0;
 * border-radius: 0; box-shadow: none`, and the fix was to stop, not to
 * re-declare it. So the work here is the height, which has to account for the
 * margins the template adds, and the content offset that follows from it.
 */
body[data-ml-preset=material] aside.sidenav.navbar-vertical {
  /* `my-3` is 1rem top and bottom, so the panel is 2rem short of the
     viewport. Stated rather than inherited because the skeleton sets no
     height at all and a fixed-position panel needs one. */
  height: calc(100vh - 2rem) !important;
  max-height: calc(100vh - 2rem) !important;
  border: 0 !important;
  border-radius: var(--ml-radius-lg) !important;
  box-shadow: var(--ml-shadow-2) !important;
  overflow-y: auto;
}
body[data-ml-preset=material] {
  /* No hairline on either edge: the panel is separated by the gap around it,
     and a border on a floating card reads as a second frame. */
}
body[data-ml-preset=material] aside.sidenav.navbar-vertical.fixed-start,
body[data-ml-preset=material] aside.sidenav.navbar-vertical.fixed-end {
  border: 0 !important;
}
body[data-ml-preset=material] {
  /* Category rows read as menu rows, sentence case. */
}
body[data-ml-preset=material] .sidenav .navbar-nav .nav-link[data-bs-toggle=collapse] {
  font-size: var(--ml-font-size-label) !important;
  letter-spacing: var(--ml-tracking-md);
  text-transform: none;
}
body[data-ml-preset=material] {
  /* Same inversion problem as SIAM: the active row is a filled pill. */
}
body[data-ml-preset=material] aside.sidebar-nav a.nav-link .rowCount.badge,
body[data-ml-preset=material] .sidenav .navbar-nav .nav-link .rowCount.badge {
  padding: 2px 8px !important;
  border-radius: var(--ml-radius-full) !important;
  background: var(--ml-bg-strong) !important;
  color: var(--ml-text-weak) !important;
  line-height: 1.4 !important;
}
body[data-ml-preset=material] aside.sidebar-nav a.nav-link.active .rowCount.badge,
body[data-ml-preset=material] .sidenav .navbar-nav .nav-link.active .rowCount.badge {
  background: var(--ml-alpha-light-200) !important;
  color: var(--ml-text-on-brand) !important;
}

/* The content sits clear of the floating panel, not flush against it: the rail
   is `--ml-sidenav-width` wide plus the 1rem the template's `ms-3` puts beside
   it. The skeleton offsets by the width alone, which is right for a flush rail
   and one gap short for a detached one. */
@media (min-width: 1200px) {
  body[data-ml-preset=material] .sidenav.fixed-start + .main-content {
    margin-left: calc(var(--ml-sidenav-width) + 2rem);
  }
  body[data-ml-preset=material] .sidenav.fixed-end + .main-content {
    margin-right: calc(var(--ml-sidenav-width) + 2rem);
  }
  body[data-ml-preset=material] .g-sidenav-hidden .navbar-vertical.fixed-start + .main-content {
    margin-left: calc(var(--ml-sidenav-mini-width) + 2rem);
  }
  body[data-ml-preset=material] .g-sidenav-hidden .navbar-vertical:hover.fixed-start + .main-content {
    margin-left: calc(var(--ml-sidenav-width) + 2rem);
  }
}
/**
 * Material — top bar composition
 *
 * A floating rounded bar with a blur behind it, matching the detached rail
 * beside it. Where Access and SIAM close the header with a line, Material
 * separates it with a gap and a translucent plate.
 *
 * `position: sticky` and the stacking order come from the skeleton; only the
 * frame is decided here. The bar keeps the horizontal inset the content canvas
 * already has, so it lines up with the page below rather than bleeding past it.
 */
body[data-ml-preset=material] nav.navbar-main {
  position: sticky !important;
  top: 0.5rem !important;
  margin: 0.5rem 0 1rem !important;
  border: 0 !important;
  border-radius: var(--ml-radius-lg) !important;
  box-shadow: var(--ml-shadow-1) !important;
  /* The translucent plate. A blur needs a background it can show through,
     so this is the one place the navbar background is not the opaque
     token - and it falls back to the token where `backdrop-filter` is
     unsupported, which is why the fallback is declared first. */
}
body[data-ml-preset=material] nav.navbar-main.blur, body[data-ml-preset=material] nav.navbar-main.with-bg {
  background: var(--ml-navbar-bg) !important;
}
@supports (backdrop-filter: blur(20px)) {
  body[data-ml-preset=material] nav.navbar-main.blur, body[data-ml-preset=material] nav.navbar-main.with-bg {
    background: var(--ml-bg-highlight-light-alpha-800) !important;
    backdrop-filter: saturate(200%) blur(20px) !important;
  }
}
body[data-ml-preset=material] {
  /* Rounded to sit beside the floating rail. */
}
body[data-ml-preset=material] .main-content {
  border-radius: var(--ml-radius-lg) !important;
}
body[data-ml-preset=material] nav.navbar-main .navbar-nav > .nav-item > .nav-link,
body[data-ml-preset=material] .theme-toggle-wrapper {
  border: none !important;
}

/**
 * Material — datalist composition
 *
 * Like SIAM the header stands clear on its own margin, but a wider one: the
 * surfaces below it float on shadow, and a tight gap would let the heading read
 * as part of the card rather than above it.
 */
body[data-ml-preset=material] .dataList .ml-panel-header {
  margin-bottom: var(--ml-space-6);
  border-bottom: 0;
}

/**
 * Material — login composition
 *
 * Separated by depth, the way every other surface in this identity is.
 *
 * In `illustration`, that means the brand panel runs full bleed and the
 * sign-in column becomes an elevated card standing on the page ground beside
 * it - Access insets the brand panel and leaves the form bare; this does the
 * reverse, which is the whole distinction between the two. The card there is
 * the only one on the page, so nothing is a card inside a card.
 *
 * `basic` and `cover` already float a card over the ink or the photo - what
 * Material adds is more lift: `--ml-shadow-3` instead of the ambient
 * `--ml-card-shadow`, so the one card on the page reads as elevated rather
 * than merely bordered, matching illustration's sign-in column.
 *
 * No radius value is written below: `--ml-radius-lg` already carries
 * Material's number from `_tokens.scss`.
 *
 * On the selector: plain `body[data-ml-preset="material"]`, NOT `:where()`, so
 * it out-specifies the skeleton's own `!important` rules.
 */
body[data-ml-preset=material] {
  /* The ground. `--ml-page-bg` is the blue tinted grey the whole identity
     floats its cards on, and it re-derives in dark mode, so the card stays
     readable in both. */
}
body[data-ml-preset=material] .ml-login__panel {
  padding: var(--ml-space-10);
  background: var(--ml-page-bg);
}
body[data-ml-preset=material] .ml-login__form {
  max-width: 420px;
  padding: var(--ml-space-9) var(--ml-space-8) var(--ml-space-8);
  background: var(--ml-card-bg);
  border-radius: var(--ml-radius-lg);
  box-shadow: var(--ml-shadow-3);
}
body[data-ml-preset=material] {
  /* The card's own padding is now holding the intro off the top edge, so the
     column's internal rhythm tightens by the same amount it gained. */
}
body[data-ml-preset=material] .ml-login .ml-login__intro {
  margin-bottom: var(--ml-space-7);
}
body[data-ml-preset=material] .ml-login .ml-login__footer:empty {
  display: none;
}
@media (max-width: 991.98px) {
  body[data-ml-preset=material] .ml-login__panel {
    padding: var(--ml-space-8) var(--ml-space-6);
  }
  body[data-ml-preset=material] .ml-login__form {
    padding: var(--ml-space-8) var(--ml-space-6);
  }
}
body[data-ml-preset=material] {
  /* `basic` and `cover`: more lift on the one card each layout has. */
}
body[data-ml-preset=material] .ml-login-basic__card,
body[data-ml-preset=material] .ml-login-cover__card {
  box-shadow: var(--ml-shadow-3);
}

/**
 * Melkart theme - responsive token tier
 *
 * The tier that retunes the shell for a small screen and for a finger. It is
 * the last token block the theme itself emits: after the presets, so an
 * identity's own values are the ones being retuned, and before the settings
 * screen's block, so a value someone typed in Colors or Shape & Density still
 * wins. That last point is deliberate - a typed value is a stated intent, and
 * the theme should not quietly overrule it at 400px.
 *
 * Every block lands on a bare `body`, at (0,0,1), like the tiers above: there
 * is no condition to wrap in `:where()` here because the media query is the
 * condition. So all of them settle by order rather than by weight, and
 * `body.dark-version` and `body.rtl` still outrank them at (0,1,1).
 *
 * Two questions, kept apart on purpose, because they have different answers:
 *
 *   How much room is there?   -> the width blocks. Padding, gutters, the size
 *                                of type that only has to fit.
 *   What is pointing at it?   -> the touch block. Tap targets. A 1280px tablet
 *                                is a finger; a 500px desktop window is not.
 */
/* ── Narrow: phone and small tablet portrait ──
   The page shell gives back the width it was spending on margins. The card
   padding drops one step below the gutter rather than matching it, so a card
   still reads as inset from the page rather than as the page. */
@media (max-width: 767.98px) {
  body {
    --ml-gutter: var(--ml-space-4);
    --ml-card-padding: var(--ml-space-5);
    --ml-modal-padding: var(--ml-space-5);
    --ml-login-card-padding: var(--ml-space-6);
    --ml-navbar-height: var(--ml-size-xl);
    --ml-sidenav-brand-height: var(--ml-size-xl);
  }
}
/* ── Phone ──
   Below this the page is one column and there is nothing left to trade.

   The input size is the important line. iOS Safari zooms into any control it
   focuses whose text is under 16px, and it does not zoom back out: the user
   fills one field and spends the rest of the form panning sideways. Every
   control in the theme reads `--ml-type-input-*`, so raising the role here
   fixes the whole form at once - inputs, selects, textareas, the filter row,
   the plugins that were pulled onto the same recipe. This is a correctness fix
   wearing a token's clothes; do not tune it back down. */
@media (max-width: 575.98px) {
  body {
    --ml-gutter: var(--ml-space-3);
    --ml-card-padding: var(--ml-space-4);
    --ml-login-card-padding: var(--ml-space-5);
    --ml-type-input-s-size: var(--ml-font-size-n1);
    --ml-type-input-m-size: var(--ml-font-size-n1);
    /* One step down: a 20px page title beside a burger, a back arrow and
       three icon buttons is the thing that wraps the navbar onto a second
       line. */
    --ml-type-heading-s-size: var(--ml-font-size-0);
  }
}
/* ── Touch pointer ──
   Independent of width. Only the metrics that are about the finger.

   `--ml-control-height-sm` is the theme's 32px step and it is what row actions,
   pagination and the tools row are all written against, so raising it here is
   what puts every one of them over the tap floor in a single line, without a
   rule per component. The medium step is already 40 and moves to the floor with
   it; the large step is 48 and is already past it. */
@media (hover: none) and (pointer: coarse) {
  body {
    --ml-control-height-sm: var(--ml-touch-target);
    --ml-control-height-md: var(--ml-touch-target);
    --ml-btn-height-sm: var(--ml-touch-target);
    --ml-btn-height-md: var(--ml-touch-target);
    --ml-sidenav-item-height: var(--ml-touch-target);
    --ml-datalist-pagination-gap: var(--ml-space-2);
  }
}
/**
 * Melkart theme — the light/dark wipe
 *
 * `body.dark-version` repoints the whole semantic tier in one frame, so every
 * surface on the page changes colour at once. Left alone that reads as a flash,
 * and the hover transitions scattered through the theme and through
 * `material-dashboard.css` make it worse rather than softer: each one tweens
 * its own colour on its own duration, so the page arrives at the new scheme in
 * waves instead of arriving at all.
 *
 * The View Transitions API replaces all of that with a single animation. The
 * browser snapshots the page as it was, paints the new state live above it, and
 * this file clips that new state to a circle growing out of the toggle button.
 * Two consequences follow, and they are the two blocks below:
 *
 * - The UA cross-fade has to go, or it plays underneath the wipe. `animation:
 *   none` kills it; `mix-blend-mode: normal` undoes its `plus-lighter`
 *   companion, which would otherwise wash out whatever the circle reveals.
 * - Nothing else may tween a colour while the wipe runs, or the same pixel is
 *   being animated by two things at once and the circle's edge stops being a
 *   clean line. Hence the blanket `transition: none` — in force only for the
 *   length of the wipe, while `data-ml-scheme-transition` is on <html>. The
 *   toggle itself is exempt, so its sun still morphs into a moon underneath the
 *   circle it just launched.
 *
 * Origin and radius are written onto <html> by `switchThemeScheme()` in
 * `js/melkart-legacy-theme.js`, one frame before the transition starts. Custom
 * properties inherit into the ::view-transition tree from the root element,
 * which is how they reach a pseudo-element no selector can otherwise address.
 *
 * Browsers without the API, and anyone who asked for reduced motion, never get
 * here: the JS commits the class straight away, exactly as it always did.
 */
/**
 * `:root`, not `body`, and not by preference. The ::view-transition tree hangs
 * off the root element, so it inherits from <html> and never sees anything
 * declared on <body> — which is where every other writer in this theme lands,
 * the settings screen included. These are therefore the one group of
 * `--ml-*` tokens the *Other design tokens* field cannot reach; an override has
 * to name `html`.
 */
:root {
  --ml-scheme-transition-duration: 0.55s;
  --ml-scheme-transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* Overwritten on <html> before every switch. These are only here so the
     keyframes stay valid if they ever aren't, in which case the circle opens
     from the middle of the viewport. */
  --ml-scheme-origin-x: 50vw;
  --ml-scheme-origin-y: 50vh;
  --ml-scheme-origin-radius: 150vmax;
}

@keyframes ml-scheme-reveal {
  from {
    clip-path: circle(0px at var(--ml-scheme-origin-x) var(--ml-scheme-origin-y));
  }
  to {
    clip-path: circle(var(--ml-scheme-origin-radius) at var(--ml-scheme-origin-x) var(--ml-scheme-origin-y));
  }
}
html[data-ml-scheme-transition]::view-transition-old(root),
html[data-ml-scheme-transition]::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* The old scheme just sits there for the length of the wipe and is discarded at
   the end; the new one is what moves. */
html[data-ml-scheme-transition]::view-transition-old(root) {
  z-index: 0;
}

html[data-ml-scheme-transition]::view-transition-new(root) {
  z-index: 1;
  animation: ml-scheme-reveal var(--ml-scheme-transition-duration) var(--ml-scheme-transition-ease) forwards;
}

/**
 * Why a layer for one rule.
 *
 * Specificity cannot win this. The transitions that have to be silenced include
 * `!important` ones at (0,3,0) — `.select2-container--default
 * .select2-selection--single` in `components/_inputs.scss` is the current
 * worst — and the next one someone writes could be higher still. Escalating the
 * selector here only postpones the problem.
 *
 * The cascade offers an exact tool instead: for `!important` declarations layer
 * order is *reversed*, and unlayered styles sort last. So an `!important`
 * declaration inside any layer beats every unlayered `!important` declaration
 * in the author origin, at any specificity, from any stylesheet. Nothing else
 * in this theme is layered, so this one block wins by construction and stays
 * winning. Should a future layer need to override it, it must be declared
 * *before* this one.
 */
@layer ml-scheme-transition {
  html[data-ml-scheme-transition] *:not(.theme-toggle-wrapper, .theme-toggle-wrapper *),
  html[data-ml-scheme-transition] *:not(.theme-toggle-wrapper, .theme-toggle-wrapper *)::before,
  html[data-ml-scheme-transition] *:not(.theme-toggle-wrapper, .theme-toggle-wrapper *)::after {
    transition: none !important;
  }
}

/*# sourceMappingURL=melkart-theme-custom.css.map */
