html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--mk-content-bg, #f8fafc);
    color: var(--mk-content-text, #1d2430);
}

:root {
    --sc-font-family: "Segoe UI", Tahoma, sans-serif;
    --sc-surface: #ffffff;
    --sc-border: #d7dce2;
    --sc-border-soft: #edf0f4;
    --sc-disabled: #98a0ae;
    --sc-ink: #1d2430;
    --sc-ink-soft: #5f6d80;
    --sc-ink-muted: #7f8ba0;
    --sc-action-text: #1f4f8a;
    --sc-action-hover: #e9f0fa;
    --sc-placeholder-field-border: #d2dbe7;
    --sc-placeholder-field-text: #5c6980;
    --sc-placeholder-row-text: #33425b;
    --sc-control-surface: #ffffff;
    --sc-control-lookup-bg: #f2f6fb;
    --sc-control-readonly-bg: #e4e8ed;
    --sc-control-group-title: #000000;
    --sc-table-text: #1f2b3d;
    --sc-table-readonly-text: #7a8698;
    --sc-field-dots: #c3cddd;
    --mk-nav-bg: #003e87;
    --mk-nav-ink: #ffffff;
    --mk-nav-link: #d7d7d7;
    --mk-nav-brand-mark-bg: rgba(255, 255, 255, 0.16);
    --mk-nav-hover-bg: rgba(255, 255, 255, 0.1);
    --mk-nav-hover-bg-strong: rgba(255, 255, 255, 0.12);
    --mk-nav-active-bg: rgba(255, 255, 255, 0.37);
    --mk-content-bg: #f8fafc;
    --mk-content-text: #1d2430;
    --mk-page-bg: #f8fafc;
}

[data-theme="dark"] {
    --sc-surface: #1d2633;
    --sc-border: #384556;
    --sc-border-soft: #2c3848;
    --sc-disabled: #708197;
    --sc-ink: #e2ebf5;
    --sc-ink-soft: #a5b5c8;
    --sc-ink-muted: #8b9bb0;
    --sc-action-text: #95bef2;
    --sc-action-hover: #2f3d50;
    --sc-placeholder-field-border: #425166;
    --sc-placeholder-field-text: #a3b3c8;
    --sc-placeholder-row-text: #d7e2ef;
    --sc-control-surface: #2a3444;
    --sc-control-lookup-bg: #314056;
    --sc-control-readonly-bg: #2b3646;
    --sc-control-group-title: #d7e2ef;
    --sc-table-text: #dbe7f4;
    --sc-table-readonly-text: #9db0c7;
    --sc-field-dots: #4f7fb2;
    --mk-nav-bg: #001f45;
    --mk-nav-ink: #e8f1fb;
    --mk-nav-link: #bccce0;
    --mk-nav-brand-mark-bg: rgba(255, 255, 255, 0.1);
    --mk-nav-hover-bg: rgba(255, 255, 255, 0.08);
    --mk-nav-hover-bg-strong: rgba(255, 255, 255, 0.12);
    --mk-nav-active-bg: rgba(88, 137, 198, 0.36);
    --mk-content-bg: #121923;
    --mk-content-text: #dde8f4;
    --mk-page-bg: #1a2332;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.merkur-page-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.merkur-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.merkur-table-wrap {
    --mk-list-bg: #ffffff;
    --mk-list-border: #cfd8e3;
    --mk-list-grid: #dfe6ef;
    --mk-list-head-bg: #eef3f8;
    --mk-list-head-text: #354a61;
    --mk-list-row-hover: #f4f8fc;
    --mk-list-row-selected: #e2eefb;
    --mk-list-cell-active: #0f6cbd;
    --mk-list-text: #223548;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--mk-list-text);
}

.sc-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-top: 1px solid var(--sc-border-soft);
    border-bottom: 1px solid var(--sc-border-soft);
    padding: 0.35rem 0.2rem;
    background: var(--sc-surface);
    margin-bottom: 0.3rem;
    font-family: var(--sc-font-family);
}

.sc-action-bar--nowrap {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.sc-action-bar__main {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.sc-action-bar__right {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
    flex: 0 0 auto;
}

.sc-action-bar__measure {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    left: -99999px;
    top: -99999px;
    display: inline-flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.sc-action-bar__overflow-menu-measure {
    position: static;
    top: auto;
    right: auto;
    left: auto;
}

.sc-action {
    border: 0;
    background: transparent;
    color: var(--sc-action-text);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.25rem 0.4rem;
    border-radius: 0.25rem;
    font-family: var(--sc-font-family);
}

.sc-action.is-emphasized:not(:disabled) {
    font-weight: 700;
}

.sc-action:disabled {
    color: var(--sc-disabled);
}

.sc-action:not(:disabled):hover {
    background: var(--sc-action-hover);
}

.bc-action-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: currentColor;
}

.sc-action:disabled .bc-action-icon,
.mk-action:disabled .bc-action-icon {
    color: var(--sc-disabled);
}

.merkur-table-toolbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    padding: 0 0.1rem;
}

.merkur-table-toolbar h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2a4057;
}

.merkur-input {
    min-width: 7.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #33425b;
    box-shadow: none !important;
}

.merkur-table-wrap .sc-table-container {
    --sc-line-header-height: 2rem;
    --sc-line-row-height: 1.95rem;
    border: 1px solid #d2dbe7;
    border-radius: 0.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
}

.merkur-table-wrap .sc-table-container__viewport {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.merkur-table-wrap .sc-line-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 1120px;
    color: #1f2b3d;
}

