/* This is the DCR default style. User variables and overrides are to be set in a separate .css flie. Defaults are in flow-variables.css */
@font-face {
    font-family: 'PublicSans Variable';
    src: url('../fonts/PublicSans-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Ilisarniq';
    src: url('../fonts/Ilisarniq/WEB/Ilisarniq-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Ilisarniq';
    src: url('../fonts/Ilisarniq/WEB/Ilisarniq-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Ilisarniq';
    src: url('../fonts/Ilisarniq/WEB/Ilisarniq-Demi.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}


@font-face {
    font-family: 'Ilisarniq';
    src: url('../fonts/Ilisarniq/WEB/Ilisarniq-Bold.woff2') format('woff2'), ;
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Ilisarniq';
    src: url('../fonts/Ilisarniq/WEB/Ilisarniq-Black.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

/*Needed Vars*/
:root {
    --dark-mode: 1;
    --accent-delta: 2;
    --accent-lightness-clamped: clamp(40%, var(--accent-lightness), 70%);
    --footer-background-color: #0f142e;
    --footer-rump-color: #dce9fc0f;
    --accent-text: white;
    color-scheme: light dark;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    --animation-duration: 0.3s;
}

:root[data-theme="light"],
:root[data-theme="system-light"] {
    color-scheme: light;
    --flow-sky: #f5f7fa;
    --flow-clouds: #d4dde254;
    --flow-footer: #0f142e;
}

:root[data-theme="dark"],
:root[data-theme="system-dark"] {
    color-scheme: dark;
    --flow-sky: #1a1a1a;
    --flow-clouds: #d4dde254;
    --flow-footer: #141414;
    --dark-mode: -1;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --animation-duration: 0s;
    }
}

/*Global element styles*/
body {
    background: var(--flow-sky);
    overscroll-behavior: none;
    min-width: 360px;
    width: 100%;
    height: 100dvh;
}

main {
    display: flex;
    justify-content: center;
    overscroll-behavior: contain;
    transition: width var(--animation-duration) ease-in-out;
}

@media (max-width: 1360px),
(orientation: portrait) {
    main {
        width: 95% !important;
        margin: auto;
        align-self: center;
        max-width: 100%;
    }
}

main.center {
    align-items: center;
}

main.scrollable {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 50px;
    padding-top: 65px;
    min-height: 80%;
    width: 75%;
    margin: auto;
    gap: 1rem;
}

* {
    accent-color: var(--accent-fill-rest);
    font-weight: inherit;
}

*:not([disabled]):focus-visible,
.option:not([disabled]):focus-visible,
*:focus-visible>.dcr-panel {
    outline: calc(var(--focus-stroke-width) * 1px) solid var(--focus-stroke-outer);
    outline-offset: calc(var(--focus-stroke-width) * -1px);
}

*[disabled] {
    cursor: unset !important;
    opacity: var(--disabled-opacity);
    filter: brightness(90%);
}

*[invisible] {
    pointer-events: none;
    visibility: hidden;
}

input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible {
    outline-offset: calc(var(--focus-stroke-width) * 1px) !important;
}

iframe:focus-visible {
    outline: 0 !important;
}

a {
    text-decoration: auto !important;
}

label {
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
}

small,
.small {
    font-size: 0.8em;
}

input,
button,
select,
optgroup,
textarea,
a {
    font-weight: inherit;
}

h6,
h5,
h4,
h3,
h2,
h1 {
    font-weight: bolder;
}

.unset {
    /*Fake display content because actual display content makes the element untabable*/
    all: unset;
    width: 100%;
    height: 100%;
}

/*Fluent cloned inputs*/
/*This is some css dark magic. Fluent uses a number of wrapper elements to do these. But this can do it in native html + css*/
/*Radio*/
input[type="radio"] {
    --input-size: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2) + var(--design-unit));
    position: relative;
    width: calc(var(--input-size) * 1px);
    height: calc(var(--input-size) * 1px);
    box-sizing: border-box;
    border-radius: 50%;
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-strong-rest);
    background: var(--neutral-fill-input-alt-rest);
    cursor: pointer;
    appearance: none;
    margin-right: calc(var(--design-unit) * 2px + 2px);
    vertical-align: middle;
}

input[type="radio"]:hover {
    background: var(--neutral-fill-input-alt-hover);
    border-color: var(--neutral-stroke-strong-hover);
}

input[type="radio"]:active {
    background: var(--neutral-fill-input-alt-active);
    border-color: var(--neutral-stroke-strong-active);
}

input[type="radio"]:active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--foreground-on-accent-rest);
    clip-path: circle(4px at center);
}

input[type="radio"]:checked {
    background-color: var(--accent-fill-rest);
    border-color: transparent;
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--foreground-on-accent-rest);
    clip-path: circle(4px at center);
}

input[type="radio"]:not([disabled]):checked:hover {
    background: var(--accent-fill-hover);
    border-color: transparent;
}

input[type="radio"]:not([disabled]):checked:active {
    background: var(--accent-fill-active);
    border-color: transparent;
}

/*Checkbox*/
input[type="checkbox"] {
    --input-size: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2) + var(--design-unit));
    position: relative;
    width: calc(var(--input-size) * 1px);
    height: calc(var(--input-size) * 1px);
    box-sizing: border-box;
    border-radius: calc(var(--control-corner-radius) * 1px);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-strong-rest);
    background: var(--neutral-fill-input-alt-rest);
    cursor: pointer;
    appearance: none;
    margin-right: calc(var(--design-unit) * 2px + 2px);
    vertical-align: bottom;
}

input[type="checkbox"]:hover {
    background: var(--neutral-fill-input-alt-hover);
    border-color: var(--neutral-stroke-strong-hover);
}

input[type="checkbox"]:active {
    background: var(--neutral-fill-input-alt-active);
    border-color: var(--neutral-stroke-strong-active);
}

input[type="checkbox"]:checked {
    background-color: var(--accent-fill-rest);
    border-color: transparent;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 100%;
    height: 100%;
    background-color: var(--foreground-on-accent-rest);
    clip-path: path("M13.86 3.66a.5.5 0 0 1-.02.7l-7.93 7.48a.6.6 0 0 1-.84-.02L2.4 9.1a.5.5 0 0 1 .72-.7l2.4 2.44 7.65-7.2a.5.5 0 0 1 .7.02z");
}

input[type="checkbox"]:not([disabled]):checked:hover {
    background: var(--accent-fill-hover);
    border-color: transparent;
}

input[type="checkbox"]:not([disabled]):checked:active {
    background: var(--accent-fill-hover);
    border-color: transparent;
}

/*Text field*/
/*Rte*/
.ql-editor {
    max-height: 80dvh;
    overflow: auto;
    border: none !important;
    padding: 0 !important;
    min-height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 2) * 0.75px);
}

.ql-editor.ql-blank::before {
    color: var(--input-placeholder-rest);
    left: unset;
    right: unset;
    font-style: unset;
    line-height: var(--type-ramp-base-line-height);
    font-weight: 400;
    font-family: var(--body-font);
}

.ql-toolbar {
    border: 1px solid var(--neutral-fill-input-alt-hover) !important;
    font-family: inherit;
    background: var(--neutral-fill-layer-alt-rest);
    border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0 0;
}

.ql-container {
    font-family: inherit !important;
    font-size: inherit !important;
    padding: calc(var(--design-unit) * 1.5px) calc(var(--design-unit) * 2px + 1px);
    border: calc(var(--stroke-width) * 1px) solid transparent !important;
    background: padding-box linear-gradient(transparent calc(100% - 1px), var(--accent-fill-rest) calc(100% - 1px)), border-box linear-gradient(transparent calc(100% - 2px), var(--accent-fill-rest) calc(100% - 2px)), padding-box linear-gradient(var(--neutral-fill-input-rest), var(--neutral-fill-input-rest)), border-box var(--neutral-stroke-input-rest);
    color: var(--neutral-foreground-rest);
    background-repeat: no-repeat !important;
    transition: background-size var(--animation-duration) cubic-bezier(0.1, 0.9, 0.2, 1);
    background-size: 0% 100%, 0% 100%, 100% 100%, 100% 100%;
    background-position: center;
}

.ql-snow .ql-picker-options,
.ql-snow .ql-tooltip {
    border-radius: calc(var(--control-corner-radius) * 1px) !important;
    border: 1px solid var(--neutral-fill-input-alt-hover) !important;
    background: var(--neutral-fill-layer-alt-rest);
    box-shadow: var(--elevation-shadow-flyout) !important;
    color: var(--neutral-foreground-rest);
}

.ql-snow .ql-tooltip {
    transform: translate(145px, 10px) !important;
}

.ql-snow .ql-tooltip input {
    border: none !important;
}

/* Collapse the toolbar until the editor is focused, sliding it down on focus */
.rich-text-editor-wrapper .ql-toolbar {
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    transition: padding var(--animation-duration) ease, border var(--animation-duration) ease, max-height var(--animation-duration) ease, opacity var(--animation-duration) ease;
}

.rich-text-editor-wrapper .ql-container {
    border-radius: calc(var(--control-corner-radius) * 1px);
    transition: border-radius var(--animation-duration) ease;
}

.rich-text-editor-wrapper:focus-within .ql-toolbar {
    max-height: 150px;
    overflow: visible;
    opacity: 1;
    padding-top: 3px;
    padding-bottom: 3px;
    border-top-width: 1px !important;
}

.rich-text-editor-wrapper:focus-within .ql-container {
    border-radius: 0 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px);
}

input:not([type="radio"]):not([type="checkbox"]),
textarea {
    padding: 0 calc(var(--design-unit) * 2px + 1px);
    border-radius: calc(var(--control-corner-radius) * 1px);
    border: calc(var(--stroke-width) * 1px) solid transparent;
    background: padding-box linear-gradient(transparent calc(100% - 1px), var(--accent-fill-rest) calc(100% - 1px)), border-box linear-gradient(transparent calc(100% - 2px), var(--accent-fill-rest) calc(100% - 2px)), padding-box linear-gradient(var(--neutral-fill-input-rest), var(--neutral-fill-input-rest)), border-box var(--neutral-stroke-input-rest);
    height: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 100%;
    color: var(--neutral-foreground-rest);
    background-repeat: no-repeat !important;
    transition: background-size var(--animation-duration) cubic-bezier(0.1, 0.9, 0.2, 1);
    background-size: 0% 100%, 0% 100%, 100% 100%, 100% 100%;
    background-position: center;
}

