@charset "UTF-8";
/**
 * @prop --notification-badge-text-color: (Publicly documented in `limel-menu` too) Defines the text color of notification badges. Defaults to `--color-white`.
 * @prop --notification-badge-background-color: (Publicly documented in `limel-menu` too) Defines the background color of notification badges. Defaults to `--color-red-default`.
 * @prop --limel-list-item-menu-order: Defines the order of the menu, within the list item's flexbox. Defaults to `3`.
 */
/**
* Note! This file is exported to `dist/scss/` in the published
* node module, for consumer projects to import.
* That means this file cannot import from any file that isn't
* also exported, keeping the same relative path.
*
* Or, just don't import anything, that works too.
*/
/**
* This can be used on a trigger element that opens a dropdown menu or a popover.
*/
/**
 * This mixin will mask out the content that is close to
 * the edges of a scrollable area.
 * - If the scrollable content has `overflow-y`, use `vertically`
 * as an argument for `$direction`.
 - If the scrollable content has `overflow-x`, use `horizontally`
 * as an argument for `$direction`.
 *
 * For the visual effect to work smoothly, we need to make sure that
 * the size of the fade-out edge effect is the same as the
 * internal paddings of the scrollable area. Otherwise, content of a
 * scrollable area that does not have a padding will fade out before
 * any scrolling has been done.
 * This is why this mixin already adds paddings, which automatically
 * default to the size of the fade-out effect.
 * This size defaults to `1rem`, but to override the size use
 * `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
 * when `vertically` argument is set, and use
 * `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
 * when `horizontally` argument is set.
 * Of course you can also programmatically increase and decrease the
 * size of these variables for each edge, based on the amount of
 * scrolling that has been done by the user. In this case, make sure
 * to add a custom padding where the mixin is used, to override
 * the paddings that are automatically added by the mixin in the
 * compiled CSS code.
 */
/**
* This mixin will add an animated underline to the bottom of an `a` elements.
* Note that you may need to add `all: unset;` –depending on your use case–
* before using this mixin.
*/
/**
* This mixin creates a cross-browser font stack.
* - `sans-serif` can be used for the UI of the components.
* - `monospace` can be used for code.
*
* ⚠️ If we change the font stacks, we need to update
* 1. the consumer documentation in `README.md`, and
* 2. the CSS variables of `--kompendium-example-font-family`
* in the `<style>` tag of `index.html`.
*/
/**
* This mixin is a hack, using old CSS syntax
* to enable you to truncate a piece of text,
* after a certain number of lines.
*/
/**
* This mixin will add a chessboard background pattern,
* typically used to visualize transparency.
*/
/**
* Make a container resizable by the user.
* This is used in the documentations and examples
* of some components, to demonstrate how the component
* behaves in a resizable container.
*/
/**
 * Drag to reorder mixins
 */
/**
 * The breakpoints below are used to create responsive designs
 * in Lime's products. Therefore, they are here to get distributed
 * to all components in other private repos, which rely on this `mixins`
 * file, to create consistent styles.
 *
 * :::important
 * In very rare cases you should used media queries!
 * Nowadays, there are many better ways of achieving responsive design
 * without media queries. For example, using CSS Grid, Flexbox, and their features.
 * :::
 */
/**
  * Media query mixins for responsive design based on screen width.
  * Note that these mixins do not detect the device type!
  */
/**
 * @prop --notification-badge-text-color: (Publicly documented in `limel-menu` too) Defines the text color of notification badges. Defaults to `--color-white`.
 * @prop --notification-badge-background-color: (Publicly documented in `limel-menu` too) Defines the background color of notification badges. Defaults to `--color-red-default`.
 * @prop --limel-list-item-menu-order: Defines the order of the menu, within the list item's flexbox. Defaults to `3`.
 */