.merkur-table-wrap .sc-line-table th,
.merkur-table-wrap .sc-line-table td {
    border: 1px solid #b5c2d2;
    padding: 0.2rem 0.38rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.merkur-table-wrap .sc-line-table thead th {
    background: #eaf4ff;
    color: #61738f;
    font-weight: 700;
    text-align: left;
    font-size: 0.78rem;
    height: var(--sc-line-header-height);
}

.merkur-table-wrap .sc-line-table thead th.sc-line-table__header-cell {
    position: relative;
    padding-right: 0.9rem;
}

.merkur-table-wrap .sc-line-table .sc-line-table__header-caption {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.merkur-table-wrap .sc-line-table .sc-line-table__header-caption--draggable {
    cursor: grab;
    user-select: none;
}

.merkur-table-wrap .sc-line-table .sc-line-table__header-caption--draggable:active {
    cursor: grabbing;
}

.merkur-table-wrap .sc-line-table thead th.sc-line-table__header-cell.is-column-drop-target-left::before,
.merkur-table-wrap .sc-line-table thead th.sc-line-table__header-cell.is-column-drop-target-right::after {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    width: 2px;
    background: #1f66cc;
    border-radius: 1px;
    z-index: 4;
}

.merkur-table-wrap .sc-line-table thead th.sc-line-table__header-cell.is-column-drop-target-left::before {
    left: -1px;
}

.merkur-table-wrap .sc-line-table thead th.sc-line-table__header-cell.is-column-drop-target-right::after {
    right: -1px;
}

.merkur-table-wrap .sc-line-table .sc-line-table__resize-handle {
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: col-resize;
}

.merkur-table-wrap .sc-line-table .sc-line-table__resize-handle::before {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 3px;
    width: 1px;
    background: #9db0c8;
    opacity: 0;
    transition: opacity 0.12s ease-in-out;
}

.merkur-table-wrap .sc-line-table thead th.sc-line-table__header-cell:hover .sc-line-table__resize-handle::before,
.merkur-table-wrap .sc-line-table .sc-line-table__resize-handle:focus-visible::before {
    opacity: 1;
}

.merkur-table-wrap .sc-line-table tbody tr {
    background: #fff;
}

.merkur-table-wrap .sc-line-table tbody tr.is-current td {
    background: #e1efff;
}

.merkur-table-wrap .sc-line-table tbody tr.is-empty-row td {
    background: #fff;
    height: var(--sc-line-row-height);
}

.merkur-table-wrap .sc-line-table tbody tr.is-empty-row td.is-empty-cell {
    pointer-events: auto;
}

.merkur-table-wrap .sc-line-table .sc-line-table__pointer-col {
    width: 1.1rem;
    max-width: 1.1rem;
    text-align: center;
    color: #0f4a91;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.merkur-table-wrap .sc-line-table .sc-line-table__pointer-col.is-inline-new {
    color: #c62828;
}

.merkur-table-wrap .sc-line-table .sc-line-table__pointer-col.is-marked {
    color: #0a7a38;
}

.merkur-table-wrap .sc-line-table tbody td:not(.sc-line-table__pointer-col) {
    padding: 0;
    height: var(--sc-line-row-height);
}

.merkur-table-wrap .sc-line-table tbody td:not(.sc-line-table__pointer-col) .sc-text-field__editor {
    width: 100%;
    height: 100%;
}

.merkur-table-wrap .sc-text-field__editor.is-table {
    display: flex;
    align-items: stretch;
    min-height: 1.6rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.merkur-table-wrap .sc-text-field__input.is-table {
    font-size: 0.86rem;
    padding: 0.16rem 0.35rem;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.merkur-table-wrap .sc-text-field__input.is-align-right,
.merkur-table-wrap .sc-select-field__input.is-align-right,
.sc-field .sc-text-field__input.is-align-right,
.sc-field .sc-select-field__input.is-align-right {
    text-align: right;
}

.merkur-table-wrap .sc-text-field__input.is-align-left,
.merkur-table-wrap .sc-select-field__input.is-align-left,
.sc-field .sc-text-field__input.is-align-left,
.sc-field .sc-select-field__input.is-align-left {
    text-align: left;
}

.merkur-table-wrap .sc-text-field__editor.has-lookup .sc-text-field__input.is-table,
.merkur-table-wrap .sc-select-field__editor.has-lookup .sc-select-field__input.is-table {
    padding-right: 0.2rem;
}

.merkur-table-wrap .sc-text-field__lookup,
.sc-field .sc-text-field__lookup {
    width: 1.7rem;
    min-width: 1.7rem;
    border: 0;
    border-left: 1px solid var(--sc-placeholder-field-border);
    background: var(--sc-control-lookup-bg);
    color: var(--sc-placeholder-row-text);
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
}

.merkur-table-wrap .sc-text-field__lookup.is-table {
    border-left-color: var(--sc-placeholder-field-border);
}

.merkur-table-wrap .sc-select-field__editor.is-table {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 1.6rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.merkur-table-wrap .sc-select-field__input.is-table {
    width: 100%;
    min-height: 1.6rem;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0.1rem 0.3rem;
    font-size: 0.86rem;
}

.merkur-table-wrap .sc-checkbox-field__table {
    display: grid;
    place-items: center;
    height: 100%;
}

.merkur-table-wrap .sc-checkbox-field__input.is-table {
    margin: 0;
}

.merkur-table-wrap .sc-text-field__readonly-value.is-table {
    display: block;
    min-height: 0;
    width: 100%;
    padding: 0.16rem 0.35rem;
    background: transparent;
    color: var(--sc-table-readonly-text);
    font-size: 0.86rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merkur-table-wrap .sc-line-table .sc-text-field__input[readonly] {
    color: var(--sc-table-readonly-text);
}

.merkur-table-wrap .sc-line-table .sc-select-field__input.is-table:disabled {
    color: var(--sc-table-readonly-text);
    -webkit-text-fill-color: var(--sc-table-readonly-text);
    opacity: 1;
    pointer-events: none;
}

.merkur-table-wrap .sc-line-table:focus-within td.is-active-cell {
    position: relative;
    background: #fff;
}

.merkur-table-wrap .sc-line-table:focus-within td.is-active-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px #2c6fba;
    pointer-events: none;
}

.merkur-table-wrap .sc-line-table:focus-within td.is-active-cell .sc-text-field__editor.is-table,
.merkur-table-wrap .sc-line-table:focus-within td.is-active-cell .sc-text-field__input.is-table,
.merkur-table-wrap .sc-line-table:focus-within td.is-active-cell .sc-text-field__readonly-value.is-table {
    background: #fff;
}

.merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell,
.merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell .sc-text-field__editor.is-table,
.merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell .sc-text-field__input.is-table,
.merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell .sc-text-field__readonly-value.is-table {
    background: #e1efff;
}

.merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell::after {
    display: none;
}

.merkur-table-wrap .sc-line-table tbody td:hover {
    background: inherit;
}

.merkur-table-wrap .sc-line-table tbody tr:last-child td {
    border-bottom: 0;
}

.merkur-table-wrap .btn.btn-sm {
    padding: 0.18rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 0.2rem;
}

.merkur-table-wrap .btn-outline-secondary {
    border-color: #b8c5d4;
    color: #2f4359;
}

.merkur-table-wrap .btn-primary {
    background: #0f6cbd;
    border-color: #0f6cbd;
}

.mk-card-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--mk-page-bg, #f4f6f9);
    overflow: hidden;
}

.mk-card-header {
    background: #ffffff;
    border-bottom: 1px solid #d7dce2;
    position: relative;
    z-index: 40;
    isolation: isolate;
}

.mk-card-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 40;
}

.mk-card-header-top {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 1rem 0.5rem;
}

.mk-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #1556a5;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.mk-page-header-titles {
    min-width: 0;
}

.mk-caption {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    color: #7f8ba0;
    font-weight: 600;
}

.mk-title {
    margin: 0;
    color: #1d2430;
    font-size: 1.65rem;
    line-height: 1.1;
    min-height: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-action {
    border: 0;
    border-radius: 0.3rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.88rem;
    color: var(--sc-action-text);
    font-family: var(--sc-font-family);
}

.mk-action-secondary {
    background: transparent;
    color: var(--sc-action-text);
}

.mk-action:hover,
.mk-action-secondary:hover {
    background: var(--sc-action-hover);
}

.mk-action-overflow {
    position: relative;
}

.mk-action-overflow--inline {
    flex: 0 0 auto;
}

.mk-action-overflow-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.3rem);
    min-width: 9.5rem;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 0.4rem;
    display: flex;
    flex-direction: column;
    padding: 0.2rem;
    z-index: 6;
}

.mk-action-overflow-menu--left {
    left: 0;
    right: auto;
}

.mk-action-overflow-item {
    background: transparent;
    text-align: left;
    color: var(--sc-action-text);
    font-family: var(--sc-font-family);
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
}

.mk-action-overflow-item:hover {
    background: var(--sc-action-hover);
}

.mk-action-overflow-item:disabled {
    color: var(--sc-disabled);
    opacity: 1;
}

.mk-action-overflow-item:disabled:hover {
    background: transparent;
}

.mk-tab-bar {
    display: flex;
    gap: 0.2rem;
    padding: 0 0.8rem;
    border-bottom: 1px solid #dbe2ec;
}

.mk-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 0.45rem 0.55rem;
    color: #607086;
}