input:not([type="radio"]):not([type="checkbox"])[disabled],
textarea[disabled] {
    background: padding-box linear-gradient(var(--neutral-fill-input-rest), var(--neutral-fill-input-rest)), border-box var(--neutral-stroke-rest) !important;
    background-size: 100% 100% !important;
    opacity: var(--disabled-opacity);
    cursor: default;
    pointer-events: none;
}

.ql-container.ql-disabled {
    background: padding-box linear-gradient(var(--neutral-fill-input-rest), var(--neutral-fill-input-rest)), border-box var(--neutral-stroke-rest) !important;
    background-size: 100% 100% !important;
    border: 1px solid #ced4da !important;
    cursor: default;
}

.ql-container.ql-disabled .ql-editor {
    color: #6c757d;
}

input:not([type="radio"]):not([type="checkbox"]):not([disabled]):not(:focus-within):hover,
textarea:not([disabled]):not(:focus-within):hover,
.ql-container:not(.ql-disabled):hover {
    background: padding-box linear-gradient(transparent calc(100% - 1px), var(--accent-fill-rest) calc(100% - 1px)), border-box linear-gradient(transparent calc(100% - 2px), var(--accent-fill-rest) calc(100% - 2px)), padding-box linear-gradient(var(--neutral-fill-input-hover), var(--neutral-fill-input-hover)), border-box var(--neutral-stroke-input-hover);
    background-size: 0% 100%, 0% 100%, 100% 100%, 100% 100%;
    background-position: center;
}

input:not([type="radio"]):not([type="checkbox"]):not([disabled]):focus,
textarea:not([disabled]):focus,
.ql-container:not(.ql-disabled):focus-within {
    background: padding-box linear-gradient(transparent calc(100% - 1px), var(--accent-fill-rest) calc(100% - 1px)), border-box linear-gradient(transparent calc(100% - 2px), var(--accent-fill-rest) calc(100% - 2px)), padding-box linear-gradient(var(--neutral-fill-input-focus), var(--neutral-fill-input-focus)), border-box var(--neutral-stroke-input-hover);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: center;
}

input:not([type="radio"]):not([type="checkbox"]):not([disabled]):focus-visible,
textarea:not([disabled]):focus-visible,
.ql-container.ql-snow:focus-visible,
.ql-editor:focus-visible {
    outline: 0;
}

textarea {
    height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 2) * 1px);
    padding: calc(var(--design-unit) * 1.5px) calc(var(--design-unit) * 2px + 1px);
}

.intl-tel-input input:not([type="radio"]):not([type="checkbox"]) {
    padding-right: 6px;
    padding-left: 52px;
}



/*Select*/
select,
.select-wrap {
    background: padding-box linear-gradient(var(--neutral-fill-rest), var(--neutral-fill-rest)), border-box var(--neutral-stroke-control-rest), var(--neutral-layer-floating);
    color: var(--neutral-foreground-rest);
    border: calc(var(--stroke-width) * 1px) solid transparent;
    border-radius: calc(var(--control-corner-radius) * 1px);
    height: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    padding: 0 calc(var(--design-unit) * 2.25px);
    width: 100%;
}

select:not([disabled]):not([open]):hover,
.select-wrap:not([disabled]):not([open]):hover {
    /* Weird, undocumented bug :|*/
    /* select tries to figure out the dropdown color, but when it's a gradient it returns what I assume to be the preffered color scheme color */
    /* and doesn't respect the color-scheme override property */
    /* so add a third background color at the end (order matters) to that which you want to be the background of the dropdown
        /* Oh, and if you set the hovering color you must set it there not on the */
    background: padding-box linear-gradient(var(--neutral-fill-hover), var(--neutral-fill-hover)), border-box var(--neutral-stroke-control-hover), var(--neutral-layer-floating);
}


/*Button*/
.button {
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    display: inline-flex;
    position: relative;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding: 0 calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px);
    white-space: nowrap;
    outline: none;
    text-decoration: none;
    max-width: 16rem;
    min-width: max-content;
    width: min(100%, 8rem);
    min-height: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
    border: calc(var(--stroke-width) * 1px) solid transparent;
    border-radius: calc(var(--control-corner-radius) * 1px);
    color: var(--neutral-foreground-rest);
    background: padding-box linear-gradient(var(--neutral-fill-rest), var(--neutral-fill-rest)), border-box var(--neutral-stroke-control-rest);
    fill: currentcolor;
}

.button:not([disabled]):hover {
    color: var(--neutral-foreground-rest);
    background: padding-box linear-gradient(var(--neutral-fill-hover), var(--neutral-fill-hover)), border-box var(--neutral-stroke-control-hover);
}

.button:not([disabled]):active {
    color: var(--neutral-foreground-rest);
    background: padding-box linear-gradient(var(--neutral-fill-active), var(--neutral-fill-active)), border-box var(--neutral-stroke-control-active);
}

.button[loading],
.button[loading]:hover,
.button[loading]:active {
    opacity: var(--disabled-opacity);
    pointer-events: none;
}

/* Fluent-style spinner ::after text */
/* Opacity affects pseudo elements unfortunately*/
/* So you cannot have dimmed button with undimmed spinner overlaid on top*/
.button[loading]::after {
    --angle: 10deg;
    content: "";
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid currentColor;
    mask-image: conic-gradient(white var(--angle), transparent 0);
    animation: dash 2s linear infinite;
    margin-left: 1em;
}

.button[small],
.button.small {
    font-size: var(--type-ramp-minus-1-font-size);
    min-height: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 0.65 * 1px);
}

.button[round],
.button.round {
    aspect-ratio: 1;
    min-height: unset;
    border-radius: 50%;
}

@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 10deg;
}

/* arc length animation */
@keyframes dash {
    0% {
        --angle: 10deg;
        transform: rotate(0deg);
    }

    50% {
        --angle: 200deg;
        transform: rotate(450deg);
    }

    100% {
        --angle: 10deg;
        transform: rotate(1080deg);
    }
}

.button.accent {
    background: padding-box linear-gradient(var(--accent-fill-rest), var(--accent-fill-rest)), border-box var(--accent-stroke-control-rest);
    color: var(--foreground-on-accent-rest);
}

.button.accent:not([disabled]):hover {
    background: padding-box linear-gradient(var(--accent-fill-hover), var(--accent-fill-hover)), border-box var(--accent-stroke-control-hover);
    color: var(--foreground-on-accent-hover);
}

.button.accent:not([disabled]):active {
    background: padding-box linear-gradient(var(--accent-fill-active), var(--accent-fill-active)), border-box var(--accent-stroke-control-active);
    color: var(--foreground-on-accent-active);
}

.button.success {
    background: var(--success);
    color: var(--foreground-on-accent-rest);
}

.button.success:not([disabled]):hover {
    opacity: 0.85;
    background: var(--success);
    color: var(--foreground-on-accent-hover);
}

.button.success:not([disabled]):active {
    opacity: 0.95;
    background: var(--success);
    color: var(--foreground-on-accent-active);
}

.button.danger {
    background: var(--error);
    color: var(--foreground-on-accent-rest);
}

.button.danger:not([disabled]):hover {
    opacity: 0.85;
    background: var(--error);
    color: var(--foreground-on-accent-hover);
}

.button.danger:not([disabled]):active {
    opacity: 0.95;
    background: var(--error);
    color: var(--foreground-on-accent-active);
}

.button.lightweight {
    background: var(--neutral-fill-stealth-rest);
    color: var(--accent-foreground-rest);
}

.button.lightweight:not([disabled]):hover {
    background: var(--neutral-fill-stealth-hover);
    color: var(--accent-foreground-hover);
}

.button.lightweight:not([disabled]):active {
    background: var(--neutral-fill-stealth-active);
    color: var(--accent-foreground-active);
}

.button.stealth {
    background: var(--neutral-fill-stealth-rest);
    color: var(--neutral-foreground-rest);
}

.button.stealth:not([disabled]):hover {
    background: var(--neutral-fill-stealth-hover);
}

.button.stealth:not([disabled]):active {
    background: var(--neutral-fill-stealth-active);
}

/*Option*/
.option,
option {
    display: flex;
    position: relative;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    background: var(--neutral-fill-stealth-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    border: calc(var(--stroke-width) * 1px) solid transparent;
    box-sizing: border-box;
    color: var(--neutral-foreground-rest);
    cursor: pointer;
    fill: currentcolor;
    height: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
    overflow: hidden;
    align-items: center;
    padding: 0 calc(((var(--design-unit) * 3) - var(--stroke-width) - 1) * 1px);
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.option:not([disabled]):hover,
option:not([disabled]):hover {
    background: var(--neutral-fill-stealth-hover);
}

.option:not([disabled]):focus-visible {
    z-index: 2;
}

.option::before,
option::before {
    content: "";
    display: block;
    position: absolute;
    left: calc((var(--focus-stroke-width) - var(--stroke-width)) * 1px);
    top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 4) - var(--focus-stroke-width) * 1px);
    width: 3px;
    height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2) * 1px);
    background: transparent;
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.option:not([disabled]).active::before,
option:not([disabled]).active::before {
    background: var(--accent-fill-rest);
    height: calc((((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2) - 6) * 1px);
}

.option.selected {
    background: var(--neutral-fill-secondary-rest);
}

.option.selected::before {
    background: var(--accent-fill-rest);
}

.option:not([disabled]).selected:hover {
    background: var(--neutral-fill-secondary-hover);
}

.option:not([disabled]):active::before {
    background: var(--accent-fill-rest);
    height: calc((((var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2) - 6) * 1px);
}

.option-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*Card*/
.card {
    height: 100%;
    width: 100%;
    display: flex;
    contain: content;
    box-sizing: border-box;
    background: var(--fill-color);
    color: var(--neutral-foreground-rest);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-layer-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-card-rest);
}

/*Spinner*/
.spinner {
    --angle: 10deg;
    content: "";
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--accent-fill-rest);
    mask-image: conic-gradient(white var(--angle), transparent 0);
    animation: dash 2s linear infinite;
    max-width: 2rem;
}