/**
* :::important
* The `CheckboxTemplate` can be imported and used in the HTML of
* other components, to render a non-functional and decorative checkbox in
* their UI. An example of this is the list component.
* This means the content of `CheckboxTemplate` will become a part of the
* consumer's DOM structure.
*
* Additionally, the consumer components' also need to import the current `.scss`
* file into their own styles file, for the checkbox to be rendered correctly!
* This means, if the styles in this file are not "specific" enough,
* there is a risk that the consumer component's styles are affected by
* our styles here.
*
* For instance if the consumer has a `<label>` or `<svg>` element,
* it might unintentionally inherit styles from the checkbox; unless we
* make the such styles more specific here.
*
* Naturally, we cannot mitigate all sorts of potential styling problems.
* The consumer component should be aware of this issue too.
* But we can ensure that our styles here both make sense,
* are readable, and are as specific as possible to avoid unintended side effects.
* :::
*/
/**
* @prop --checkbox-unchecked-border-color: Affects the border color of the default state of the checkbox (when it is not checked). Defaults to `--contrast-900`.
*/
/**
 * @prop --notification-badge-text-color: (Publicly documented in `limel-menu` too) Defines the text color of notification badges. Defaults to `--color-white`.
 * @prop --notification-badge-background-color: (Publicly documented in `limel-menu` too) Defines the background color of notification badges. Defaults to `--color-red-default`.
 * @prop --limel-list-item-menu-order: Defines the order of the menu, within the list item's flexbox. Defaults to `3`.
 */
*,
*:before,
*:after {
  box-sizing: border-box;
}

.boolean-input {
  --limel-boolean-input-box-size: 1.25rem;
  --limel-boolean-input-gap-size: 0.5rem;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: var(--limel-checkbox-min-height, 2.5rem);
  width: 100%;
}
.boolean-input input[type=checkbox],
.boolean-input input[type=radio] {
  position: absolute;
  width: 0;
  height: 0;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

label.boolean-input-label {
  min-width: var(--limel-boolean-input-box-size);
  min-height: var(--limel-boolean-input-box-size);
  padding-top: 0.125rem;
  cursor: pointer;
  position: relative;
  width: 100%;
  font-size: var(--limel-theme-default-small-font-size);
  color: var(--limel-theme-text-primary-on-background-color);
  padding-left: calc(var(--limel-boolean-input-box-size) + var(--limel-boolean-input-gap-size));
}
.disabled:not([readonly]):not([readonly=true]) label.boolean-input-label {
  cursor: not-allowed;
  color: var(--limel-theme-text-disabled-color);
}
.required label.boolean-input-label:after {
  margin-left: 0.0625rem;
  content: "*";
}
.invalid:not(.readonly) label.boolean-input-label {
  color: var(--limel-theme-error-text-color);
}
:host(limel-checkbox.hide-label) label.boolean-input-label, .hide-label label.boolean-input-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  width: var(--limel-boolean-input-box-size);
}