.mk-tab.is-active {
    color: #203850;
    border-bottom-color: #2f6ba8;
    font-weight: 600;
}

.mk-card-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    flex: 1 1 auto;
}

.mk-card-content.has-context {
    grid-template-columns: minmax(0, 1fr) min(var(--mk-context-width, 380px), 400px);
}

.mk-main,
.mk-context {
    min-height: 0;
    overflow: auto;
    padding: 0.7rem;
}

.mk-main {
    background: #ffffff;
}

.mk-context {
    background: #f9fbfd;
    border-left: 1px solid #dce3ed;
    position: relative;
    max-width: 400px;
}

.mk-context-toggle {
    display: none;
}

.mk-card-content.is-context-collapsed {
    grid-template-columns: minmax(0, 1fr) 2.2rem;
}

.mk-context-panel {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 160ms ease, transform 220ms ease;
}

@media (min-width: 980px) {
    .mk-card-content.has-context {
        transition: grid-template-columns 220ms ease;
    }

    .mk-context {
        padding-right: 2rem;
        transition: padding 220ms ease;
    }

    .mk-context-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.35rem;
        right: 0.25rem;
        width: 1.5rem;
        height: 1.5rem;
        border: 1px solid #dce3ed;
        border-radius: 0.25rem;
        background: #fff;
        color: #607086;
        cursor: pointer;
        z-index: 1;
    }

    .mk-context-toggle__arrow {
        display: inline-flex;
        line-height: 1;
    }

    .mk-context-toggle__arrow.is-collapsed {
        transform: rotate(180deg);
    }

    .mk-context-toggle__icon {
        width: 0.95rem;
        height: 0.95rem;
        display: block;
    }

    .mk-card-content.has-context.is-context-collapsed .mk-context {
        padding: 0.35rem 0.25rem;
    }

    .mk-card-content.has-context.is-context-collapsed .mk-context-panel {
        opacity: 0;
        transform: translateX(10px);
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-card-content.has-context,
    .mk-context,
    .mk-context-panel {
        transition-duration: 1ms;
    }
}

.mk-inline-error {
    margin: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #efc4c4;
    background: #fff2f2;
    color: #8e2f2f;
    border-radius: 0.35rem;
}

.sc-section {
    margin-bottom: 0.75rem;
    background: transparent;
}

.sc-section__header {
    border-bottom: 2px solid #2d6aa7;
    padding: 0.2rem 0 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.sc-section__header h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #203850;
}

.mk-section-actions {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
}

.sc-section__toggle {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #203850;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.sc-section__title-text {
    display: inline-block;
}

.sc-section__chevron {
    display: inline-block;
    font-size: 0.82rem;
    line-height: 1;
    transform: rotate(90deg);
    transform-origin: center;
    transition: transform 120ms ease;
}

.sc-section.is-collapsed .sc-section__chevron {
    transform: rotate(0deg);
}

.sc-section__body-shell {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 180ms ease;
}

.sc-section.is-collapsed .sc-section__body-shell {
    grid-template-rows: 0fr;
}

.sc-section__body {
    overflow: hidden;
    padding: 0.55rem 0 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sc-section.is-collapsed .sc-section__body {
    padding-top: 0;
    padding-bottom: 0;
}

.mk-slot-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.55rem;
}

.mk-slot {
    grid-column: span 12;
    min-width: 0;
}

.mk-group-block {
    display: grid;
    gap: 0.5rem;
}

.sc-field-container {
    --sc-field-row-height: 2rem;
    --sc-field-row-gap: 0.45rem;
    --sc-field-row-step: calc(var(--sc-field-row-height) + var(--sc-field-row-gap));
    --sc-field-label-font-size: 0.9rem;
    --sc-field-label-line-height-factor: 1.3;
    --sc-field-label-line-height: calc(var(--sc-field-label-font-size) * var(--sc-field-label-line-height-factor));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    min-width: 0;
}

.sc-field-group__title {
    display: flex;
    align-items: center;
    min-height: 1.9rem;
    color: var(--sc-control-group-title);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.sc-field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    min-width: 0;
    width: 100%;
    color: var(--sc-placeholder-field-text);
    font-size: 0.9rem;
    font-family: var(--sc-font-family);
}

.sc-field--desktop-blank {
    display: none;
}

.sc-field__label {
    color: var(--sc-ink-soft);
    font-weight: 600;
}