/*Tabs*/
.tab-indicator {
    position: absolute;
    bottom: 1px;
    width: 20px;
    height: 3px;
    background-color: var(--accent-fill-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    transition: transform var(--animation-duration) ease-in-out;
}

.tabs-container {
    display: flex;
    overflow: auto;
    scrollbar-width: thin;
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.tabs-container>.button {
    background: 0;
}

.tab-content {
    position: relative
}

.duration-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

/*Helper classes*/

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-shadow {
    text-shadow: 1px 1px 2px #00000080;
}

.text-primary {
    color: var(--accent-fill-rest) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-error,
.text-danger {
    color: var(--error) !important;
}

.text-muted {
    color: var(--input-placeholder-rest) !important;
}

.text-foreground {
    color: var(--foreground-on-accent-rest) !important;
}

.border-primary {
    border-color: var(--accent-fill-rest);
}

.border-success {
    border-color: var(--success);
}

.border-warning {
    border-color: var(--warning);
}

.border-error,
.border-danger {
    border-color: var(--error);
}

.border-muted {
    border-color: var(--neutral-stroke-layer-rest)
}

.border-none {
    border: 0;
}

.bg-primary {
    background: var(--accent-fill-rest);
}

.bg-secondary {
    background: var(--secondary);
}

.bg-neutral {
    background: var(--fill-color);
}

.bg-success {
    background: var(--success);
}

.bg-warning {
    background: var(--warning);
}

.bg-error,
.bg-danger {
    background: var(--error);
}

.bg-none {
    background: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-auto {
    overflow: auto;
}

.overflow-visible {
    overflow: visible;
}

.overflow-hidden {
    overflow: hidden;
}

.d-grid {
    display: grid;
}

/* Column span classes */
.span-1 {
    grid-column: span 1 / span 1;
}

.span-2 {
    grid-column: span 2 / span 2;
}

.span-3 {
    grid-column: span 3 / span 3;
}

.span-4 {
    grid-column: span 4 / span 4;
}

.span-5 {
    grid-column: span 5 / span 5;
}

.span-6 {
    grid-column: span 6 / span 6;
}

.span-7 {
    grid-column: span 7 / span 7;
}

.span-8 {
    grid-column: span 8 / span 8;
}

.span-9 {
    grid-column: span 9 / span 9;
}

.span-10 {
    grid-column: span 10 / span 10;
}

.span-11 {
    grid-column: span 11 / span 11;
}

.span-12 {
    grid-column: span 12 / span 12;
}

/* Start column at a specific line */
.col-1 {
    grid-column-start: 1;
}

.col-2 {
    grid-column-start: 2;
}

.col-3 {
    grid-column-start: 3;
}

.col-4 {
    grid-column-start: 4;
}

.col-5 {
    grid-column-start: 5;
}

.col-6 {
    grid-column-start: 6;
}

.col-7 {
    grid-column-start: 7;
}

.col-8 {
    grid-column-start: 8;
}

.col-9 {
    grid-column-start: 9;
}

.col-10 {
    grid-column-start: 10;
}

.col-11 {
    grid-column-start: 11;
}

.col-12 {
    grid-column-start: 12;
}

.d-contents {
    display: contents;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.flex-auto {
    flex: 0 0 auto;
}

.flex-grow-0 {
    flex-grow: 0;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-shrink-1 {
    flex-shrink: 1;
}

.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-column {
    flex-direction: column;
}

.flex-column-reverse {
    flex-direction: column-reverse;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-ellipsis {
    overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

.text-start {
    text-align: start;
}

.text-end {
    text-align: end;
}

.text-center {
    text-align: center;
}

.align-self-start {
    align-self: start;
}

.align-self-center {
    align-self: center;
}

.align-self-end {
    align-self: end;
}

.align-self-baseline {
    align-self: baseline;
}

.align-self-stretch {
    align-self: stretch;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-baseline {
    align-items: baseline;
}

.align-items-stretch {
    align-items: stretch;
}

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-evenly {
    justify-content: space-evenly;
}

.gap-0 {
    gap: 0;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-100 {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-25 {
    height: 25%;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-100 {
    height: 100%;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-3 {
    padding-top: 1rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.ps-0 {
    padding-left: 0;
}

.ps-1 {
    padding-left: 0.25rem;
}

.ps-2 {
    padding-left: 0.5rem;
}

.ps-3 {
    padding-left: 1rem;
}

.ps-4 {
    padding-left: 1.5rem;
}

.ps-5 {
    padding-left: 3rem;
}

.pe-0 {
    padding-right: 0;
}

.pe-1 {
    padding-right: 0.25rem;
}

.pe-2 {
    padding-right: 0.5rem;
}

.pe-3 {
    padding-right: 1rem;
}

.pe-4 {
    padding-right: 1.5rem;
}

.pe-5 {
    padding-right: 3rem;
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.m-auto {
    margin: auto;
}

.m-0 {
    margin: 0;
}

.rounded-1 {
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.rounded-2 {
    border-radius: calc(var(--layer-corner-radius) * 1px);
}

.flat-left {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.flat-right {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.flat-top {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.flat-bottom {
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/*Icon Sizes*/
.icon-xs {
    font-size: var(--type-ramp-minus-2-font-size);
}

.icon-s {
    font-size: var(--type-ramp-minus-1-font-size);
}

.icon-m {
    font-size: var(--type-ramp-base-font-size);
}

.icon-l {
    font-size: var(--type-ramp-plus-1-font-size);
}

.icon-xl {
    font-size: var(--type-ramp-plus-2-font-size);
}

.icon-xxl {
    font-size: var(--type-ramp-plus-4-font-size);
}

.div-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-hover tbody tr.selected {
    background-color: rgba(0, 0, 0, 0.14);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.table {
    width: 100%;
    margin: 0;
}

.table>*>*>* {
    padding: .5rem .5rem;
}

/* ToDo: Check if used anywhere */
/* Components with colors outside palette */
.dcr-text-clouds {
    color: var(--flow-clouds) !important;
}

.dcr-text-bg-monochrome-light {
    color: var(--input-placeholder-rest);
    background-color: var(--neutral-fill-input-rest);
    font-weight: bolder;
}

.dcr-text-bg-monochrome-lighter {
    color: #495057;
    background-color: #dee2e6;
    font-weight: bolder;
}

.btn.dcr-text-bg-monochrome-medium,
.dcr-text-bg-monochrome-medium {
    color: #495057;
    background-color: #adb5bd;
    font-weight: bolder;
}

.dcr-text-bg-primary,
tr.dcr-select-row.active,
tr.dcr-select-row.active:hover {
    color: var(--foreground-on-accent-rest);
    background-color: var(--accent-fill-rest);
}

.dcr-text-bg-secondary,
tr.dcr-select-row:hover {
    color: var(--foreground-on-accent-rest);
    background-color: var(--secondary);
}

.dcr-text-bg-success {
    color: var(--foreground-on-accent-rest);
    background-color: var(--success);
}

.dcr-text-bg-warning {
    color: var(--foreground-on-accent-rest);
    background-color: var(--warning);
}

.dcr-text-bg-error {
    color: var(--foreground-on-accent-rest);
    background-color: var(--error);
}

.w-xxl {
    width: 60rem !important;
}

.w-xl {
    width: 57.5rem !important;
}

.w-lg {
    width: 48rem !important;
}

.w-md {
    width: 38.5rem !important;
}

.w-sm {
    width: 29rem !important;
}

.w-xs {
    width: 19rem !important;
}

/* Responsive layout */
.dcr-urgency-borders {
    border-width: thin;
    border-style: solid;
}

.dcr-urgency-borders.dcr-urgency-late {
    border-color: var(--error);
}

.dcr-urgency-borders.dcr-urgency-close {
    border-color: var(--accent-fill-rest);
}

.dcr-urgency-borders.dcr-urgency-deadline {
    border-color: var(--accent-fill-rest);
}

.dcr-urgency-borders.dcr-urgency-pending {
    border-color: var(--accent-fill-rest);
}

.dcr-urgency-borders.dcr-urgency-nonpending {
    border-color: var(--success);
}

.dcr-urgency-text.dcr-urgency-late {
    color: var(--error);
}

.dcr-urgency-text.dcr-urgency-close {
    font-weight: bolder;
    color: var(--warning);
}

.dcr-urgency-text.dcr-urgency-deadline {
    font-weight: bolder;
    color: var(--accent-fill-rest);
}

.dcr-urgency-text.dcr-urgency-pending {
    font-weight: bolder;
    color: var(--accent-fill-rest);
}

.dcr-urgency-text.dcr-urgency-nonpending {
    font-weight: bolder;
    color: var(--success);
}

.dcr-urgency-background {
    background-color: #dee2e6;
}

.dcr-urgency-background.dcr-urgency-late {
    background-color: var(--error);
    font-weight: bolder;
    color: var(--foreground-on-accent-rest);
}

.dcr-urgency-background.dcr-urgency-close {
    background-color: var(--warning);
    font-weight: bolder;
    color: var(--foreground-on-accent-rest);
}

.dcr-urgency-background.dcr-urgency-deadline {
    background-color: var(--accent-fill-rest);
    font-weight: bolder;
    color: var(--foreground-on-accent-rest);
}

.dcr-urgency-background.dcr-urgency-pending {
    background-color: var(--accent-fill-rest);
    font-weight: bolder;
    color: var(--foreground-on-accent-rest);
}

.dcr-urgency-background.dcr-urgency-nonpending {
    background-color: var(--success);
    font-weight: bolder;
    color: var(--foreground-on-accent-rest);
}

/* Standard panel: Slightly floating white-background rectangular container, row
 * layout, 80.0% width. */
/* ToDo: Consolidate, trim, optimize */
.dcr-panel-header {
    padding: calc(var(--design-unit) * 5px);
    border-top-left-radius: calc(var(--layer-corner-radius) * 1px - 1px);
    border-top-right-radius: calc(var(--layer-corner-radius) * 1px - 1px);
    transition: border-radius var(--animation-duration) ease-in-out;
}

.dcr-panel-header:empty {
    display: none;
}

.dcr-panel-header:only-child,
.dcr-panel-header.collapsed {
    border-radius: calc(var(--layer-corner-radius) * 1px);
}

.dcr-panel,
.dcr-role-delegation-input .dcr-user-input-edit,
.dcr-log {
    box-shadow: var(--elevation-shadow-card-rest);
    transition: box-shadow var(--animation-duration) ease-in-out;
    background-color: var(--fill-color);
    color: var(--neutral-foreground-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px + 1px);
    display: flex;
    flex-direction: column;
    width: 100%;
    border-width: calc(var(--stroke-width) * 1px);
}

.hoverable {
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    transform: scale(1);
    transform-origin: center;
}

.hoverable:hover {
    box-shadow: var(--elevation-shadow-flyout);
    transform: scale(1.002);
    z-index: 4;
}

.dcr-panel-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.dcr-panel-body.padded {
    padding: calc(var(--design-unit) * 5px);
}

.dcr-panel-body:empty {
    padding: calc(var(--design-unit) * 5px) 0 0 0;
}

.dcr-panel.dcr-interactive,
.dcr-role-delegation-input .dcr-interactive.dcr-user-input-edit,
.dcr-interactive.dcr-log {
    color: var(--accent-fill-rest);
}

.dcr-panel.dcr-panel-primary,
.dcr-role-delegation-input .dcr-panel-primary.dcr-user-input-edit,
.dcr-panel-primary.dcr-log {
    border-color: var(--accent-fill-rest);
    border-style: solid;
}

.dcr-panel.dcr-panel-primary>.dcr-panel-header,
.dcr-role-delegation-input .dcr-panel-primary.dcr-user-input-edit>.dcr-panel-header,
.dcr-panel-primary.dcr-log>.dcr-panel-header {
    box-shadow: inset 0px 0px 0px 2px var(--accent-fill-rest);
    background-color: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    padding-bottom: calc(var(--design-unit) * 5px);
}

.dcr-panel.dcr-panel-secondary,
.dcr-role-delegation-input .dcr-panel-secondary.dcr-user-input-edit,
.dcr-panel-secondary.dcr-log {
    border-color: var(--secondary);
    border-style: solid;
}

.dcr-panel.dcr-panel-secondary>.dcr-panel-header,
.dcr-role-delegation-input .dcr-panel-secondary.dcr-user-input-edit>.dcr-panel-header,
.dcr-panel-secondary.dcr-log>.dcr-panel-header {
    box-shadow: inset 0px 0px 0px 2px var(--secondary);
    background-color: var(--secondary);
    color: var(--foreground-on-accent-rest);
    padding-bottom: calc(var(--design-unit) * 5px);
}

.dcr-panel.dcr-panel-success,
.dcr-role-delegation-input .dcr-panel-success.dcr-user-input-edit,
.dcr-panel-success.dcr-log {
    border-color: var(--success);
    border-style: solid;
}

.dcr-panel.dcr-panel-success>.dcr-panel-header,
.dcr-role-delegation-input .dcr-panel-success.dcr-user-input-edit>.dcr-panel-header,
.dcr-panel-success.dcr-log>.dcr-panel-header {
    box-shadow: inset 0px 0px 0px 2px var(--success);
    background-color: var(--success);
    color: var(--foreground-on-accent-rest);
    padding-bottom: calc(var(--design-unit) * 5px);
}

.dcr-panel.dcr-panel-info,
.dcr-role-delegation-input .dcr-panel-info.dcr-user-input-edit,
.dcr-panel-info.dcr-log {
    border-color: var(--info);
    border-style: solid;
}

.dcr-panel.dcr-panel-info>.dcr-panel-header,
.dcr-role-delegation-input .dcr-panel-info.dcr-user-input-edit>.dcr-panel-header,
.dcr-panel-info.dcr-log>.dcr-panel-header {
    box-shadow: inset 0px 0px 0px 2px var(--info);
    background-color: var(--info);
    color: var(--foreground-on-accent-rest);
    padding-bottom: calc(var(--design-unit) * 5px);
}

.dcr-panel.dcr-panel-warning,
.dcr-role-delegation-input .dcr-panel-warning.dcr-user-input-edit,
.dcr-panel-warning.dcr-log {
    border-color: var(--warning);
    border-style: solid;
}

.dcr-panel.dcr-panel-warning>.dcr-panel-header,
.dcr-role-delegation-input .dcr-panel-warning.dcr-user-input-edit>.dcr-panel-header,
.dcr-panel-warning.dcr-log>.dcr-panel-header {
    box-shadow: inset 0px 0px 0px 2px var(--warning);
    background-color: var(--warning);
    color: var(--foreground-on-accent-rest);
    padding-bottom: calc(var(--design-unit) * 5px);
}

.dcr-panel.dcr-panel-danger,
.dcr-role-delegation-input .dcr-panel-danger.dcr-user-input-edit,
.dcr-panel-danger.dcr-log {
    border-color: var(--error);
    border-style: solid;
}

.dcr-panel.dcr-panel-danger>.dcr-panel-header,
.dcr-role-delegation-input .dcr-panel-danger.dcr-user-input-edit>.dcr-panel-header,
.dcr-panel-danger.dcr-log>.dcr-panel-header {
    box-shadow: inset 0px 0px 0px 2px var(--error);
    background-color: var(--error);
    color: var(--foreground-on-accent-rest);
    padding-bottom: calc(var(--design-unit) * 5px);
}

.dcr-panel .dcr-panel-header:only-child,
.dcr-role-delegation-input .dcr-user-input-edit .dcr-panel-header:only-child,
.dcr-log .dcr-panel-header:only-child {
    border-radius: calc(var(--layer-corner-radius) * 1px - 1px);
}

a.dcr-panel,
.dcr-role-delegation-input a.dcr-user-input-edit,
a.dcr-log {
    text-decoration: none;
}

a.dcr-panel :hover,
.dcr-role-delegation-input a.dcr-user-input-edit :hover,
a.dcr-log :hover {
    color: #212529;
}

/* Layout */
/* Standard component customization / bootstrap overrides */
/* ToDo: Check if used anywhere */

.alert {
    border-radius: calc(var(--layer-corner-radius) * 1px);
    max-width: 25rem;
}

.list-group,
.list-group.list-group-flush {
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.main>.alert {
    align-self: center;
    justify-self: center;
}

.input-group-text:first-child {
    border-radius: calc(var(--control-corner-radius) * 1px);
}

/* Bootstrap override*/

#dcr-circle-right {
    fill: var(--flow-clouds);
}

.dcr-circle-right {
    overflow: visible;
    margin: auto;
    height: 100%;
    /* left: 1265.3px */
    transform: matrix(1, 0, 0, 1, 0, 0);
}

.circle-container {
    height: 50%;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: -2;
}

/* ToolBar */
.navbar {
    top: 0;
    left: 0;
    pointer-events: none;
    position: absolute;
    z-index: 99;
}

@media (max-width: 1366px) {
    .navbar {
        position: fixed;
    }
}

.dcr-nav-item {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    border-width: 1px;
    border-style: solid;
    background-color: var(--fill-color);
    border-color: var(--accent-fill-rest);
    pointer-events: auto;
    text-decoration: none !important;
}

.dcr-nav-icon {
    width: 2.5rem;
    color: var(--accent-fill-rest);
}

.dcr-nav-icon i {
    border: none;
}

a.dcr-nav-icon {
    text-decoration-line: none;
}

.dcr-nav-box {
    min-width: 2.5rem;
    color: var(--accent-fill-rest);
    padding-right: 1rem;
    padding-left: 1rem;
}

.dcr-nav-box:hover {
    color: var(--accent-foreground-hover);
}

.dcr-nav-box img {
    height: 100%;
    width: auto;
}

.dcr-tenant-logo {
    height: 100%;
}

.dcr-tenant-logo-image {
    height: 100%;
    width: auto;
    object-fit: cover;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--flow-footer);
    display: flex;
    justify-content: center;
    z-index: 50;
}

.rump {
    width: 184px;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: calc(50% - 92px);
    transform: skew(-22.5deg);
    background-color: rgba(220, 233, 252, 0.059);
}

.dcr-logo {
    width: 184px;
    height: 100%;
    margin: auto;
    overflow: visible;
    fill: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dcr-letter {
    height: 25px;
    width: 12px;
}

.dcr-letter:nth-child(1) {
    margin-right: 2px;
}

.dcr-letter:nth-child(2) {
    margin-right: 3px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field:not(:first-child) {
    margin-top: 1.6rem;
}

.field *:not(:last-child) {
    margin-bottom: 0.26rem;
}

/* Phase styling */
.dcr-card-phase {
    min-width: 8rem;
    padding: 0.2rem 0.8rem;
    border-style: none;
    border-radius: 18pt;
}

.list-group-item {
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.list-group-item.dcr-panel:first-child,
.dcr-role-delegation-input .list-group-item.dcr-user-input-edit:first-child,
.list-group-item.dcr-log:first-child,
.list-group-item.dcr-panel:last-child,
.dcr-role-delegation-input .list-group-item.dcr-user-input-edit:last-child,
.list-group-item.dcr-log:last-child {
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.infobox {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border-radius: calc(var(--control-corner-radius) * 1px);
    background-color: #ced4da;
}

/* "Advanced" section animation */
.advanced a {
    color: #212529;
}

.advanced a:hover {
    color: var(--accent-fill-rest);
}

.advanced .bi {
    transition: var(--animation-duration) transform ease-in-out;
    position: relative;
    top: 0.8px;
    color: gray;
    transform: scale(0.66) rotate(-90deg);
}

.advanced .bi {
    color: var(--accent-fill-rest);
}

.advanced .collapsed .bi {
    transform: scale(0.66) rotate(0deg);
}

/* SOP specific layout */
.field.advanced {
    min-height: 5rem;
}

.dcr-register-link {
    color: black;
    text-decoration: underline;
}

.dcr-line {
    align-items: center;
    border-bottom: 0.8px solid #dadde1;
    display: flex;
    margin: 16px 12px;
    text-align: center;
}

/* Law text specific layout */
.dcr-law-to-text {
    width: 51rem;
}

/* HOME */
.dcr-nav-card {
    width: 12rem;
    height: 7rem;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    border-width: 1pt;
    border-color: var(--accent-fill-rest);
    background-color: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    margin: 3rem;
    transition: background-color var(--animation-duration) ease;
}

.dcr-nav-card>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--foreground-on-accent-rest);
    text-decoration: none;
    height: 6rem;
}

.dcr-nav-card>a>span {
    height: 4rem;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    font-size: 20pt;
}

.dcr-nav-card>a>h4,
.dcr-nav-card>a>.h4 {
    height: 1.6rem;
}

.dcr-nav-card:hover {
    background-color: var(--warning);
}

.dcr-tasklist {
    border-bottom-left-radius: calc(var(--layer-corner-radius) * 1px);
    border-bottom-right-radius: calc(var(--layer-corner-radius) * 1px);
}

.dcr-tasklist>*:last-child {
    border-bottom-left-radius: calc(var(--layer-corner-radius) * 1px);
    border-bottom-right-radius: calc(var(--layer-corner-radius) * 1px);
}

.dcr-tasklist .container-fluid,
.dcr-tasklist .container-sm,
.dcr-tasklist .container-md,
.dcr-tasklist .container-lg,
.dcr-tasklist .container-xl,
.dcr-tasklist .container-xxl {
    padding: 0;
    margin: 0;
}

.dcr-tasklist .status .success {
    color: var(--success);
}

.dcr-tasklist .status .deadline.missed {
    color: var(--error);
}

.dcr-tasklist .status .deadline {
    color: var(--accent-fill-rest);
}

.dcr-tasklist .status .info {
    color: gray;
}

.dcr-tasklist .deadline {
    color: var(--accent-fill-rest);
}

.dcr-tasklist .dcr-action {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding-right: 2rem;
}

.dcr-tasklist .dcr-action button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.dcr-tasklist .dcr-action .dcr-control-container {
    width: auto !important;
}

.dcr-tasklist .dcr-action button {
    min-width: 5rem;
    height: 2rem;
    border-radius: calc(var(--control-corner-radius) * 1px);
    font-size: small;
}

.dcr-tasklist>.container-fluid>.row,
.dcr-tasklist>.container-sm>.row,
.dcr-tasklist>.container-md>.row,
.dcr-tasklist>.container-lg>.row,
.dcr-tasklist>.container-xl>.row,
.dcr-tasklist>.container-xxl>.row {
    padding: 1.2rem 0rem;
}

.dcr-tasklist.inactive .row:nth-child(even) {
    background-color: #ced4da;
}

.dcr-tasklist.inactive .row:nth-child(odd) {
    background-color: #dee2e6;
}

.dcr-tasklist.inactive button {
    background-color: #adb5bd;
    border: none;
}

.row {
    min-height: 5rem;
    padding-right: 0;
    padding-left: 0;
}

.dcr-tasklist {
    min-height: 5rem;
}

.dcr-tasklist .dcr-row-style-a {
    min-height: 5rem;
    background-color: var(--fill-color);
}

.dcr-tasklist .dcr-row-style-b {
    min-height: 5rem;
    background-color: var(--neutral-fill-layer-alt-rest);
}

.dcr-tasklist-sub-contents {
    border: calc(var(--stroke-width)* 1px) solid var(--neutral-stroke-layer-rest);
    overflow: clip;
    box-shadow: var(--elevation-shadow-card-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.row.dcr-tasklist-sub-row {
    padding-top: 0 !important;
}

.row.dcr-tasklist-sub-row .row {
    padding: 0.4rem 0rem;
}

.dcr-annotation-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dcr-annotation-container .invalid-feedback,
.dcr-annotation-container .valid-feedback,
.dcr-annotation-container .feedback,
.dcr-annotation-container .annotation {
    position: absolute;
    bottom: -1.2rem;
}

.dcr-form {
    flex-grow: 1;
    transition: max-height var(--animation-duration) ease-in-out;
    padding: 0 1.25rem;
    /* Override fixed-size annotation for file control in form context */
}

.dcr-form fieldset {
    width: 100%;
    border-style: none none none solid;
    border-width: thin;
    margin-bottom: 0;
    padding: 0 0 0 1rem;
}

.dcr-form.horizontal fieldset {
    padding: 0;
}

dcr-form-control>fieldset> :last-child>* {
    margin-bottom: 0;
}

.dcr-form-submission .dcr-form-submit,
.dcr-form-submission .dcr-form-draft-btn,
.dcr-form-submission .dcr-form-submit,
.dcr-form-submission .dcr-form-submit-btn,
.dcr-form-submission .dcr-form-cancel-btn {
    min-width: 6rem;
    height: 2.4rem;
    max-height: 2.4rem;
}

.form-label {
    display: inline-flex;
    position: relative;
}

.dcr-form.horizontal .form-label {
    align-items: baseline;
    justify-content: end;
    width: 15%;
    padding-right: 1rem;
}

.dcr-form-control {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.dcr-form.horizontal .dcr-form-control {
    flex-direction: row;
}

.dcr-delete-badge {
    width: 1rem;
    height: 1rem;
    border-radius: 50.0%;
    background-color: var(--foreground-on-accent-rest);
    color: #6c757d;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 100ms ease-in-out;
}

.dcr-delete-badge:hover {
    color: #ff403d;
}

.dcr-image-control {
    display: flex;
    flex-flow: row wrap;
    gap: 0.66rem;
    justify-content: start;
    width: 100%;
}

.dcr-image-control .dcr-image-control-container {
    display: flex;
    align-items: flex-start;
}

.dcr-image-control .dcr-image-control-container img {
    cursor: pointer;
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    width: 45%;
    aspect-ratio: auto;
}

.dcr-image-control .dcr-image-control-container .dcr-delete-badge {
    position: relative;
    right: 0.75rem;
    top: -0.25rem;
}

.dcr-image-control .dcr-image-control-container .dcr-annotation-container {
    width: 16.0%;
}

.dcr-delegation-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.dcr-delegation-control input {
    margin-right: 2.4rem;
}

.dcr-delegation-page {
    overflow: auto;
}

.dcr-share-row.row {
    margin-top: -2.4rem;
}

.dcr-share-row-container {
    border-radius: calc(var(--layer-corner-radius) * 1px);
    border-style: solid;
    border-color: var(--secondary);
    border-width: 0.8px;
    background-color: var(--foreground-on-accent-rest);
    padding: 0.53rem 1.2rem;
    margin-top: 0.53rem;
}

.dcr-share.dcr-share-share-new {
    color: var(--secondary);
}

.dcr-share.dcr-share-accessed {
    color: var(--accent-fill-rest);
}

.dcr-share.dcr-share-completed {
    color: var(--success);
}

.dcr-share.dcr-share-mail-sent {
    color: var(--warning);
}

.dcr-share.dcr-share-mail-failed {
    color: var(--error);
}

.dcr-share.dcr-share-unknown {
    color: #495057;
}

.dcr-share .row {
    padding-top: 0.53rem;
    padding-bottom: 0.53rem;
}

.dcr-share input {
    filter: none;
}

/* DCR Case */
.dcr-log {
    height: 100%;
}

/* DCR Cases */
.dcr-case {
    padding-left: 4.0rem;
    padding-right: 4.0rem;
}

button.dcr-fab {
    height: 1.2rem;
    width: 1.2rem;
    padding: 1.2rem;
    border-radius: 50.0%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transform: scale(0.9);
}

button.dcr-fab:active {
    transform: scale(0.85);
}

.dcr-fab {
    background-color: var(--success);
    color: var(--foreground-on-accent-rest);
}

button.dcr-add {
    padding: 0;
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 40.0%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

button.dcr-add:active {
    transform: scale(0.9);
}

.dcr-add {
    background-color: var(--success);
    color: var(--foreground-on-accent-rest);
}

.dcr-remove {
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 40.0%;
    justify-content: center;
    align-items: center;
    display: flex;
    border: none;
}

.dcr-remove:active {
    transform: scale(0.9);
}

.small-clickable,
button.btn.small,
.btn.dcr-help-text,
.dcr-case-admin .btn.dcr-role-delegation-state,
.btn.dcr-byline {
    border: none;
    color: inherit;
    background-color: #dee2e6;
}

.small-clickable:active,
button.btn.small:active,
.btn.dcr-help-text:active,
.dcr-case-admin .btn.dcr-role-delegation-state:active,
.btn.dcr-byline:active {
    transform: scale(0.9);
}

.small-clickable:hover,
button.btn.small:hover,
.btn.dcr-help-text:hover,
.dcr-case-admin .btn.dcr-role-delegation-state:hover,
.btn.dcr-byline:hover {
    background-color: #ced4da;
}

button.btn.small,
.btn.dcr-help-text,
.dcr-case-admin .btn.dcr-role-delegation-state,
.btn.dcr-byline {
    height: 1.2rem;
    padding: 0 0.4rem;
    font-size: 8pt;
}

i.background-interactive {
    color: #6c757d;
}

i.background-interactive:active {
    transform: scale(0.9);
}

i.background-interactive:hover {
    color: #343a40;
}

.link {
    color: var(--accent-fill-rest);
}

.dcr-role-delegation-pane {
    min-width: 40rem;
    padding: 5px;
}

.dcr-role-delegation-pane .row {
    padding-bottom: 0.8rem;
}

.dcr-role-delegation-pane .row:first-child {
    padding-bottom: 1.2rem;
}

.dcr-role-delegation-pane .row .col-5 input,
.dcr-role-delegation-pane .row .col-4 input {
    margin-left: -0.6rem;
}

/* https://www.w3schools.com/css/css_tooltip.asp */
button[disabled].dcr-tooltip {
    pointer-events: auto;
}

.dcr-task-description {
    max-width: 40rem;
    border-left: solid 0.5pt;
    padding-left: .5rem;
}

.dcr-task-description> :last-child {
    margin-bottom: 0;
}

.dcr-tooltip {
    position: relative;
    display: inline-block;
    /* Animation */
    /* Positioning */
}

.dcr-tooltip .dcr-tooltip-text {
    width: 20rem;
    color: var(--foreground-on-accent-rest);
    background-color: #212529;
    text-align: center;
    padding: 0.4rem 0.24rem;
    border-radius: calc(var(--control-corner-radius) * 1px);
    position: absolute;
    z-index: 1;
    transition: opacity var(--animation-duration);
}

.dcr-tooltip .dcr-tooltip-text {
    opacity: 0;
    visibility: hidden;
}

.dcr-tooltip:hover .dcr-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-top {
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, -100%);
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-top::after {
    content: " ";
    position: absolute;
    top: 80.0%;
    left: 40.0%;
    margin-left: -4.0px;
    border-width: 0.8px;
    border-style: solid;
    border-color: #212529 transparent transparent transparent;
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-left {
    top: 50%;
    right: 110%;
    transform: translate(0, -50%);
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-left::after {
    content: " ";
    position: absolute;
    top: 40.0%;
    left: 80.0%;
    margin-top: -4.0px;
    border-width: 0.8px;
    border-style: solid;
    border-color: transparent transparent transparent #212529;
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-bottom {
    top: 0%;
    left: 50%;
    transform: translate(-50%, 100%);
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-bottom::after {
    content: " ";
    position: absolute;
    bottom: 80.0%;
    left: 40.0%;
    margin-left: -4.0px;
    border-width: 0.8px;
    border-style: solid;
    border-color: transparent transparent #212529 transparent;
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-right {
    top: 50%;
    left: 110%;
    transform: translate(0, -50%);
}

.dcr-tooltip .dcr-tooltip-text.dcr-tooltip-right::after {
    content: " ";
    position: absolute;
    top: 40.0%;
    right: 80.0%;
    margin-top: -4.0px;
    border-width: 0.8px;
    border-style: solid;
    border-color: transparent #212529 transparent transparent;
}

.dcr-reason {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

ul.dcr-reason-list {
    margin-bottom: 0;
    padding-left: 0rem;
}

ul.dcr-reason-list li {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

ul.dcr-reason-list li:not(:last-child) {
    margin-bottom: 0.4rem;
}

ul.dcr-reason-list li i {
    width: 2.5rem;
    display: inline-block;
    text-align: center;
    padding: 0.8rem;
}

ul.dcr-reason-list li p {
    display: inline-block;
    margin-bottom: 0;
}

ul.dcr-reason-list .dcr-reason-cond i {
    color: var(--warning);
}

ul.dcr-reason-list .dcr-reason-mile i {
    color: var(--warning);
}

ul.dcr-reason-list .dcr-reason-excluded i {
    color: var(--error);
}

.dcr-case-delegate {
    max-width: 60rem;
}

.dcr-form-delegation-pane {
    min-width: 33rem;
    margin-top: 0.4rem;
    margin-left: 0.4rem;
}

.dcr-form-delegation-pane .dcr-user-input {
    width: 100%;
    margin-right: 0.8rem;
}

.dcr-form-delegation-pane .dcr-user-input-edit+button {
    display: none;
}

.dcr-guest-search-input {
    margin-bottom: 1.04rem;
}

.dcr-case-admin .dcr-check {
    width: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1rem;
    height: 2rem;
}

.dcr-case-admin .dcr-search-input {
    flex-grow: 1;
}

.dcr-case-admin .dcr-role-delegation-state {
    height: 1.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dcr-case-admin .dcr-role-delegation-title {
    width: 21%;
    height: 3rem;
    line-height: 3rem;
}

.dcr-case-admin .dcr-role-delegation-input {
    flex-grow: 1;
}

.dcr-case-admin .dcr-role-delegation-input .dcr-user-input {
    height: auto;
    display: flex;
    align-items: center;
}

.dcr-case-admin .dcr-role-delegation-row .dcr-check {
    height: 3rem;
}

.dcr-role-delegation .col-4,
.dcr-role-delegation .col-8 {
    display: flex;
    padding: 0;
    align-items: center;
}

.dcr-role-delegation .dcr-user-input {
    width: 100%;
}

.dcr-role-delegation-input .dcr-user-input-edit {
    padding: 0.16rem;
    border-style: solid;
    border-color: #adb5bd;
}

.dcr-delegation-row div i {
    width: 1.6rem;
}

.dcr-last-update .dcr-tooltip-text {
    width: 12rem;
}

.dcr-delegate a {
    text-decoration: none;
}

.dcr-cases-search i {
    color: #adb5bd;
}

.dcr-cases-search form {
    min-width: 10rem;
}

.collapsible-container {
    /*weirdly necessary to allow scrolling inside the container*/
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-grow: 1;
    /*For collapsing*/
    transition: max-height var(--animation-duration) ease-in-out;
}

.collapsible-container.collapsed {
    max-height: 0px;
    overflow: hidden;
    pointer-events: none;
}

.dcr-gear-button {
    transition: var(--animation-duration) transform ease-in-out;
    position: relative;
    transform: rotate(0deg);
    cursor: pointer;
}

.dcr-gear-button.collapsed {
    transform: rotate(90deg);
}

.dcr-form-control-with-pending-flag {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.dcr-form-pending-flag {
    color: var(--accent-fill-rest);
    border-radius: 50.0%;
    position: absolute;
    left: -1rem;
}

.dcr-form-control-with-pending-flag .dcr-annotation-container {
    width: 100%;
}

.dcr-form-control-with-pending-flag.hide-hint-text .hint-text {
    display: none;
}

.dcr-table th:first-child,
.dcr-table td:first-child {
    padding-left: 1.2rem;
}

.dcr-table th:last-child,
.dcr-table td:last-child {
    padding-right: 1.2rem;
}

.criipto-eid-btn {
    padding: .25rem .75rem .25rem 1rem;
    height: 42px;
    box-sizing: border-box;
    text-decoration: none;
    border: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12.8px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: bolder;
    font-size: 12px;
    color: #FFF;
    justify-content: flex-start;
    width: 100%;
    background: #0060E6;
    margin-top: 0.4rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.criipto-eid-btn:hover {
    background-color: #1a7aff;
}

.criipto-eid-btn .criipto-eid-logo {
    width: 88px;
    height: 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.criipto-eid-btn .criipto-eid-logo img {
    max-width: 16.0%;
    max-height: 16.0%;
}

.dcr-help-text {
    opacity: 0;
    position: absolute;
    color: var(--accent-fill-rest);
    margin-top: 0.08rem;
    margin-left: 0.08rem;
    transition: opacity var(--animation-duration) ease-in-out;
}

.dcr-help-container:hover .dcr-help-text {
    opacity: 1;
}

.archived-color {
    background-color: var(--neutral-layer-2);
}


.dcr-form-conflict-form {
    background-color: var(--neutral-layer-2);
    opacity: .66;
}

.dcr-feel-parameter.dcr-feel-active {
    text-decoration: underline;
}

tr.dcr-select-row {
    padding-left: .24rem;
    padding-right: .24rem;
}

.form-container {
    --drawer-width: max(20%,310px);
    display: grid;
    position: relative;
    flex-grow: 1;
    height: 100%;
    transition: all var(--animation-duration) ease-in-out;
    overflow: hidden;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "content"
}

.form-content {
    grid-area: content;
    justify-self: start;
    display: grid;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
    scrollbar-width: thin;
    grid-column-gap: 0;
    grid-auto-rows: min-content;
    grid-template-columns: 0fr 100%;
    transition: width var(--animation-duration) ease-in-out, padding var(--animation-duration) ease-in-out;
}

.form-content.embed {
    padding: calc(var(--design-unit) * 5px) 20%;
}

.form-content.split {
    grid-template-columns: 50% 50%;
}

.form-container:has(.drawer.open)>.form-content {
    padding-right: 0%;
    width: calc(100% - var(--drawer-width));
}

.drawer {
    grid-area: content;
    justify-self: end;
    overflow-y: auto;
    overflow-x: hidden;
    width: 0%;
    background-color: var(--neutral-fill-layer-alt-rest);
    transition: width var(--animation-duration) ease-in-out;
}

.drawer.open {
    width: var(--drawer-width);
    z-index: 1;
}

.drawer-inner {
    padding: 1rem 0.5rem 0.5rem 0.5rem;
}

.drawer-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.875rem;
    color: var(--accent-fill-rest);
    z-index: 2;
}

.drawer-toggle:focus-visible {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

@media (max-width: 1360px) {
    .form-container {
        grid-template-columns: 1fr;
        grid-template-rows: 0rem 1fr;
        grid-template-areas: "drawer" "content";
    }

    .form-container:has(.drawer.open) {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .form-container:has(.drawer.open)>.form-content {
        width: 100%;
    }

    .form-content {
        padding: 0 !important;
    }

    .form-content.embed {
        padding: calc(var(--design-unit) * 5px) !important;
    }

    .drawer {
        grid-area: drawer;
        justify-self: stretch;
        width: unset;
        max-width: unset;
        transition: none;
        overflow-y: visible;
    }

    .drawer.open {
        width: unset;
    }

    .drawer-toggle {
        transform-box: content-box;
        transform: rotate(-90deg);
    }
}

.control {
    --control-width: 25%;
    --control-min-width: 220px;
    display: flex;
    flex-direction: column;
    width: var(--control-width);
    min-width: var(--control-min-width);
    transition: width var(--animation-duration) ease-in-out;
}

.control.drawer {
    min-width: unset;
}

/* force full width on constrained layouts */
@media (max-width: 768px),
(orientation: portrait) {
    .control {
        --control-width: 100% !important;
    }
}

.sticky-stack {
    position: sticky;
    bottom: 0;
    width: unset !important;
    padding: 16px;
    background-color: var(--fill-color);
    margin: 0;
    z-index: 10;
}

.dcr-form-buttons {
    width: 0%;
    max-height: 0;
    padding: 0;
    transition: width var(--animation-duration) ease-in-out;
}

.dcr-form-buttons.open {
    display: flex;
    max-width: 100%;
    width: 100%;
}

#blazor-error-ui {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#blazor-error-ui>.alert {
    border-radius: calc(var(--layer-corner-radius) * 1px);
    max-width: 25rem;
    padding: 1rem;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.validation-message {
    color: var(--error);
    font-size: var(--type-ramp-minus-1-font-size);
    display: flex;
    align-items: center;
    column-gap: 4px;
}

.dcr-button {
    display: contents;
}

/*Paginator*/
.paginator {
    display: flex;
    justify-content: center;
    box-shadow: var(--elevation-shadow-card-rest);
    border-radius: 1rem;
    max-width: fit-content;
}

.paginator>.button:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.paginator>.button:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.paginator>.button:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/*Fluent Overrides*/

.round-btn::part(control) {
    padding: unset !important;
    line-height: 0;
}

fluent-select[aria-multiselectable="true"]::part(listbox) {
    position: relative;
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
    box-shadow: none;
}

fluent-select::part(listbox) {
    z-index: 40;
}

fluent-number-field,
fluent-text-field,
fluent-select,
fluent-inputfile-container,
fluent-text-area,
.fluent-timepicker {
    min-width: 4rem !important;
}

.fluent-inputfile-container .inputfile-content {
    z-index: unset !important;
    width: 100%;
}

.fluent-inputfile-container .inputfile-progress {
    padding: 0 !important;
    height: 1.5rem !important;
}

/*
    css trickery to avoid using media query
    https://www.freecodecamp.org/news/the-fab-four-technique-to-create-responsive-emails-without-media-queries-baf11fdfa848#.qn28y65bx
    in short use 80.0% width when the screen is less than 400.0px
*/
fluent-dialog::part(control) {
    min-width: var(--dialog-width);
    max-width: 100%;
    width: calc((500px - 100%) * 500) !important;
}

fluent-dialog .fluent-dialog-footer:empty {
    display: none !important;
}

fluent-option::before {
    --accent-fill-rest: hsl(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-clamped)) !important;
}

/*Popover menu*/
.relative-menu {
    pointer-events: initial;
    background-color: var(--neutral-layer-floating);
    color: var(--neutral-foreground-rest);
    min-width: max-content;
    border: calc(var(--stroke-width) * 1px) solid transparent;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-flyout);
    padding: calc((var(--design-unit) - var(--stroke-width)) * 1px);
}

.relative-menu:focus-visible {
    outline: 0;
}

/*Required for sticky popovers*/
[popover] {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

[menu-option] {
    cursor: pointer;
}

/*phone list menu*/
.iti--inline-dropdown .iti__dropdown-content {
    background-color: var(--neutral-layer-floating);
    border: calc(var(--stroke-width) * 1px) solid transparent;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-flyout);
    padding: calc((var(--design-unit) - var(--stroke-width)) * 1px);
}

/*Overview */
.overview-hud-square {
    border-radius: 1rem;
    color: var(--foreground-on-accent-rest);
    display: flex;
    padding: 1rem;
}

.overview-hud-square.primary {
    background: var(--accent-fill-rest);
}

.overview-hud-square.success {
    background: var(--success);
}

.overview-hud-square.warning {
    background: var(--warning);
}

.overview-hud-square.error {
    background: var(--error);
}

/*Progress bars*/
.progress,
.progress-stacked {
    display: flex;
    height: 1rem;
    overflow: hidden;
    background-color: var(--neutral-layer-2);
    border-radius: calc(var(--control-corner-radius) * 1px);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    transition: width var(--animation-duration) ease;
}

.progress-stacked>.progress {
    overflow: visible;
}

.progress-stacked>.progress>.progress-bar {
    width: 100%;
}

/*Badge*/
.badge {
    border-radius: calc(var(--control-corner-radius) * 1px);
    padding: calc(((var(--design-unit) * 0.5) - var(--stroke-width)) * 1px) calc((var(--design-unit) - var(--stroke-width)) * 1px);
    border: calc(var(--stroke-width) * 1px) solid transparent;
}
.badge.stealth {
    background: var(--neutral-fill-stealth-hover);
    color: var(--foreground-on-accent-rest);
}

.badge.accent {
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
}

.badge.secondary {
    background: var(--secondary);
    color: var(--foreground-on-accent-rest);
}

.badge.success {
    background: var(--success);
    color: var(--foreground-on-accent-rest);
}

.badge.error {
    background: var(--error);
    color: var(--foreground-on-accent-rest);
}

.badge.info {
    background: #0dcaf0 !important;
    color: #212529 !important;
}

/*File autocomplete dropdown (# trigger in HTML rich-text fields)*/
.dcr-file-autocomplete {
    position: fixed;
    background: var(--neutral-layer-floating);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    min-width: 260px;
    max-width: 420px;
    overflow: hidden;
}

.dcr-file-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
}

.dcr-file-autocomplete-item.active,
.dcr-file-autocomplete-item:hover {
    background: var(--neutral-fill-hover);
}

.dcr-file-autocomplete-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/*File list (Tags.FILE)*/
.dcr-file-list {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 4px;
    width: 100%;
}

.dcr-file-row {
    display: contents;
}

.dcr-file-ref {
    color: var(--accent-fill-rest);
    font-weight: 500;
    white-space: nowrap;
}

.dcr-file-badge {
    min-width: 0;
}

.dcr-file-badge fluent-badge {
    min-width: 0;
    max-width: 100%;
}

.dcr-file-badge a {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.dcr-file-badge a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.dcr-file-date {
    font-size: smaller;
    font-weight: 400;
    white-space: nowrap;
    text-align: end;
}

/*Tabs*/
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    position: relative;
    --n-tabs: 1;
    --tab-width: calc(100% / var(--n-tabs));
    --tab-index: 1;
}

.nav-link {
    width: 100%;
    display: block;
    padding: .5rem 1rem;
    color: var(--neutral-foreground-rest);
    text-decoration: none;
}

.nav-link.active {
    color: var(--accent-fill-rest);
}

.nav>.nav-link,
.nav .nav-item {
    flex: 1 1 auto;
    text-align: center;
}

/*Dialog*/
.dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060;
    display: none;
    min-width: 360px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    contain: strict;
    outline: 0;
    background: rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}

.dialog-container.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.dialog-container.no-backdrop {
    background: 0;
}

.dialog-container.fade {
    transition: opacity var(--animation-duration) linear;
}

.dialog-container>* {
    max-width: 70%;
    max-height: 95%;
    box-shadow: var(--elevation-shadow-dialog);
    transition: max-width var(--animation-duration) ease-in-out,
        max-height var(--animation-duration) ease-in-out,
        width var(--animation-duration) ease-in-out,
        height var(--animation-duration) ease-in-out,
        border-radius var(--animation-duration) ease-in-out;
}

.dialog-container.fullscreen>* {
    max-width: 100%;
    max-height: 100%;
    box-shadow: none;
    border-radius: 0;
}

.dialog-container>*.dcr-form-small {
    max-width: 72ch;
}

@media (max-width: 1360px) {
    .dialog-container>* {
        max-width: 95%;
    }
}

@media (orientation: portrait) {
    .dialog-container>* {
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }
}

.shake {
    animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    transform: translate(0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    border: var(--error) 2px solid;
}

@keyframes shake {

    8.0%,
    72.0% {
        transform: translate(-0.8px, 0);
    }

    20%,
    80% {
        transform: translate(2px, 0);
    }

    24.0%,
    40.0%,
    56.0% {
        transform: translate(-3.2px, 0);
    }

    40%,
    60% {
        transform: translate(4px, 0);
    }
}

.hover-text {
    position: relative;
    text-align: center;
}

.hover-text .text-fade-out,
.hover-text .text-fade-in {
    position: absolute;
    transition: opacity var(--animation-duration) ease, visibility var(--animation-duration) ease;
}

.text-fade-out {
    opacity: 1;
    visibility: visible;
}

.text-fade-in {
    opacity: 0;
    visibility: hidden;
}

.hover-text:hover .text-fade-out {
    opacity: 0;
    visibility: hidden;
}

.hover-text:hover .text-fade-in {
    opacity: 1;
    visibility: visible;
}

.forum-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-layer-1);
    overflow: hidden;
    margin-top: 1.5rem;
}

.forum-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--neutral-layer-2);
    border-bottom: 1px solid var(--neutral-stroke-rest);
}

.forum-header-icon {
    font-size: 1.1rem;
    color: var(--accent-fill-rest);
    flex-shrink: 0;
}

.forum-header-title {
    font-size: var(--type-ramp-base-font-size);
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.forum-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 3rem;
}

.forum-thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forum-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    color: var(--neutral-foreground-hint);
}

.forum-empty-icon {
    font-size: 1.25rem;
    opacity: 0.5;
}

.forum-empty-text {
    font-size: var(--type-ramp-minus-1-font-size);
    font-style: italic;
}

.forum-compose {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 2px solid var(--accent-fill-rest);
    background: color-mix(in srgb, var(--accent-fill-rest) 5%, var(--neutral-layer-2));
}

.forum-compose-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.forum-compose-icon {
    font-size: 0.85rem;
    color: var(--accent-fill-rest);
}

.forum-compose-label {
    font-size: var(--type-ramp-minus-1-font-size);
    font-weight: 600;
    color: var(--accent-fill-rest);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.forum-compose-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.forum-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border: none;
    border-radius: 6px;
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    font-size: var(--type-ramp-minus-1-font-size);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease;
    height: 2rem;
}

.forum-post-btn:hover:not(:disabled) {
    background: var(--accent-fill-hover);
}

.forum-post-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Thread styles */
.forum-thread {
    background: var(--neutral-layer-2);
    border-radius: 8px;
    border: 1px solid var(--neutral-stroke-rest);
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.forum-thread:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.forum-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    user-select: none;
    background: var(--neutral-layer-2);
    transition: background 0.15s ease;
}

.forum-thread-header:hover {
    background: var(--neutral-fill-hover);
}

.forum-thread-header-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.forum-thread-topic {
    font-size: var(--type-ramp-base-font-size);
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-thread-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--type-ramp-minus-1-font-size);
    color: var(--neutral-foreground-hint);
    min-width: 0;
}

.forum-thread-toggle {
    color: var(--neutral-foreground-hint);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.forum-thread-body {
    border-top: 1px solid var(--neutral-stroke-rest);
    padding: 0.625rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--neutral-layer-1);
}

.forum-thread-comments {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.forum-add-comment {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px dashed var(--neutral-stroke-rest);
    margin-top: 0.25rem;
}

.forum-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: 6px;
    background: var(--neutral-layer-2);
    color: var(--neutral-foreground-rest);
    font-size: var(--type-ramp-minus-1-font-size);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
    height: 2rem;
}

.forum-reply-btn:hover:not(:disabled) {
    background: var(--neutral-fill-hover);
    border-color: var(--neutral-stroke-hover);
}

.forum-reply-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.comment-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: var(--neutral-layer-2);
    border-radius: 8px;
    border: 1px solid var(--neutral-stroke-rest);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-bubble:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.comment-bubble--editing {
    border-color: var(--accent-fill-rest);
    box-shadow: 0 0 0 1px var(--accent-fill-rest);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.75rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--type-ramp-minus-1-font-size);
    color: var(--neutral-foreground-hint);
    flex: 1;
    min-width: 0;
}

.comment-sep {
    color: var(--neutral-stroke-rest);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    color: var(--neutral-foreground-rest);
    min-height: 1.5em;
}

.comment-placeholder {
    color: var(--neutral-foreground-hint);
    font-style: italic;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.comment-bubble:hover .comment-actions,
.comment-bubble--editing .comment-actions {
    opacity: 1;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: var(--neutral-foreground-hint);
    font-size: var(--type-ramp-base-font-size);
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
}

.comment-action-btn:hover {
    background: var(--neutral-fill-hover);
    color: var(--neutral-foreground-rest);
}

.comment-action-btn--confirm {
    color: var(--accent-fill-rest);
}

.comment-action-btn--confirm:hover {
    background: color-mix(in srgb, var(--accent-fill-rest) 10%, transparent);
    color: var(--accent-fill-rest);
}

.comment-action-btn--danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.comment-errors {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.two-factor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ─── Form layout with conversation sidebar ─────────────────────────────── */

.form-outer {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.form-outer--with-conversations {
    flex-direction: row;
    overflow: hidden;
}

.conv-sidebar {
    width: 420px;
    min-width: 320px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
}

.form-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* Wide dialog when conversations are present */
.dialog-container>*.dcr-form-wide {
    width: 90vw;
    max-width: 90vw;
}

/* ─── Conversation Panel component ──────────────────────────────────────── */

.conv-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--neutral-fill-layer-rest);
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px);
    overflow: hidden;
}

.conv-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.875rem;
    border-bottom: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-fill-layer-alt-rest);
    flex-shrink: 0;
}

.conv-header-icon {
    color: var(--accent-fill-rest);
    font-size: 1rem;
    flex-shrink: 0;
}

.conv-header-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conv-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: thin;
    min-height: 0;
}

.conv-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.conv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    color: var(--neutral-foreground-hint);
    padding: 2rem 1rem;
    text-align: center;
}

.conv-empty-icon {
    font-size: 2rem;
    opacity: 0.35;
}

.conv-empty-text {
    font-size: 0.825rem;
}

.conv-comment-bubble {
    background: var(--neutral-layer-card-rest);
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px);
    padding: 0.5rem 0.75rem;
    transition: border-color var(--animation-duration) ease;
}

.conv-comment-bubble:hover {
    border-color: var(--neutral-stroke-hover);
}

.conv-comment-bubble--robot {
    background: var(--neutral-fill-layer-alt-rest);
    border-style: dashed;
}

.conv-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.conv-comment-actions {
    display: flex;
    gap: 0.15rem;
    margin-left: auto;
    opacity: 0;
    transition: opacity var(--animation-duration) ease;
}

.conv-comment-bubble:hover .conv-comment-actions {
    opacity: 1;
}

.conv-comment-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: calc(var(--control-corner-radius) * 1px);
    cursor: pointer;
    color: var(--neutral-foreground-hint);
    font-size: 0.75rem;
    transition: background var(--animation-duration) ease, color var(--animation-duration) ease;
}

.conv-comment-action-btn:hover {
    background: var(--neutral-fill-hover);
    color: var(--neutral-foreground-rest);
}

.conv-comment-action-btn--danger:hover {
    background: var(--error-fill-rest);
    color: white;
}

.conv-comment-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.conv-edit-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.conv-send-btn--small {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
}

.conv-send-btn--neutral {
    background: var(--neutral-fill-rest);
    color: var(--neutral-foreground-rest);
}

.conv-send-btn--neutral:hover:not(:disabled) {
    background: var(--neutral-fill-hover);
}

.conv-comment-author-icon,
.conv-comment-robot-icon {
    font-size: 0.75rem;
    color: var(--accent-fill-rest);
    flex-shrink: 0;
}

.conv-comment-author {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-fill-rest);
}

.conv-comment-text {
    font-size: 0.875rem;
    color: var(--neutral-foreground-rest);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
}

.conv-compose {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    flex-shrink: 0;
    background: var(--neutral-fill-layer-alt-rest);
}

.conv-compose-textarea {
    flex: 1;
    min-height: 2.25rem;
    max-height: 2rem;
    resize: none;
    overflow-y: auto;
    padding: calc(var(--design-unit) * 1.5px) calc(var(--design-unit) * 2px);
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    background: var(--neutral-fill-input-rest);
    color: var(--neutral-foreground-rest);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    outline: none;
    scrollbar-width: thin;
}

.conv-compose-textarea:focus {
    border-color: var(--accent-fill-rest);
}

.conv-compose-textarea::placeholder {
    color: var(--neutral-foreground-hint);
}

.conv-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    align-self: stretch;
    padding: 0.35rem 0.85rem;
    border-radius: calc(var(--control-corner-radius) * 1px);
    background: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background var(--animation-duration) ease;
    white-space: nowrap;
}

.conv-send-btn:hover:not(:disabled) {
    background: var(--accent-fill-hover);
}

.conv-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .conv-sidebar {
        width: 300px;
        min-width: 260px;
    }
}


.dcr-file-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: var(--control-corner-radius);
    border: 1px solid var(--neutral-stroke-rest);
    background: var(--neutral-fill-rest);
    color: var(--neutral-foreground-rest);
    font-size: var(--type-ramp-base-font-size);
    user-select: none;
    transition: background 0.15s;
}

.dcr-file-label:hover {
    background: var(--neutral-fill-hover);
}

.csv-editor-table {
    min-width: 400px;
    table-layout: fixed;
}

.csv-editor-table th,
.csv-editor-table td {
    vertical-align: top;
    position: relative;
}

.csv-editor-table th {
    background: var(--neutral-fill-rest);
    overflow: hidden;
}

.csv-editor-table tbody tr:nth-child(even) td {
    background: rgba(128, 128, 128, 0.08) !important;
}

.csv-header-input,
.csv-cell-input {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0.15rem 0.25rem;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
    resize: none;
    overflow-y: auto;
    field-sizing: content;
    min-height: 1.8rem;
    max-height: 12rem;
    min-width: 0;
    box-sizing: border-box;
}

.csv-header-input {
    font-weight: 600;
    resize: none;
}

.csv-header-input:focus,
.csv-cell-input:focus {
    outline: 1px solid var(--accent-fill-rest);
    border-radius: 2px;
}

/* column resize handle */
.csv-col-resizer {
    position: absolute;
    right: 0;
    top: 10%;
    width: 3px;
    height: 80%;
    border-radius: 2px;
    cursor: col-resize;
    user-select: none;
    z-index: 1;
    background: var(--neutral-stroke-rest);
    opacity: 0.5;
    transition: opacity 0.15s, background 0.15s, width 0.1s;
}

.csv-col-resizer:hover,
.csv-col-resizer.resizing {
    width: 4px;
    background: var(--accent-fill-rest);
    opacity: 1;
}

.csv-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-foreground-hint);
    padding: 0 2px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.1s, color 0.1s;
}

.csv-delete-btn:hover {
    opacity: 1;
    color: var(--error);
}

/* row resize handle */
.csv-row-resizer {
    position: absolute;
    bottom: 2px;
    left: 10%;
    right: 10%;
    height: 3px;
    border-radius: 2px;
    cursor: row-resize;
    user-select: none;
    z-index: 1;
    background: var(--neutral-stroke-rest);
    opacity: 0.5;
    transition: opacity 0.15s, background 0.15s, height 0.1s;
}

.csv-row-resizer:hover,
.csv-row-resizer.resizing {
    height: 4px;
    background: var(--accent-fill-rest);
    opacity: 1;
}

.csv-drag-handle {
    cursor: grab;
    color: var(--neutral-foreground-hint);
    opacity: 0.4;
    transition: opacity 0.1s;
    user-select: none;
}

.csv-drag-handle:hover {
    opacity: 1;
}

.sortable-chosen {
    opacity: 0.6;
}

.sortable-ghost {
    background: var(--accent-fill-rest) !important;
    opacity: 0.3;
}

.csv-drop-zone {
    border: 2px dashed var(--neutral-stroke-rest);
    border-radius: var(--control-corner-radius);
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.csv-drop-zone--compact {
    border-style: dashed;
    opacity: 0.6;
}

.csv-drop-zone--compact:hover,
.csv-drop-zone--compact.csv-drop-active {
    opacity: 1;
}

.csv-drop-zone:hover,
.csv-drop-zone.csv-drop-active {
    border-color: var(--accent-fill-rest);
    background: color-mix(in srgb, var(--accent-fill-rest) 8%, transparent);
}

.csv-drop-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    cursor: pointer;
    width: 100%;
}

.csv-drop-zone--compact .csv-drop-zone-inner {
    flex-direction: row;
    padding: 0.5rem 1rem;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.csv-drop-icon {
    font-size: 2.5rem;
    color: var(--accent-fill-rest);
}

.csv-drop-zone--compact .csv-drop-icon {
    font-size: 1.1rem;
}

.csv-drop-text {
    color: var(--neutral-foreground-rest);
    border-top: 1px solid var(--neutral-stroke-rest);
}

.draft-restore-popup-stack {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 22rem;
}

.draft-restore-popup {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--neutral-layer-1, #fff);
    border: 1px solid var(--neutral-stroke-rest);
    border-left: 4px solid var(--warning-fill-rest, #f59e0b);
    border-radius: calc(var(--layer-corner-radius, 4) * 1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 0.875rem;
}

.draft-restore-popup-icon {
    color: var(--warning-fill-rest, #f59e0b);
    font-size: 1.1rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.draft-restore-popup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.draft-restore-popup-body strong {
    font-weight: 600;
}

.draft-restore-popup-body span {
    color: var(--neutral-foreground-hint, #666);
    font-size: 0.8rem;
}

.draft-restore-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}