.box {
  position: absolute;
  pointer-events: none;
  transition: border-color 0.4s ease 0.2s, background-color 0.2s ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease;
  display: inline-block;
  vertical-align: middle;
  width: var(--limel-boolean-input-box-size);
  height: var(--limel-boolean-input-box-size);
  margin-right: var(--limel-boolean-input-gap-size);
  border-radius: var(--limel-boolean-input-box-border-radius);
  border: 0.125rem solid;
  border-color: var(--checkbox-unchecked-border-color, rgb(var(--contrast-900)));
  background-color: var(--limel-checkbox-background-color, rgb(var(--contrast-300)));
  /*
   * NOTE: Original selectors using `:has()` are commented out due to Safari
   * rendering bugs where descendant transitions (e.g. SVG stroke animations)
   * or box/background updates sometimes fail to animate or even repaint
   * reliably when the state change is detected only via `:has()`.
   *
   * Original (kept for future re-implementation, or cleanup):
   * .boolean-input:has(input[type='checkbox']:checked) &,
   * .boolean-input:has(input[type='radio']:checked) & {
   *   ...
   * }
   *
   * Replacement uses adjacency: the markup places the `<input>` immediately
   * before .box, so we can select the checked state with
   * input:checked + .box. We retain the explicit `.checked` class pathway in
   * case some templates toggle that class manually.
   *
   * Using the `:has()` selector is more reliable, because it doesn't
   * depend on the DOM structure (e.g. if the markup changes and the input is
   * no longer adjacent to the box), but Safari support for `:has()` is still
   * somewhat inconsistent.
   */
}
.checked .box, .boolean-input > input[type=checkbox]:checked + .box, .boolean-input > input[type=radio]:checked + .box {
  background-color: var(--lime-primary-color, var(--limel-theme-primary-color));
  border-color: var(--lime-primary-color, var(--limel-theme-primary-color));
}
.disabled .box {
  opacity: 0.4;
}
.box {
  /*
   * See previous comment about Safari rendering bugs ☝️.
   *
   * Original (kept for for future re-implementation, or cleanup):
   * .boolean-input:not(.disabled):has(label.boolean-input-label:hover) & { ... }
   * .boolean-input:not(.disabled):has(label.boolean-input-label:active) & { ... }
   */
}
.boolean-input:not(.disabled):hover .box {
  will-change: box-shadow;
  box-shadow: var(--button-shadow-hovered);
}
.boolean-input:not(.disabled):active .box {
  will-change: box-shadow;
  box-shadow: var(--button-shadow-pressed);
}
.box:before {
  transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
  content: "";
  position: absolute;
  inset: -0.1875rem;
  border-radius: inherit;
  /*
   * See previous comment about Safari rendering bugs ☝️.
   *
   * Original (kept for for future re-implementation, or cleanup):
   * .boolean-input:has(input[type='checkbox']:focus-visible) &,
   * .boolean-input:has(input[type='radio']:focus-visible) & { ...}
   */
}
.boolean-input > input[type=checkbox]:focus-visible + .box:before, .boolean-input > input[type=radio]:focus-visible + .box:before {
  will-change: box-shadow;
  box-shadow: var(--shadow-depth-8-focused);
}
.box:after {
  transition: opacity 0.2s ease, width 0.4s ease, box-shadow 0.6s cubic-bezier(0.68, -0.55, 0, 1.87), transform 0.6s cubic-bezier(0.68, -0.55, 0, 1.87);
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 1rem;
  opacity: 0;
  background-color: rgb(var(--color-white));
  /* Hover fallback for pseudo-element (see explanation above). */
}
.boolean-input:not(.disabled):hover .box:after {
  will-change: opacity, box-shadow, transform, width;
}

:host(limel-checkbox) {
  min-height: var(--limel-checkbox-min-height, 2.5rem);
}

.box:after {
  height: 0.125rem;
  width: 0.25rem;
}
.indeterminate .box:after {
  opacity: 1;
  width: calc(var(--limel-boolean-input-box-size) - 0.5rem);
}

.checkbox {
  --limel-boolean-input-box-border-radius: 0.25rem;
}
.checkbox svg.check-mark {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform: translate3d(-0.125rem, -0.125rem, 0);
  width: var(--limel-boolean-input-box-size);
  height: var(--limel-boolean-input-box-size);
  padding: 0.25rem;
  color: rgb(var(--color-white));
  opacity: 0;
  stroke-width: 0.1875rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checkbox svg.check-mark path {
  stroke-dashoffset: 29.7833;
  stroke-dasharray: 29.7833;
  transition: stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);
}
.checkbox {
  /*
   * Safari (macOS & iOS, tested on Safari 26) & probably even earlier versions have
   * a rendering bug where transitions on descendants whose end state is triggered
   * ONLY via a parent selector using `:has()` may not animate. Instead, Safari
   * sometimes jumps directly to the final state (or never paints the transition)
   * until a subsequent layout invalidation (e.g. tab switch, resize) happens.
   *
   * Workaround: provide an equivalent selector that does NOT rely on `:has()`,
   * using the adjacency between the input and the visual box. This ensures the
   * `stroke-dashoffset` transition for the check mark runs reliably in Safari
   * while keeping the simpler `:has()` version commented for future re-implementation
   * or cleanup.
   *
   * &:not(.indeterminate):has(input[type='checkbox']:checked) {
   *     svg.check-mark {
   *         opacity: 1;
   *         path {
   *             stroke-dashoffset: 0;
   *         }
   *     }
   * }
   * Using the `:has()` selector is more reliable, because it doesn't
   * depend on the DOM structure (e.g. if the markup changes and the input is
   * no longer adjacent to the box), but Safari support for `:has()` is still
   * somewhat inconsistent.
   */
}
.checkbox:not(.indeterminate) > input[type=checkbox]:checked + .box svg.check-mark {
  opacity: 1;
}
.checkbox:not(.indeterminate) > input[type=checkbox]:checked + .box svg.check-mark path {
  stroke-dashoffset: 0;
}