.sc-field__dots {
    display: none;
}

.sc-field__content {
    --sc-text-field-height: 2rem;
    min-width: 0;
}

.sc-field .sc-text-field__editor,
.sc-field .sc-select-field__editor {
    display: flex;
    align-items: stretch;
}

.sc-text-field__editor {
    display: grid;
    grid-template-columns: 1fr;
    min-height: var(--sc-text-field-height, 2rem);
    border: 1px solid var(--sc-placeholder-field-border);
    background: var(--sc-control-surface);
    border-radius: 0.1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.sc-text-field__editor.has-lookup {
    grid-template-columns: minmax(0, 1fr) 1.65rem;
}

.sc-text-field__input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--sc-placeholder-row-text);
    font-size: 0.86rem;
    line-height: 1.3;
    padding: 0.28rem 0.4rem;
    font-family: var(--sc-font-family);
}

.sc-text-field__input::placeholder {
    color: var(--sc-ink-muted);
}

.sc-text-field__readonly-value {
    font-size: 0.86rem;
    line-height: 1.3;
    color: var(--sc-ink);
    font-family: var(--sc-font-family);
}

.sc-select-field__editor {
    display: grid;
    grid-template-columns: 1fr;
    min-height: var(--sc-text-field-height, 2rem);
    border: 1px solid var(--sc-placeholder-field-border);
    background: var(--sc-control-surface);
    border-radius: 0.1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.sc-select-field__input {
    width: 100%;
    min-height: var(--sc-text-field-height, 2rem);
    border: 0;
    outline: none;
    background: transparent;
    color: var(--sc-placeholder-row-text);
    font-size: 0.86rem;
    line-height: 1.3;
    padding: 0.18rem 0.35rem;
    box-sizing: border-box;
    font-family: var(--sc-font-family);
}

.sc-field .sc-text-field__input,
.sc-field .sc-select-field__input {
    width: 100%;
}

.sc-field__content.is-readonly .sc-text-field__readonly-value {
    display: flex;
    align-items: center;
    min-height: var(--sc-text-field-height);
    background: var(--sc-control-readonly-bg);
    border: 1px solid transparent;
    border-radius: 0.1rem;
    padding: 0.28rem 0.4rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--sc-table-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-field__content.is-readonly.is-readonly-locked .sc-text-field__readonly-value {
    background: var(--sc-control-surface);
    border: 1px solid var(--sc-placeholder-field-border);
    color: var(--sc-disabled);
}

.sc-field__content.is-readonly .sc-text-field__readonly-value.is-align-left {
    justify-content: flex-start;
    text-align: left;
}

.sc-field__content.is-readonly .sc-text-field__readonly-value.is-align-right {
    justify-content: flex-end;
    text-align: right;
}

.sc-field .sc-checkbox-field__editor {
    min-height: var(--sc-text-field-height);
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 0.1rem;
    padding: 0.28rem 0.45rem;
    box-sizing: border-box;
    font-family: var(--sc-font-family);
}

.sc-field__content.is-readonly:not(.is-readonly-locked) .sc-checkbox-field__editor {
    background: transparent;
}

.sc-field__content.is-readonly .sc-select-field__editor {
    background: var(--sc-control-readonly-bg);
    border: 1px solid transparent;
}

.sc-field__content.is-readonly .sc-select-field__input {
    color: var(--sc-table-text);
}

.sc-field__content.is-readonly .sc-select-field__input.is-align-left {
    text-align: left;
    text-align-last: left;
}

.sc-field__content.is-readonly .sc-select-field__input.is-align-right {
    text-align: right;
    text-align-last: right;
}

.sc-field__content.is-readonly.is-readonly-locked .sc-select-field__editor {
    background: var(--sc-control-surface);
    border: 1px solid var(--sc-placeholder-field-border);
}

.sc-field__content.is-readonly.is-readonly-locked .sc-select-field__input {
    color: var(--sc-disabled);
}

@media (min-width: 980px) {
    .sc-field-container {
        --sc-field-row-height: 1.9rem;
        --sc-field-row-gap: 0.5rem;
        --sc-field-row-step: calc(var(--sc-field-row-height) + var(--sc-field-row-gap));
        grid-auto-flow: column;
        grid-template-rows: repeat(var(--sc-field-flow-rows, 1), minmax(0, auto));
        grid-auto-columns: minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 0.5rem;
    }

    .mk-context .sc-field-container {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-columns: auto;
        column-gap: 0;
        row-gap: 0.5rem;
    }

    .sc-field {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        min-height: 1.9rem;
        min-width: 0;
    }

    .sc-field--desktop-blank {
        display: block;
        min-height: 1.9rem;
    }

    .sc-field__label {
        font-size: var(--sc-field-label-font-size);
        line-height: var(--sc-field-label-line-height);
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }

    .sc-field__dots {
        display: block;
        flex: 1;
        height: 0.32rem;
        background-image: radial-gradient(circle, var(--sc-field-dots, #c3cddd) 1.4px, transparent 1.5px);
        background-size: 7px 3px;
        background-repeat: repeat-x;
        background-position: left center;
        transform: translateY(1px);
    }

    .sc-field__content {
        --sc-text-field-height: 1.8rem;
        flex: 0 0 55%;
        width: 55%;
        max-width: 55%;
        min-width: 0;
    }

    .sc-text-field__readonly-value {
        white-space: nowrap;
        text-align: right;
    }
}

.mk-info-block {
    border: 1px solid #d7e0eb;
    border-radius: 0.45rem;
    background: #fff;
    padding: 0.45rem 0.55rem;
}

.mk-info-block h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: #2d4059;
}

.mk-info-block dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.2rem 0.45rem;
    margin: 0;
}

.mk-info-block dt,
.mk-info-block dd {
    margin: 0;
    font-size: 0.82rem;
}

.mk-info-block dt {
    color: #5d7087;
}

.mk-info-block dd {
    color: #1d2b3b;
}

.mk-info-block dd.is-align-left {
    text-align: left;
}

.mk-info-block dd.is-align-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mk-date-filter-control {
    border: 1px solid #d7e0eb;
    border-radius: 0.45rem;
    background: #fff;
    padding: 0.45rem 0.55rem;
}

.mk-date-filter-control__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.mk-date-filter-control__title {
    margin: 0;
    font-size: 0.9rem;
    color: #2d4059;
}

.mk-date-filter-control__switcher {
    display: grid;
    grid-template-columns: 1.7rem 1fr 1.7rem;
    align-items: center;
    gap: 0.35rem;
}

.mk-date-filter-control__month-button {
    border: 1px solid #c4d2e3;
    border-radius: 0.3rem;
    background: #f4f8fd;
    color: #24415f;
    width: 1.7rem;
    height: 1.7rem;
    line-height: 1;
    padding: 0;
}

.mk-date-filter-control__month-icon {
    width: 1rem;
    height: 1rem;
    display: block;
    margin: 0 auto;
}

.mk-date-filter-control__month-label {
    text-align: center;
    color: #39516b;
    font-size: 0.82rem;
    text-transform: capitalize;
}

.mk-date-filter-control__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
    margin-bottom: 0.2rem;
}

.mk-date-filter-control__weekdays span {
    text-align: center;
    font-size: 0.74rem;
    color: #71869f;
}

.mk-date-filter-control__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
}