limel-dynamic-label {
  margin-top: 0.375rem;
  margin-left: -0.25rem;
}

:host(limel-checkbox:focus),
:host(limel-checkbox:focus-visible),
:host(limel-checkbox:focus-within) {
  --limel-h-l-grid-template-rows-transition-speed: 0.46s;
  --limel-h-l-grid-template-rows: 1fr;
}

:host(limel-checkbox) {
  --limel-h-l-grid-template-rows-transition-speed: 0.3s;
  --limel-h-l-grid-template-rows: 0fr;
}

:host(limel-checkbox:focus) limel-helper-line,
:host(limel-checkbox:focus-visible) limel-helper-line,
:host(limel-checkbox:focus-within) limel-helper-line,
:host(limel-checkbox:hover) limel-helper-line {
  will-change: grid-template-rows;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

limel-list-item {
  min-height: 2.5rem;
}
limel-list-item:focus {
  outline: none;
}
limel-list-item:focus-visible {
  outline: none;
  box-shadow: var(--shadow-depth-8-focused);
}
limel-list-item {
  transition: background-color 0.6s ease;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background-color: rgb(var(--contrast-100));
}
limel-list-item:hover {
  z-index: 1;
  transition: background-color 0.2s ease;
  border-radius: 0.5rem;
}
limel-list-item:focus, limel-list-item:focus-visible, limel-list-item:active {
  z-index: 1;
  border-radius: 0.5rem;
}
limel-list-item:first-of-type {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
limel-list-item:last-of-type {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
limel-list-item:not([disabled]):not([disabled=true]) {
  cursor: pointer;
}
limel-list-item[disabled]:not([disabled=false]) {
  cursor: not-allowed;
}

limel-list-item[disabled]:not([disabled=false]) {
  cursor: not-allowed;
}
limel-list-item[disabled]:not([disabled=false]) .text,
limel-list-item[disabled]:not([disabled=false]) limel-icon,
limel-list-item[disabled]:not([disabled=false]) img,
limel-list-item[disabled]:not([disabled=false]) .boolean-input {
  opacity: 0.4;
}

limel-list-item:not([disabled]):not([disabled=true]):hover,
limel-list-item:not([disabled]):not([disabled=true]):focus-visible {
  background-color: rgb(var(--contrast-400));
}

limel-list-item[type=option]:before {
  transition: background-color 0.6s ease;
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  border-radius: 0.5rem;
}
limel-list-item[type=option][selected]:not([selected=false]):before {
  transition: background-color 0.2s ease;
  background-color: var(--limel-theme-primary-color);
}

limel-list-item .text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  color: var(--limel-theme-text-primary-on-background-color);
}
limel-list-item .label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--limel-theme-default-font-size);
  line-height: 1rem;
}
limel-list-item .description {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--maxLinesSecondaryText);
  line-height: 1rem;
  font-size: var(--limel-theme-default-small-font-size);
  opacity: 0.6;
}
limel-list-item limel-icon {
  color: var(--limel-theme-text-secondary-on-background-color);
  flex-shrink: 0;
  margin-left: -0.5rem;
}
limel-list-item limel-icon:has(+ img) {
  margin-left: 0;
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  padding: 0.1875rem;
  width: 1.25rem;
  background-color: rgb(var(--contrast-200), 0.8);
}
limel-list-item img {
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  box-shadow: 0 0 0 1px rgb(var(--contrast-800), 0.5);
}
limel-list-item limel-menu {
  margin-right: -0.5rem;
  order: var(--limel-list-item-menu-order, 3);
}

limel-list-item[role=menuitem] limel-list-item .label {
  font-size: var(--limel-theme-default-small-font-size);
}

.boolean-input,
limel-radio-button {
  width: var(--limel-boolean-input-box-size) !important;
  margin-left: -0.25rem !important;
}

.boolean-input.checkbox {
  margin-right: 0.25rem;
}
limel-list-item:has(limel-icon) .boolean-input, limel-list-item:has(img) .boolean-input {
  margin-right: -0.25rem;
  margin-left: 0;
  order: 2;
}
.boolean-input .boolean-input-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  width: var(--limel-boolean-input-box-size);
}