.mk-date-filter-control__day {
    border: 1px solid #d5e0ec;
    border-radius: 0.28rem;
    background: #fdfefe;
    color: #2a3f57;
    font-size: 0.74rem;
    line-height: 1;
    min-height: 1.55rem;
    padding: 0.18rem 0;
}

.mk-date-filter-control__day.is-empty {
    border-color: transparent;
    background: transparent;
}

.mk-date-filter-control__day.is-selected {
    background: #2f6daa;
    color: #fff;
    border-color: #2f6daa;
}

.mk-date-filter-control__day.is-colored {
    background: var(--mk-date-filter-day-color);
    border-color: var(--mk-date-filter-day-color);
    color: #fff;
}

.mk-date-filter-control__day.is-colored.is-selected {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.mk-date-filter-control__day.is-today {
    border-color: #8aaed3;
}

.mk-stacked-time-chart {
    border: 1px solid #d7e0eb;
    border-radius: 0.45rem;
    background: #fff;
    padding: 0.55rem 0.6rem 0.45rem;
}

.mk-stacked-time-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.mk-stacked-time-chart__title {
    margin: 0;
    font-size: 0.9rem;
    color: #2d4059;
}

.mk-stacked-time-chart__meta {
    font-size: 0.74rem;
    color: #5f7591;
}

.mk-stacked-time-chart__svg {
    width: 100%;
    height: auto;
    display: block;
}

.mk-stacked-time-chart__grid-line {
    stroke: #e4ecf5;
    stroke-width: 1;
}

.mk-stacked-time-chart__axis {
    stroke: #a8b9cc;
    stroke-width: 1.1;
}

.mk-stacked-time-chart__y-label {
    fill: #5f7490;
    font-size: 12px;
    text-anchor: end;
    dominant-baseline: middle;
}

.mk-stacked-time-chart__x-label {
    fill: #526983;
    font-size: 12px;
    text-anchor: middle;
}

.mk-stacked-time-chart__x-label.is-rotated {
    text-anchor: end;
}

.mk-stacked-time-chart__bar-segment {
    opacity: 0.94;
}

.mk-stacked-time-chart__bar-segment:hover {
    opacity: 1;
}

.mk-stacked-time-chart__bar-segment.is-clickable {
    cursor: pointer;
}

.mk-stacked-time-chart__legend {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
}

.mk-stacked-time-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #304760;
    font-size: 0.78rem;
}

.mk-stacked-time-chart__legend-item i {
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 0.15rem;
    display: inline-block;
}

.mk-stacked-time-chart__empty {
    border: 1px dashed #c7d5e5;
    border-radius: 0.35rem;
    padding: 1rem;
    color: #5e7591;
    text-align: center;
    font-size: 0.84rem;
}

.mk-dashbox-container {
    width: 100%;
}

.mk-dashbox-container__header {
    margin-bottom: 0.35rem;
}

.mk-dashbox-container__title {
    margin: 0;
    font-size: 0.9rem;
    color: #2d4059;
}

.mk-dashbox-container__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mk-dashbox {
    --mk-dashbox-bg: #2f6daa;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(21, 42, 66, 0.18);
    border-radius: 0.45rem;
    background: var(--mk-dashbox-bg);
    color: #f5f9ff;
    padding: 0.5rem 0.55rem;
    display: grid;
    grid-template-rows: 1fr auto auto auto;
    text-align: left;
}

button.mk-dashbox {
    appearance: none;
    cursor: pointer;
}

.mk-dashbox__title {
    min-height: 58px;
}

.mk-dashbox__title-line {
    font-size: 0.74rem;
    line-height: 1.2;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mk-dashbox__value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.15rem;
}

.mk-dashbox__divider {
    height: 1px;
    background: rgba(244, 248, 255, 0.58);
    margin: 0.3rem 0 0.2rem;
}

.mk-dashbox__footer {
    min-height: 1rem;
    display: flex;
    align-items: center;
}

.mk-dashbox__chevron {
    display: inline-flex;
    line-height: 1;
}

.mk-dashbox__chevron-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.mk-dashbox-container__empty {
    border: 1px dashed #c7d5e5;
    border-radius: 0.35rem;
    padding: 0.8rem;
    color: #5e7591;
    font-size: 0.84rem;
}

.mk-error-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(14, 25, 40, 0.45);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mk-error-modal__dialog {
    width: min(30rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 0.45rem;
    box-shadow: 0 14px 38px rgba(10, 24, 44, 0.24);
    padding: 0.9rem;
}

.mk-error-modal__title {
    margin: 0;
    font-size: 1rem;
    color: #213851;
}

.mk-error-modal__message {
    margin: 0.55rem 0 0;
    color: #314960;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.mk-error-modal__actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
}

.mk-error-modal__button {
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #f7faff;
    color: #24415f;
    padding: 0.3rem 0.6rem;
    font-size: 0.86rem;
}

.mk-confirm-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(14, 25, 40, 0.45);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mk-confirm-modal__dialog {
    width: min(30rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 0.45rem;
    box-shadow: 0 14px 38px rgba(10, 24, 44, 0.24);
    padding: 0.9rem;
}

.mk-confirm-modal__title {
    margin: 0;
    font-size: 1rem;
    color: #213851;
}

.mk-confirm-modal__message {
    margin: 0.55rem 0 0;
    color: #314960;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.mk-confirm-modal__actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.mk-confirm-modal__button {
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #f7faff;
    color: #24415f;
    padding: 0.3rem 0.6rem;
    font-size: 0.86rem;
}

.mk-confirm-modal__button.is-primary {
    background: #edf4ff;
    border-color: #b5cbe8;
    color: #1f466f;
}

.mk-filter-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(14, 25, 40, 0.45);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mk-filter-modal__dialog {
    width: min(32rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 0.45rem;
    box-shadow: 0 14px 38px rgba(10, 24, 44, 0.24);
    padding: 0.9rem;
}

.mk-filter-modal__dialog--table {
    width: min(42rem, calc(100vw - 2rem));
}

.mk-filter-modal__title {
    margin: 0;
    font-size: 1rem;
    color: #213851;
}

.mk-filter-modal__table {
    margin-top: 0.75rem;
    max-height: min(55vh, 28rem);
    overflow: auto;
    border: 1px solid #d8e0ea;
    border-radius: 0.3rem;
}

.mk-filter-modal__table-host {
    margin-top: 0.75rem;
    max-height: min(62vh, 34rem);
    overflow: auto;
    border: 1px solid #d8e0ea;
    border-radius: 0.3rem;
    padding: 0.35rem;
}

.mk-filter-modal__table-host .merkur-table-wrap .sc-line-table {
    min-width: 0;
    width: 100%;
}

.mk-filter-modal__table-host .merkur-table-wrap .sc-line-table .sc-line-table__pointer-col {
    width: 2rem;
}

.mk-filter-modal__toolbar {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-start;
}

.mk-filter-modal__grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.mk-filter-modal__grid th,
.mk-filter-modal__grid td {
    border-bottom: 1px solid #e1e8f0;
    padding: 0.45rem 0.5rem;
    vertical-align: middle;
}

.mk-filter-modal__grid thead th {
    position: sticky;
    top: 0;
    background: #f4f8fc;
    color: #29435a;
    font-weight: 600;
    z-index: 1;
}

.mk-filter-modal__input {
    width: 100%;
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    color: #1f3449;
    background: #fff;
}

.mk-filter-modal__table .mk-filter-modal__input {
    margin-top: 0;
}

.mk-filter-modal__lookup-button {
    width: 100%;
    text-align: left;
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #fff;
    color: #1f3449;
    padding: 0.35rem 0.45rem;
    font-size: 0.86rem;
}

.mk-filter-modal__remove-button {
    border: 1px solid #d7b8b8;
    border-radius: 0.3rem;
    background: #fff6f6;
    color: #8a3b3b;
    padding: 0.26rem 0.45rem;
    font-size: 0.8rem;
}

.mk-filter-modal__empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
    color: #4a6278;
    font-size: 0.86rem;
}

.mk-filter-modal__lookup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(14, 25, 40, 0.35);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mk-filter-modal__lookup-dialog {
    width: min(28rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 0.45rem;
    box-shadow: 0 14px 38px rgba(10, 24, 44, 0.24);
    padding: 0.9rem;
}

.mk-filter-modal__lookup-title {
    margin: 0 0 0.55rem 0;
    font-size: 0.95rem;
    color: #213851;
}

.mk-filter-modal__lookup-list {
    margin-top: 0.5rem;
    max-height: min(42vh, 20rem);
    overflow: auto;
    border: 1px solid #d8e0ea;
    border-radius: 0.3rem;
}

.mk-filter-modal__lookup-item {
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e6edf5;
    background: #fff;
    color: #1f3449;
    padding: 0.42rem 0.5rem;
    font-size: 0.86rem;
}

.mk-filter-modal__lookup-item:last-child {
    border-bottom: 0;
}

.mk-filter-modal__lookup-item:hover {
    background: #f4f8fc;
}

.mk-filter-modal__actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.mk-filter-modal__button {
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #f7faff;
    color: #24415f;
    padding: 0.3rem 0.6rem;
    font-size: 0.86rem;
}

.mk-filter-modal__button.is-primary {
    background: #edf4ff;
    border-color: #b5cbe8;
    color: #1f466f;
}

.mk-lookup-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(14, 25, 40, 0.45);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.mk-lookup-modal__dialog {
    width: min(54rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 0.45rem;
    box-shadow: 0 14px 38px rgba(10, 24, 44, 0.24);
    padding: 0.9rem;
}

.mk-lookup-modal__title {
    margin: 0;
    font-size: 1rem;
    color: #213851;
}

.mk-lookup-modal__table-wrap {
    margin-top: 0.75rem;
    max-height: min(58vh, 30rem);
    overflow: auto;
    border: 1px solid #d8e0ea;
}

.mk-lookup-modal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.mk-lookup-modal__table th,
.mk-lookup-modal__table td {
    text-align: left;
    padding: 0.38rem 0.52rem;
    border-bottom: 1px solid #e6edf5;
    white-space: nowrap;
}

.mk-lookup-modal__table thead th {
    position: sticky;
    top: 0;
    background: #f4f8fd;
    color: #2a425d;
    font-weight: 600;
}

.mk-lookup-modal__table tbody tr {
    cursor: pointer;
}

.mk-lookup-modal__table tbody tr.is-selected {
    background: #eaf2ff;
}

.mk-lookup-modal__actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.mk-lookup-modal__button {
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #f7faff;
    color: #24415f;
    padding: 0.3rem 0.6rem;
    font-size: 0.86rem;
}

.mk-lookup-modal__button.is-primary {
    background: #edf4ff;
    border-color: #b5cbe8;
    color: #1f466f;
}

.mk-worksheet-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 31, 46, 0.42);
    padding: 1rem;
}

.mk-worksheet-modal__dialog {
    width: min(1100px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #f7f9fc;
    border: 1px solid #b8c4d6;
    border-radius: 0.35rem;
    box-shadow: 0 18px 44px rgba(9, 21, 38, 0.28);
}

.mk-worksheet-modal__header {
    padding: 0.9rem 0.9rem 0;
}

.mk-worksheet-modal__body {
    padding: 0 0.9rem 0.9rem;
}

.mk-worksheet-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.85rem 0.9rem 0.9rem;
    border-top: 1px solid #d5deea;
    background: #f9fbfe;
}

.mk-worksheet-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #f7faff;
    color: #24415f;
    padding: 0.34rem 0.72rem;
    font-size: 0.86rem;
}

.mk-worksheet-modal__button.is-primary {
    background: #edf4ff;
    border-color: #b5cbe8;
    color: #1f466f;
}

.mk-longtext-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    background: rgba(21, 31, 46, 0.42);
    padding: 1rem;
}

.mk-longtext-modal__dialog {
    width: min(900px, 100%);
    max-height: calc(100vh - 2rem);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.75rem;
    background: #f7f9fc;
    border: 1px solid #b8c4d6;
    border-radius: 0.35rem;
    box-shadow: 0 18px 44px rgba(9, 21, 38, 0.28);
    padding: 1rem;
}

.mk-longtext-modal__title {
    margin: 0;
    font-size: 1rem;
    color: #1f466f;
}

.mk-longtext-modal__textarea {
    width: 100%;
    min-height: 14rem;
    height: 100%;
    resize: vertical;
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #fff;
    color: #1f2a37;
    font: inherit;
    line-height: 1.35;
    padding: 0.55rem 0.65rem;
}

.mk-longtext-modal__textarea:read-only {
    background: #eef3fa;
    color: #4f5f72;
}

.mk-longtext-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

.mk-longtext-modal__button {
    border: 1px solid #c8d4e2;
    border-radius: 0.3rem;
    background: #f7faff;
    color: #24415f;
    padding: 0.34rem 0.72rem;
    min-width: 8rem;
    font-size: 0.86rem;
}

.mk-longtext-modal__button.is-primary {
    background: #edf4ff;
    border-color: #b5cbe8;
    color: #1f466f;
}

[data-theme="dark"] .mk-card-page {
    background: #1a2332;
}

[data-theme="dark"] .mk-card-header {
    background: #1a2330;
    border-bottom-color: #364556;
}

[data-theme="dark"] .mk-caption {
    color: #91a4bc;
}

[data-theme="dark"] .mk-title {
    color: #e2ebf5;
}

[data-theme="dark"] .mk-tab-bar {
    border-bottom-color: #364556;
}

[data-theme="dark"] .mk-tab {
    color: #9db0c7;
}

[data-theme="dark"] .mk-tab.is-active {
    color: #dbe7f4;
    border-bottom-color: #6fa7e6;
}

[data-theme="dark"] .mk-main {
    background: #1a2332;
}

[data-theme="dark"] .mk-context {
    background: #1a2332;
    border-left-color: #364556;
}

[data-theme="dark"] .sc-field .sc-text-field__editor,
[data-theme="dark"] .sc-field .sc-select-field__editor,
[data-theme="dark"] .sc-field .sc-text-field__input,
[data-theme="dark"] .sc-field .sc-select-field__input {
    background: #1a2332;
    border-color: #3f5065;
}

[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-locked .sc-text-field__readonly-value,
[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-locked .sc-select-field__editor,
[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-locked .sc-select-field__input,
[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-locked .sc-checkbox-field__editor {
    background: #1a2332;
    border-color: #223041;
}

[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-nonedit .sc-text-field__readonly-value,
[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-nonedit .sc-select-field__editor,
[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-nonedit .sc-select-field__input,
[data-theme="dark"] .sc-field__content.is-readonly.is-readonly-nonedit .sc-checkbox-field__editor {
    background: #263246;
    border-color: #263246;
}

[data-theme="dark"] .mk-context-toggle {
    border-color: #415266;
    background: #243041;
    color: #a9bed8;
}

[data-theme="dark"] .sc-section__header {
    border-bottom-color: #4f7fb2;
}

[data-theme="dark"] .sc-section__header h2,
[data-theme="dark"] .sc-section__toggle {
    color: #dbe7f4;
}

[data-theme="dark"] .mk-inline-error {
    border-color: #7c3c3c;
    background: #3a2222;
    color: #f1caca;
}

[data-theme="dark"] .mk-info-block {
    border-color: #3a4a5e;
    background: #1d2734;
}

[data-theme="dark"] .mk-info-block h4 {
    color: #d6e4f4;
}

[data-theme="dark"] .mk-info-block dt {
    color: #98afc9;
}

[data-theme="dark"] .mk-info-block dd {
    color: #dce8f6;
}

[data-theme="dark"] .mk-date-filter-control {
    border-color: #3a4a5e;
    background: #1d2734;
}

[data-theme="dark"] .mk-date-filter-control__title {
    color: #d6e4f4;
}

[data-theme="dark"] .mk-date-filter-control__month-button {
    border-color: #4c627a;
    background: #2a3a4e;
    color: #dce8f6;
}

[data-theme="dark"] .mk-date-filter-control__month-label {
    color: #b8cae0;
}

[data-theme="dark"] .mk-date-filter-control__weekdays span {
    color: #8fa4bd;
}

[data-theme="dark"] .mk-date-filter-control__day {
    border-color: #445a72;
    background: #223041;
    color: #dce8f6;
}

[data-theme="dark"] .mk-date-filter-control__day.is-empty {
    border-color: transparent;
    background: transparent;
}

[data-theme="dark"] .mk-date-filter-control__day.is-selected {
    border-color: #5497d6;
    background: #3d78b2;
}

[data-theme="dark"] .mk-date-filter-control__day.is-colored {
    background: var(--mk-date-filter-day-color);
    border-color: var(--mk-date-filter-day-color);
    color: #eef7ef;
}

[data-theme="dark"] .mk-date-filter-control__day.is-colored.is-selected {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .mk-date-filter-control__day.is-today {
    border-color: #7fa9d4;
}

[data-theme="dark"] .mk-stacked-time-chart {
    border-color: #3a4a5e;
    background: #1d2734;
}

[data-theme="dark"] .mk-stacked-time-chart__title {
    color: #d6e4f4;
}

[data-theme="dark"] .mk-stacked-time-chart__meta {
    color: #9eb3cb;
}

[data-theme="dark"] .mk-stacked-time-chart__grid-line {
    stroke: #32465d;
}

[data-theme="dark"] .mk-stacked-time-chart__axis {
    stroke: #66819f;
}

[data-theme="dark"] .mk-stacked-time-chart__y-label,
[data-theme="dark"] .mk-stacked-time-chart__x-label {
    fill: #9eb4cb;
}

[data-theme="dark"] .mk-stacked-time-chart__legend-item {
    color: #d2e1f2;
}

[data-theme="dark"] .mk-stacked-time-chart__empty {
    border-color: #45607d;
    color: #a5bad1;
}

[data-theme="dark"] .mk-dashbox-container__title {
    color: #d6e4f4;
}

[data-theme="dark"] .mk-dashbox {
    border-color: rgba(166, 190, 216, 0.22);
}

[data-theme="dark"] .mk-dashbox-container__empty {
    border-color: #45607d;
    color: #a5bad1;
}

[data-theme="dark"] .merkur-table-wrap .sc-table-container {
    background: #1a2332;
    border-color: #3c4c61;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table {
    color: #dbe7f4;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table th,
[data-theme="dark"] .merkur-table-wrap .sc-line-table td {
    border-color: #45566c;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table thead th {
    background: #2a3748;
    color: #c2d2e6;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table .sc-line-table__resize-handle::before {
    background: #8fa8c5;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table tbody tr,
[data-theme="dark"] .merkur-table-wrap .sc-line-table tbody tr.is-empty-row td {
    background: #1a2332;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table tbody tr.is-current td,
[data-theme="dark"] .merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell,
[data-theme="dark"] .merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell .sc-text-field__editor.is-table,
[data-theme="dark"] .merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell .sc-text-field__input.is-table,
[data-theme="dark"] .merkur-table-wrap .sc-line-table.is-readonly td.is-active-cell .sc-text-field__readonly-value.is-table {
    background: #273648;
}

[data-theme="dark"] .merkur-table-wrap .sc-line-table:focus-within td.is-active-cell,
[data-theme="dark"] .merkur-table-wrap .sc-line-table:focus-within td.is-active-cell .sc-text-field__editor.is-table,
[data-theme="dark"] .merkur-table-wrap .sc-line-table:focus-within td.is-active-cell .sc-text-field__input.is-table,
[data-theme="dark"] .merkur-table-wrap .sc-line-table:focus-within td.is-active-cell .sc-text-field__readonly-value.is-table {
    background: #243243;
}

[data-theme="dark"] .mk-error-modal__backdrop,
[data-theme="dark"] .mk-confirm-modal__backdrop,
[data-theme="dark"] .mk-filter-modal__backdrop,
[data-theme="dark"] .mk-filter-modal__lookup-backdrop,
[data-theme="dark"] .mk-lookup-modal__backdrop,
[data-theme="dark"] .mk-worksheet-modal__backdrop,
[data-theme="dark"] .mk-longtext-modal__backdrop {
    background: rgba(4, 10, 18, 0.72);
}

[data-theme="dark"] .mk-error-modal__dialog,
[data-theme="dark"] .mk-confirm-modal__dialog,
[data-theme="dark"] .mk-filter-modal__dialog,
[data-theme="dark"] .mk-filter-modal__lookup-dialog,
[data-theme="dark"] .mk-lookup-modal__dialog,
[data-theme="dark"] .mk-worksheet-modal__dialog,
[data-theme="dark"] .mk-longtext-modal__dialog {
    background: #243142;
    border-color: #5a6f89;
    box-shadow: 0 24px 58px rgba(2, 6, 12, 0.68);
}

[data-theme="dark"] .mk-error-modal__title,
[data-theme="dark"] .mk-confirm-modal__title,
[data-theme="dark"] .mk-filter-modal__title,
[data-theme="dark"] .mk-filter-modal__lookup-title,
[data-theme="dark"] .mk-lookup-modal__title,
[data-theme="dark"] .mk-longtext-modal__title {
    color: #dce8f6;
}

[data-theme="dark"] .mk-error-modal__message,
[data-theme="dark"] .mk-confirm-modal__message,
[data-theme="dark"] .mk-filter-modal__empty {
    color: #a8b9ce;
}

[data-theme="dark"] .mk-filter-modal__table,
[data-theme="dark"] .mk-filter-modal__table-host,
[data-theme="dark"] .mk-filter-modal__lookup-list,
[data-theme="dark"] .mk-lookup-modal__table-wrap {
    border-color: #3b4b5f;
}

[data-theme="dark"] .mk-filter-modal__grid thead th,
[data-theme="dark"] .mk-lookup-modal__table thead th {
    background: #2a3748;
    color: #c2d2e6;
}

[data-theme="dark"] .mk-filter-modal__grid th,
[data-theme="dark"] .mk-filter-modal__grid td,
[data-theme="dark"] .mk-lookup-modal__table th,
[data-theme="dark"] .mk-lookup-modal__table td,
[data-theme="dark"] .mk-filter-modal__lookup-item {
    border-bottom-color: #3a4a5e;
    color: #dbe7f4;
    background: #1b2430;
}

[data-theme="dark"] .mk-filter-modal__lookup-item:hover,
[data-theme="dark"] .mk-lookup-modal__table tbody tr.is-selected {
    background: #2a3748;
}

[data-theme="dark"] .mk-filter-modal__input,
[data-theme="dark"] .mk-filter-modal__lookup-button,
[data-theme="dark"] .mk-longtext-modal__textarea {
    border-color: #4a5c73;
    background: #222d3b;
    color: #dbe7f4;
}

[data-theme="dark"] .mk-longtext-modal__textarea:read-only {
    background: #263241;
    color: #b9c9dc;
}

[data-theme="dark"] .mk-error-modal__button,
[data-theme="dark"] .mk-confirm-modal__button,
[data-theme="dark"] .mk-filter-modal__button,
[data-theme="dark"] .mk-lookup-modal__button,
[data-theme="dark"] .mk-worksheet-modal__button,
[data-theme="dark"] .mk-longtext-modal__button {
    border-color: #4a5c73;
    background: #273648;
    color: #cce0f8;
}

[data-theme="dark"] .mk-confirm-modal__button.is-primary,
[data-theme="dark"] .mk-filter-modal__button.is-primary,
[data-theme="dark"] .mk-lookup-modal__button.is-primary,
[data-theme="dark"] .mk-worksheet-modal__button.is-primary,
[data-theme="dark"] .mk-longtext-modal__button.is-primary {
    border-color: #5e83af;
    background: #325276;
    color: #e8f2ff;
}

[data-theme="dark"] .mk-worksheet-modal__actions {
    border-top-color: #3b4b5f;
    background: #17212e;
}

@media (max-width: 980px) {
    .mk-card-content.has-context,
    .mk-card-content.no-context,
    .mk-card-content.has-context.is-context-collapsed {
        grid-template-columns: minmax(0, 1fr);
        overflow: auto;
    }

    .mk-main,
    .mk-context {
        overflow: visible;
        min-height: auto;
    }

    .mk-context {
        max-width: none;
        width: 100%;
        border-left: 0;
        border-top: 1px solid #dce3ed;
    }

    [data-theme="dark"] .mk-context {
        border-top-color: #364556;
    }

}

@media (max-width: 640px) {
}
