body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 10px;
    margin: 0;
    padding: 0;
}

:root {
    --mwk-header-height: 48px;
    --mwk-theme-primary-dark: #37474f;
    --mwk-link-color: color-mix(in srgb, var(--mwk-theme-primary-dark) 75%, #102b3a);
    --mwk-link-hover-color: color-mix(in srgb, var(--mwk-link-color) 80%, #000000);
    --mwk-link-visited-color: color-mix(in srgb, var(--mwk-link-color) 92%, #443754);
    --mwk-header-background: var(--mwk-theme-primary-dark);
    --mwk-navigation-indicator: color-mix(in srgb, var(--mwk-theme-primary-dark) 34%, #ffffff);
    --mwk-navigation-text: color-mix(in srgb, var(--mwk-theme-primary-dark) 16%, #ffffff);
    --mwk-navigation-font-size: 0.75rem;
    --mwk-navigation-item-height: 32px;
    --mwk-navigation-panel-width: 300px;
    --mwk-secondary-tab-font-size: 10px;
    --mwk-portlet-tabs-height: 32px;
    --mwk-portlet-tabs-return-slot: 34px;
    --mwk-state-attention-background: color-mix(in srgb, #f3cdab var(--mwk-table-state-opacity), transparent);
    --mwk-state-danger-background: color-mix(in srgb, #edbcc1 var(--mwk-table-state-opacity), transparent);
    --mwk-state-info-background: color-mix(in srgb, #c2e1ee var(--mwk-table-state-opacity), transparent);
    --mwk-state-neutral-background: color-mix(in srgb, #d3dbe0 var(--mwk-table-state-opacity), transparent);
    --mwk-state-overdue-background: color-mix(in srgb, #e1a2aa var(--mwk-table-state-opacity), transparent);
    --mwk-state-success-background: color-mix(in srgb, #c5e4cc var(--mwk-table-state-opacity), transparent);
    --mwk-state-warning-background: color-mix(in srgb, #ffe699 var(--mwk-table-state-opacity), transparent);
    --mwk-portlet-context-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 88%, #ffffff);
    --mwk-portlet-context-color: #f8fbfc;
    --mwk-portlet-context-muted-color: color-mix(in srgb, var(--mwk-theme-primary-dark) 16%, #ffffff);
    --mwk-section-header-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 34%, #ffffff);
    --mwk-section-header-color: var(--mwk-theme-primary-dark);
    --mwk-table-empty-color: color-mix(in srgb, var(--mwk-theme-primary-dark) 76%, #333333);
    --mwk-table-header-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 20%, #ffffff);
    --mwk-table-header-border: color-mix(in srgb, var(--mwk-theme-primary-dark) 42%, #ffffff);
    --mwk-table-header-color: var(--mwk-theme-primary-dark);
    --mwk-table-row-border: color-mix(in srgb, var(--mwk-theme-primary-dark) 11%, #ffffff);
    --mwk-workspace-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 3%, #ffffff);
    --mwk-card-surface: #ffffff;
    --mwk-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --mwk-component-surface: var(--mwk-card-surface);
    --mwk-component-border: color-mix(in srgb, var(--mwk-table-accent, #2b8ca5) 16%, #dce5e9);
    --mwk-component-title-background: color-mix(in srgb, var(--mwk-section-header-background) 84%, var(--mwk-component-surface));
    --mwk-table-stripe-background: color-mix(in srgb, var(--mwk-table-accent, #2b8ca5) 4%, #ffffff);
    --mwk-table-hover-background: color-mix(in srgb, var(--mwk-table-accent, #2b8ca5) 12%, #ffffff);
    --mwk-table-state-opacity: 70%;
    --mwk-table-stripe-overlay: rgba(0, 0, 0, 0.05);
    --mwk-form-label-color: color-mix(in srgb, var(--mwk-table-header-color) 84%, #ffffff);
    --mwk-form-control-background: color-mix(in srgb, var(--mwk-table-accent, #2b8ca5) 2%, #ffffff);
    --mwk-form-control-height: 30px;
    --mwk-form-control-inline-padding: 8px;
    --mwk-form-focus-ring: color-mix(in srgb, var(--mwk-table-accent, #2b8ca5) 24%, transparent);
    --mwk-dialog-overlay-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 36%, rgba(0, 0, 0, 0.58));
    --mwk-dialog-frame-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 6%, #ffffff);
    --mwk-dialog-surface-background: #ffffff;
    --mwk-dialog-border: color-mix(in srgb, var(--mwk-theme-primary-dark) 24%, #ffffff);
    --mwk-dialog-title-background: color-mix(in srgb, var(--mwk-theme-primary-dark) 20%, #ffffff);
    --mwk-dialog-title-color: var(--mwk-theme-primary-dark);
    --mwk-dialog-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.mwk-file-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 560px);
    min-height: var(--mwk-form-control-height);
}

.mwk-file-selector__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.mwk-file-selector__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: var(--mwk-form-control-height);
    padding: 0 12px;
    border: 1px solid var(--mwk-table-accent, #2b8ca5);
    border-radius: 4px;
    background: var(--mwk-table-accent, #2b8ca5);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.mwk-file-selector__button:hover {
    background: color-mix(in srgb, var(--mwk-table-accent, #2b8ca5) 84%, #000000);
}

.mwk-file-selector__input:focus-visible + .mwk-file-selector__button {
    outline: 3px solid var(--mwk-form-focus-ring);
    outline-offset: 2px;
}

.mwk-file-selector__summary {
    min-width: 0;
    overflow: hidden;
    color: var(--mwk-form-label-color);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#superset-container {
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 600px;
}

#superset-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.superset-dashboard-container {
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 600px;
}

.superset-dashboard-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.toolbar-img {
    display: inline-flex;
    background: var(--mwk-component-title-background);
    width: 100%;
    border-style: groove;
    border-width: thin !important;
    margin-top: 1px;
    margin-bottom: 2px;
    padding: 2px;
}

.toolbar-img-legend {
    font-size: 0.8em;
    border-style: inset;
    background: var(--mwk-form-control-background);
    padding: 3px;
    border-width: thin;
}

.toolbar-img-btn-grey {
    margin: 2px;
    color: #444 !important;
}

.mwk-image-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 3px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.mwk-data-table th.mwk-preview-column,
.mwk-data-table td:has(.mwk-image-preview-button) {
    box-sizing: border-box;
    width: 3.5rem !important;
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    text-align: center !important;
}

.mwk-data-table td:has(.mwk-image-preview-button) .mwk-image-preview-button {
    margin-inline: auto;
}

.mwk-image-preview-button:hover,
.mwk-image-preview-button:focus-visible {
    background: rgba(127, 127, 127, 0.2);
    outline: 1px solid currentColor;
}

.mwk-image-preview-dialog {
    width: min(94vw, 1100px);
    max-width: none;
    max-height: 94vh;
    padding: 0;
    border: 1px solid var(--mwk-dialog-border);
    border-radius: 6px;
    background: var(--mwk-dialog-surface-background);
    color: var(--mwk-dialog-title-color);
    box-shadow: var(--mwk-dialog-shadow);
}

.mwk-image-preview-dialog::backdrop {
    background: var(--mwk-dialog-overlay-background);
}

.mwk-file-quick-preview {
    position: fixed;
    top: 78px;
    right: 12px;
    z-index: 10000;
    width: min(240px, 30vw);
    max-height: 32vh;
    padding: 0;
    border: 0;
    background: white;
    pointer-events: none;
}

.mwk-file-quick-preview[hidden] {
    display: none;
}

.mwk-file-quick-preview img {
    display: block;
    width: 100%;
    max-height: 32vh;
    object-fit: contain;
    object-position: top right;
}

.mwk-file-quick-preview span {
    display: block;
    padding: 0.65rem 0.8rem;
    color: #444;
    font-size: 0.85rem;
    text-align: center;
}

.mwk-image-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--mwk-dialog-border);
    background: var(--mwk-dialog-title-background);
    color: var(--mwk-dialog-title-color);
    font-weight: bold;
}

.mwk-image-preview-close {
    padding: 0.25rem 0.5rem;
    border: 0;
    color: var(--mwk-dialog-title-color);
    background: transparent;
    cursor: pointer;
}

.mwk-image-preview-content {
    display: grid;
    place-items: center;
    min-height: 160px;
    max-height: calc(94vh - 42px);
    overflow: auto;
    background: #202020;
}

.mwk-image-preview-content img {
    display: block;
    max-width: 100%;
    max-height: calc(94vh - 42px);
    object-fit: contain;
}

.mwk-image-preview-content iframe {
    display: block;
    width: 100%;
    height: calc(94vh - 42px);
    min-height: 70vh;
    border: 0;
    background: white;
}

.mwk-image-preview-content [hidden] {
    display: none !important;
}

.mwk-info-table {
    white-space: pre-wrap;
}

.resaltadotabletd {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 10px;
    padding-right: 10px;
    color: papayawhip;
    background-color: #1e2a38b0;
}

.suggestions {
    min-height: 0;
    padding-top: 4px;
    font-size: smaller;
    color: var(--mwk-section-header-color);
    text-wrap: wrap;
    border: 1px solid var(--mwk-component-border);
    margin-top: 2px;
    padding-left: 4px;
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 7%, #ffffff);
}

.suggestions:empty {
    display: none;
}

.mwk-form-table {
    table-layout: fixed;
}

.mwk-html-form-container,
.mwk-html-form,
.mwk-form,
.mwk-html-form-table,
.mwk-info-table {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.mwk-html-form-table input,
.mwk-html-form-table select,
.mwk-html-form-table textarea,
.mwk-info-table input,
.mwk-info-table select,
.mwk-info-table textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

/*
 * MwkTable/JSONTable y HtmlForm/MwkForm conservan implementaciones distintas,
 * pero exponen los mismos roles visuales. Así una paleta cambia el aspecto de
 * ambos componentes sin duplicar reglas ni tocar los colores semánticos de las
 * filas (cumplimiento, alerta y vencimiento).
 */
.mwk-component-title {
    box-sizing: border-box;
    min-height: 26px !important;
    padding: 5px 8px !important;
    background: var(--mwk-component-title-background) !important;
    color: var(--mwk-section-header-color) !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.25;
}

div.mwk-component-title {
    display: flex;
    align-items: center;
}

td.mwk-component-title {
    vertical-align: middle !important;
}

div.mwk-component-title > .download-icon {
    align-self: center;
    float: none !important;
    margin-left: auto !important;
}

.mwk-table-download-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    margin-right: 0 !important;
    min-height: 22px;
    min-width: 24px;
    padding: 2px 4px;
}

.mwk-table-download-button:hover,
.mwk-table-download-button:focus-visible {
    background: color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 3px;
    outline: 1px solid color-mix(in srgb, currentColor 42%, transparent);
}

.mwk-cell-text-content {
    font: inherit;
    line-height: inherit;
    min-width: 0;
}
table.mwk-data-table > tbody > tr > td[data-mwk-text-cell="true"] { position: relative; }
table.mwk-data-table > tbody > tr > [data-mwk-text-zoom-source="true"] {
    outline: 2px solid var(--mwk-link-color, #25758a);
    outline-offset: -2px;
}

@media (min-width: 651px) {
    table.mwk-data-table:not(.mwk-table-compact):not([data-mwk-cell-text-expanded="true"]) > tbody > tr > td > .mwk-cell-text-content {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: var(--mwk-cell-text-lines, 6);
        overflow: hidden;
    }
    table.mwk-data-table:not(.mwk-table-compact) > tbody > tr > td[data-mwk-text-truncated="true"] > .mwk-cell-text-content {
        padding-right: 12px;
    }
}

.mwk-cell-text-more {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--mwk-link-color);
    cursor: zoom-in;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    opacity: .75;
}
.mwk-cell-text-more:hover, .mwk-cell-text-more:focus-visible { opacity: 1; }
.mwk-cell-text-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mwk-cell-text-more[hidden], .mwk-cell-text-toggle[hidden],
.mwk-table-compact .mwk-cell-text-more { display: none !important; }
@media (max-width: 650px) {
    .mwk-cell-text-more, .mwk-cell-text-toggle { display: none !important; }
}
.mwk-table-title > .mwk-cell-text-toggle { margin-left: auto; min-width: 24px; min-height: 22px; }
.mwk-table-title > .mwk-cell-text-toggle:not([hidden]) ~ .mwk-responsive-table-toggle { margin-left: 4px; }
.mwk-table-title > .mwk-cell-text-toggle:not([hidden]) ~ .download-icon { margin-left: 4px !important; }
.mwk-table-surface > .mwk-table-title.mwk-text-title-active {
    height: auto !important;
    min-height: 26px !important;
    padding: 1px 6px !important;
}

/* A non-modal, pointer-transparent lens: moving across cells keeps working.
   Manual popover uses the top layer where supported, including inside dialogs. */
.mwk-cell-text-popup {
    position: fixed;
    inset: auto;
    z-index: 2147483646;
    background: var(--mwk-dialog-surface-background, #fff);
    color: var(--mwk-text-color, #243746);
    border: 1px solid var(--mwk-dialog-border, #bbcbd2);
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(20, 40, 50, .22);
    box-sizing: border-box;
    pointer-events: none;
    padding: 0;
    margin: 0;
    max-width: calc(100vw - 24px);
}
.mwk-cell-text-popup[hidden] { display: none !important; }
.mwk-cell-text-popup::backdrop { background: transparent; pointer-events: none; }
.mwk-cell-text-reader-body {
    box-sizing: border-box;
    font: inherit;
    line-height: 1.4;
    overflow: auto;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
    padding: 10px 12px;
    white-space: pre-wrap;
}
@media print {
    .mwk-cell-text-content {
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }
    [data-mwk-text-zoom-source="true"] { outline: none !important; }
    .mwk-cell-text-more, .mwk-cell-text-toggle, .mwk-cell-text-popup { display: none !important; }
}

.mwk-table-content[hidden],
.mwk-form-content[hidden],
.mwk-table-component[data-mwk-table-collapsed='true'] > .mwk-table-actions {
    display: none !important;
}

.mwk-form-collapse-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mwk-form-plain-text [name^='label_'] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}

.mwk-table-title.mwk-collapsible-title {
    height: auto !important;
    min-height: 26px !important;
    padding: 1px 6px !important;
}

.mwk-table-collapse-toggle {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mwk-table-collapse-toggle > i {
    flex: 0 0 16px;
    text-align: center;
}

/* Highlight the whole title band; do not draw a separate rectangle inside it.
   Direct-child matching keeps downloads, row toggles and nested tables independent. */
.mwk-table-title.mwk-collapsible-title:has(> .mwk-table-collapse-toggle:hover),
.mwk-table-title.mwk-collapsible-title:has(> .mwk-table-collapse-toggle:focus-visible) {
    background: color-mix(in srgb, var(--mwk-component-title-background) 92%, var(--mwk-table-header-color)) !important;
}

.mwk-table-collapse-toggle:hover,
.mwk-table-collapse-toggle:focus-visible {
    background: transparent;
    outline: none;
}

.mwk-table-title.mwk-collapsible-title:has(> .mwk-table-collapse-toggle:focus-visible) {
    outline: 2px solid color-mix(in srgb, var(--mwk-table-header-color) 55%, transparent);
    outline-offset: -2px;
}

.mwk-table-record-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2em;
    padding: 1px 7px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, #ffffff 42%, transparent);
    color: inherit;
    font: inherit;
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
    white-space: nowrap;
}

.mwk-table-title > .mwk-table-record-count {
    margin-right: 8px;
}

.mwk-table-caption {
    font: inherit;
    overflow-wrap: anywhere;
}

.mwk-responsive-table-toggle[hidden] {
    display: none !important;
}

.mwk-table-title > .mwk-responsive-table-toggle {
    margin-left: auto;
    min-height: 22px;
    min-width: 24px;
}

.mwk-table-title > .mwk-responsive-table-toggle:not([hidden]) + .download-icon {
    margin-left: 4px !important;
}

.mwk-table-surface > .mwk-responsive-empty-title:not(.mwk-responsive-title-active):not(.mwk-collapsible-title) {
    height: 3px !important;
    min-height: 3px !important;
    padding: 0 !important;
}

/* Untitled/collapsible tables still need room for the compact-mode control. */
.mwk-table-surface > .mwk-table-title.mwk-responsive-title-active {
    height: auto !important;
    min-height: 26px !important;
    padding: 1px 6px !important;
}

.mwk-table-title {
    min-height: 26px !important;
    padding: 1px 6px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mwk-component-border) !important;
    border-radius: 3px 3px 0 0;
    margin-top: 6px;
}

.mwk-component-title:empty {
    height: 3px !important;
    min-height: 3px !important;
    padding: 0 !important;
    border-bottom-width: 0 !important;
}

.mwk-table-surface,
.mwk-form-surface {
    background: var(--mwk-card-surface);
    box-sizing: border-box;
    box-shadow: var(--mwk-card-shadow);
    max-width: 100%;
}

.mwk-table-surface {
    overflow: hidden;
    width: calc(100% - 4px);
    margin: 6px 2px 0;
    border: 1px solid var(--mwk-component-border);
    border-bottom: 0;
    border-radius: 3px;
}

@media (min-width: 651px) {
    .mwk-table-surface { overflow-x: auto; }
}

.mwk-table-component {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 10px;
}

.mwk-table-surface > .bk-ft1-end,
.mwk-table-surface > .content > .bk-ft1-end {
    box-sizing: border-box;
    display: block !important;
    height: 5px;
    min-height: 5px;
    padding: 0;
    border: 0;
    border-radius: 0 0 2px 2px;
    background: var(--mwk-component-title-background) !important;
    line-height: 0;
}

.mwk-table-surface > .mwk-table-title {
    margin-top: 0;
}

/* Compact toolbar only: form/dialog titles keep their own spacing. */
.mwk-table-title > .mwk-table-download-button {
    min-width: 24px;
    min-height: 22px;
    padding: 0 !important;
    margin-block: 0 !important;
}

.mwk-table-surface > .mwk-data-table.mwk-table-grid,
.mwk-table-surface > .content > .mwk-data-table.mwk-table-grid {
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
}

.mwk-data-table.mwk-table-grid {
    border: 1px solid var(--mwk-component-border) !important;
    border-collapse: collapse !important;
    background: var(--mwk-component-surface);
}

.mwk-data-table.mwk-table-grid > thead > tr > th {
    border: 0 !important;
    border-right: 1px solid color-mix(in srgb, var(--mwk-table-header-border) 35%, transparent) !important;
    border-bottom: 1px solid var(--mwk-table-header-border) !important;
    background: var(--mwk-table-header-background) !important;
    color: var(--mwk-table-header-color) !important;
}

.mwk-data-table.mwk-table-grid > thead > tr > th:last-child {
    border-right: 0 !important;
}

.mwk-data-table.mwk-table-grid > tbody > tr:nth-child(even):not(.mwk-empty-table-row) {
    background-color: var(--mwk-table-stripe-background);
    --mwk-row-stripe-overlay: var(--mwk-table-stripe-overlay);
}

.mwk-data-table.mwk-table-grid > tbody > tr:not(.mwk-empty-table-row):hover {
    background-color: var(--mwk-table-hover-background);
}

.mwk-data-table.mwk-table-grid > tbody > tr > td {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid color-mix(in srgb, var(--mwk-table-row-border) 72%, transparent) !important;
}

.mwk-data-table.mwk-table-grid > tbody > tr > td:last-child {
    border-right: 0 !important;
}

/* Formularios planos y compactos: una sola superficie y jerarquía tipográfica. */
.mwk-form-surface {
    overflow: hidden;
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    background: var(--mwk-component-surface);
}

.mwk-form-body {
    border-bottom: 0;
}

.mwk-form-grid,
.mwk-form-grid > tbody {
    border: 0 !important;
    background: var(--mwk-component-surface) !important;
}

.mwk-form-grid {
    /* Content, including an empty or long editor, never redistributes columns. */
    table-layout: fixed !important;
}

.mwk-form-grid > tbody > tr {
    border: 0 !important;
    border-bottom: 1px solid var(--mwk-table-row-border) !important;
    background: var(--mwk-component-surface) !important;
}

.mwk-form-grid > tbody > tr > td:not(.sterror):not(.mwk-component-title) {
    border: 0 !important;
    background: var(--mwk-component-surface) !important;
}

.mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) > td.st3,
.mwk-info-table td.bk-t2-form {
    padding: 6px 8px !important;
    color: var(--mwk-form-label-color) !important;
    font-weight: 600 !important;
}

.mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) > td.st4,
.mwk-info-table td.bk-white-form {
    padding: 5px 7px !important;
    color: inherit;
}

.mwk-info-table td.bk-t2-form > div {
    padding-left: 0 !important;
}

@media (min-width: 651px) {
    .mwk-form-grid > tbody > tr > td.bk-t2-form,
    .mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) > td.st3 {
        box-sizing: border-box;
        padding: 6px 5px 6px 8px !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .mwk-form-grid > tbody > tr > td.bk-white-form,
    .mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) > td.st4 {
        padding-left: 0 !important;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mwk-form-grid > tbody > tr > td.bk-white-form > div[name^="label_"] {
        padding-left: 0 !important;
    }
}

.mwk-form-title {
    border: 0 !important;
    border-bottom: 1px solid var(--mwk-component-border) !important;
}

.mwk-form-title:empty {
    min-height: 3px;
    height: 3px !important;
    padding: 0 !important;
    border-bottom-width: 0 !important;
}

.mwk-form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
.mwk-form-grid select {
    box-sizing: border-box;
    height: var(--mwk-form-control-height) !important;
    min-height: var(--mwk-form-control-height) !important;
    padding-left: var(--mwk-form-control-inline-padding) !important;
    padding-right: var(--mwk-form-control-inline-padding) !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    line-height: 20px;
    vertical-align: middle;
    border: 1px solid var(--mwk-component-border) !important;
    border-radius: 4px !important;
    background: var(--mwk-form-control-background) !important;
    box-shadow: none !important;
}

.mwk-form-grid textarea {
    border: 1px solid var(--mwk-component-border) !important;
    border-radius: 4px !important;
    background: var(--mwk-form-control-background) !important;
    box-shadow: none !important;
}

.mwk-editor {
    min-width: 0;
    max-width: 100%;
}

.mwk-editor .mwk-editor-content {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: var(--mwk-editor-min-height, 6em);
    max-height: 50vh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 8px 10px;
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    background: var(--mwk-form-control-background);
    color: #24333b;
    font: inherit;
    font-weight: normal;
    line-height: 1.65;
    outline: none;
}

.mwk-editor .mwk-editor-content:focus {
    border-color: var(--mwk-table-accent);
    outline: 2px solid var(--mwk-form-focus-ring);
}

/* Single-line prose fields use the same local spellcheck without growing a row. */
.mwk-editor-singleline .mwk-editor-content {
    display: flex;
    align-items: center;
    height: max(var(--mwk-form-control-height, 30px), calc(1.65em + 8px));
    min-height: max(var(--mwk-form-control-height, 30px), calc(1.65em + 8px));
    max-height: none;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 0 10px;
}
.mwk-editor-singleline .mwk-editor-content::-webkit-scrollbar {
    display: none;
}
.mwk-editor.mwk-editor-singleline .mwk-editor-content > p {
    flex: 0 0 auto;
    min-width: 100%;
    margin: 0;
}

.mwk-form-title.mwk-form-ai-title {
    position: relative;
    min-height: 34px !important;
    height: auto !important;
    padding-right: 44px !important;
}
.mwk-ai-trigger {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.mwk-ai-trigger:hover, .mwk-ai-trigger:focus-visible {
    background: var(--mwk-table-hover-background);
}
.mwk-ai-review {
    box-sizing: border-box;
    width: min(800px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px);
    padding: 18px;
    border: 1px solid var(--mwk-component-border);
    border-radius: 8px;
    background: var(--mwk-form-control-background, #fff);
    color: var(--mwk-table-body-color, #24333b);
    box-shadow: 0 12px 36px #0003;
    font: inherit;
    overflow: auto;
}
.mwk-ai-review::backdrop {
    background: #17252f80;
}
.mwk-ai-review h2 {
    font: inherit;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px;
}
.mwk-ai-review p {
    margin: 6px 0 12px;
}
.mwk-ai-status {
    color: var(--mwk-table-accent);
}
.mwk-ai-field {
    border: 1px solid var(--mwk-component-border);
    border-radius: 5px;
    padding: 12px;
    margin: 12px 0;
}
.mwk-ai-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
}
.mwk-ai-field-label input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--mwk-table-accent);
}
.mwk-ai-field pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
    line-height: 1.6;
    padding: 8px;
    margin: 4px 0 10px;
    background: var(--mwk-table-hover-background);
    border-radius: 3px;
}
.mwk-ai-warning {
    color: #a45500;
}
.mwk-ai-warning:empty {
    display: none;
}
.mwk-ai-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}
.mwk-ai-actions button {
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    padding: 7px 12px;
    background: var(--mwk-table-hover-background);
    color: var(--mwk-table-accent);
    cursor: pointer;
}
.mwk-ai-actions button:disabled, .mwk-ai-trigger:disabled {
    opacity: .5;
    cursor: default;
}

.mwk-editor .mwk-editor-content p {
    min-height: 1.65em;
    margin: 0 0 0.5em;
}

.mwk-editor .mwk-editor-content p:last-child {
    margin-bottom: 0;
}

.mwk-editor .mwk-editor-content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.mwk-editor .mwk-editor-content td,
.mwk-editor .mwk-editor-content th {
    border: 1px solid var(--mwk-component-border);
    padding: 4px 6px;
    vertical-align: top;
}

.mwk-editor .mwk-editor-content .selectedCell {
    background: var(--mwk-table-hover-background);
}

.mwk-editor .mwk-editor-content ul,
.mwk-editor .mwk-editor-content ol {
    padding-inline-start: 1.5em;
}

.mwk-editor .mwk-editor-content .ProseMirror-selectednode {
    outline: 2px solid var(--mwk-table-accent);
}

.mwk-editor .mwk-editor-content .mwk-spelling-error {
    /* View-only highlighting: do not crowd the next line or alter stored formatting. */
    background: var(--mwk-spelling-highlight-background, rgba(230, 145, 38, 0.28));
    border-radius: 2px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    cursor: pointer;
}

.mwk-editor-spelling-warning .mwk-editor-content {
    border-color: var(--mwk-spelling-warning-color, #bd6b0b);
}

.mwk-editor-spelling-warning .mwk-editor-content:focus {
    border-color: var(--mwk-spelling-warning-color, #bd6b0b);
    outline-color: var(--mwk-spelling-warning-ring, rgba(189, 107, 11, 0.25));
}

.mwk-spelling {
    /* Anchored popup: no reserved space, margins or changes to the form layout. */
    position: fixed;
    inset: auto;
    z-index: 2300;
    box-sizing: border-box;
    width: max-content;
    height: auto;
    min-width: 0;
    max-width: min(960px, calc(100vw - 8px));
    max-height: min(480px, calc(100vh - 8px));
    margin: 0;
    padding: 0;
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    background: var(--mwk-spelling-panel-background, var(--mwk-table-hover-background));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    overflow: auto;
    color: var(--mwk-table-header-color);
    font-weight: normal;
}

.mwk-spelling[hidden] {
    display: none !important;
}

.mwk-spelling::backdrop {
    background: transparent;
    pointer-events: none;
}

.mwk-spelling-suggestions {
    display: grid;
    box-sizing: border-box;
    padding: 10px;
    gap: 10px;
    min-width: 0;
    white-space: normal;
}

.mwk-spelling-toolbar,
.mwk-spelling-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mwk-spelling-caption {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mwk-spelling-page {
    text-align: center;
    font-size: .9em;
}

.mwk-spelling-table-scroll {
    min-width: 0;
    max-width: 100%;
    overflow: auto;
    overscroll-behavior: contain;
}

.mwk-spelling-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: inherit;
}

.mwk-spelling .mwk-spelling-table th,
.mwk-spelling .mwk-spelling-table td {
    box-sizing: border-box;
    min-width: 145px;
    width: 165px;
    padding: 8px;
    border: 1px solid var(--mwk-component-border);
    text-align: left;
    vertical-align: top !important;
    overflow-wrap: anywhere;
}

.mwk-spelling-table th {
    background: var(--mwk-table-header-background);
    color: var(--mwk-table-header-color);
    font-weight: 600;
}

.mwk-spelling-table th.mwk-spelling-selected {
    box-shadow: inset 0 -3px var(--mwk-table-accent);
}

.mwk-spelling-table tbody button {
    display: block;
    width: 100%;
    text-align: left;
}

.mwk-spelling-table tbody button + button {
    margin-top: 5px;
}

.mwk-spelling-table tfoot button {
    font-size: .85em;
    width: 100%;
}

.mwk-spelling button {
    background: var(--mwk-form-control-background);
    color: var(--mwk-table-header-color);
    border: 1px solid var(--mwk-component-border);
    border-radius: 3px;
    padding: 3px 6px;
    font: inherit;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.mwk-spelling button:not(:disabled):hover,
.mwk-spelling button:focus-visible {
    background: var(--mwk-table-hover-background);
    outline: 1px solid var(--mwk-table-accent);
}

.mwk-spelling button:disabled {
    opacity: .5;
    cursor: default;
}

.mwk-form-grid input.mwk-field-invalid,
.mwk-form-grid select.mwk-field-invalid,
.mwk-form-grid textarea.mwk-field-invalid,
.mwk-form-grid input.mwk-field-invalid:focus,
.mwk-form-grid select.mwk-field-invalid:focus,
.mwk-form-grid textarea.mwk-field-invalid:focus,
.mwk-editor-invalid .mwk-editor-content,
.mwk-editor-invalid .mwk-editor-content:focus {
    /* The base input selector is deliberately specific; override its tokens too. */
    --mwk-form-control-background: #fff0f0;
    --mwk-component-border: #a73838;
    --mwk-table-accent: #a73838;
    --mwk-form-focus-ring: rgba(167, 56, 56, 0.2);
    background-color: #fff0f0 !important;
    border-color: #a73838 !important;
    outline: 2px solid rgba(167, 56, 56, 0.2) !important;
}

/* Theme animations used to move notices behind the fixed navigation. */
body #snackbar {
    color: #fff;
    position: fixed;
    top: calc(var(--mwk-header-height, 48px) + 20px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    box-sizing: border-box;
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    border-radius: 4px;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s ease;
}
body #snackbar.show {
    visibility: visible;
    opacity: 1;
    animation: none;
    -webkit-animation: none;
}

/* CKEditor balloons must stay above MWK's modal dialogs. */
.ck-body-wrapper {
    --ck-z-default: 2100;
    --ck-z-panel: 2200;
}

.mwk-form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus,
.mwk-form-grid select:focus,
.mwk-form-grid textarea:focus {
    border-color: var(--mwk-table-accent) !important;
    outline: 2px solid var(--mwk-form-focus-ring) !important;
    outline-offset: 0;
}

.mwk-html-form-table > tbody > tr:last-child > td.st3,
.mwk-form > .bk-ft1-foot {
    border: 0 !important;
    background: transparent !important;
}

.mwk-html-form-table > tbody > tr:last-child > td.st3 {
    border-top: 1px solid var(--mwk-table-row-border) !important;
}

.mwk-form-surface > .mwk-form-end {
    box-sizing: border-box;
    height: 5px;
    min-height: 5px;
    padding: 0;
    border: 0;
    border-radius: 0 0 3px 3px;
    background: var(--mwk-component-title-background);
    line-height: 0;
}

.mwk-html-form-table > tbody > tr:last-child > td.mwk-form-actions-empty,
.mwk-form > .bk-ft1-foot:empty {
    box-sizing: border-box;
    height: 3px !important;
    min-height: 3px !important;
    padding: 0 !important;
    border-top-width: 0 !important;
    line-height: 0;
}

.mwk-date-input {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
}

.mwk-date-input input {
    width: 12ch;
    min-width: 0;
}

.dateChooser table {
    width: 146px;
    margin: 5px !important;
}

.mwk-date-chooser-trigger {
    align-items: center;
    background: var(--mwk-form-control-background);
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    color: var(--mwk-theme-primary-dark);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 var(--mwk-form-control-height);
    height: var(--mwk-form-control-height);
    justify-content: center;
    margin: 0;
    padding: 0;
    width: var(--mwk-form-control-height);
}

.mwk-date-chooser-trigger:hover {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 10%, #ffffff);
    border-color: var(--mwk-table-accent);
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 88%, #000000);
}

.mwk-date-chooser-trigger:focus-visible {
    outline: 2px solid var(--mwk-table-accent);
    outline-offset: 1px;
}

.mwk-date-chooser-trigger i {
    font-size: 15px;
    pointer-events: none;
}

.mwk-work-area-column {
    box-sizing: border-box;
    min-width: 0;
}

.mwk-data-table {
    width: 100%;
    max-width: 100%;
}

.mwk-data-table-fixed {
    table-layout: fixed;
}

.mwk-data-table-fixed col.mwk-action-column {
    width: 2.5rem;
}

.mwk-data-table th.mwk-action-cell,
.mwk-data-table td.mwk-action-cell {
    box-sizing: border-box;
    width: 2.5rem !important;
    min-width: 2.5rem !important;
    max-width: 2.5rem !important;
    padding: .35rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
}

.mwk-data-table .mwk-action-cell form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.mwk-data-table .mwk-action-cell button,
.mwk-data-table .mwk-action-cell li,
.mwk-data-table .mwk-action-cell i {
    margin: 0 !important;
    text-align: center;
    vertical-align: middle;
}

.mwk-data-table th,
.mwk-data-table td {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

table.mwk-data-table > tbody > tr {
    /* Reset at each row so a parent's state cannot tint its nested tables. */
    --mwk-row-state-color: transparent;
    --mwk-row-stripe-overlay: transparent;
    border-bottom: 1px solid var(--mwk-table-row-border) !important;
}

table.mwk-data-table > tbody > tr > td {
    --mwk-cell-state-color: var(--mwk-row-state-color);
    --mwk-table-state-tint: color-mix(in srgb, var(--mwk-cell-state-color) var(--mwk-table-state-opacity), transparent);
    /* Paint the subtle zebra shade above the state tint so a 70% highlight
       cannot hide alternation. Both layers leave text/icons and hatching intact.
       A cell color replaces (not stacks on) its row color. */
    box-shadow: inset 0 0 0 9999px var(--mwk-row-stripe-overlay),
        inset 0 0 0 9999px var(--mwk-table-state-tint);
    border-right-color: #edf2f4 !important;
    padding-bottom: 9px;
    padding-top: 9px;
}

table.mwk-data-table > tbody > tr:last-child {
    border-bottom-color: #d7e2e7 !important;
}

table.mwk-data-table > tbody > tr.mwk-responsive-row > td.bk-white-null {
    /* Fade only the empty-cell hatch, not its state tint or contents. */
    opacity: 1;
    background-image: repeating-linear-gradient(-45deg,
        rgba(119, 136, 153, 0.3) 0px, transparent 1px, transparent 0px, transparent 50%);
}

.mwk-empty-table-row > td,
td.mwk-empty-table-state {
    background-color: #f5f7f8 !important;
    background-image: repeating-linear-gradient(-45deg,
        transparent 0,
        transparent 5px,
        color-mix(in srgb, var(--mwk-table-border-subtle) 24%, transparent) 5px,
        color-mix(in srgb, var(--mwk-table-border-subtle) 24%, transparent) 6px) !important;
    opacity: 1 !important;
}

.bk-ft1-foot.mwk-empty-table-message,
td.mwk-empty-table-message {
    color: var(--mwk-table-empty-color) !important;
    font-weight: 500;
    padding: 12px 8px !important;
    text-align: center;
}

.mwk-data-table th.mwk-boolean-column,
.mwk-data-table td.mwk-boolean-column {
    text-align: center !important;
    vertical-align: middle !important;
}

.mwk-data-table td.mwk-nowrap-column,
.mwk-data-table .column-date {
    width: 12ch;
    min-width: 12ch;
    text-align: center;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
}

.mwk-data-table .column-datetime {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mwk-data-table img,
.mwk-data-table input,
.mwk-data-table select,
.mwk-data-table textarea {
    max-width: 100%;
}

.mwk-responsive-toggle {
    display: none !important;
}

.mwk-related-table-detail-cell {
    padding: 5px 4px 5px 8px !important;
    background: color-mix(in srgb, var(--mwk-table-accent) 12%, transparent) !important;
    border: 0 !important;
}

.mwk-related-table-detail-cell > .mwk-related-table-children,
.mwk-related-table-detail-cell .mwk-related-table {
    width: 100%;
    box-sizing: border-box;
}

/*
 * An embedded table belongs visually to its parent row.  Its empty opening
 * strip and closing strip are therefore redundant; a real titled header is
 * intentionally preserved.
 */
.mwk-related-table-child > .bk-ft1-empty-header,
.mwk-related-table-child > .bk-ft1-end {
    display: none !important;
}

.mwk-related-table-child > br:last-child {
    display: none;
}

.mwk-related-table-child {
    border-left: 2px solid var(--mwk-table-accent);
    border-right: 2px solid var(--mwk-table-border-subtle);
    box-sizing: border-box;
}

.mwk-related-table-selected-row > td {
    background-color: color-mix(in srgb, var(--mwk-table-accent) 24%, transparent) !important;
}

.mwk-related-table-selected-row > td:first-child {
    box-shadow: inset 3px 0 0 var(--mwk-table-accent),
        inset 0 0 0 9999px var(--mwk-row-stripe-overlay),
        inset 0 0 0 9999px var(--mwk-table-state-tint);
}

.mwk-related-table-detail-row {
    width: 100%;
}

.mwk-related-table-detail-row[hidden],
.mwk-related-table-children[hidden] {
    display: none !important;
}

.mwk-data-table td.clickable-cell,
.mwk-table-actions button,
.mwk-table-actions .btn-ft1 {
    cursor: pointer;
}

.mwk-related-table-parent-row > td.clickable-cell:focus-visible {
    outline: 2px solid var(--mwk-table-accent);
    outline-offset: -2px;
}

@media (max-width: 650px) {
    .mwk-related-table-child,
    .mwk-related-table-child > table.mwk-data-table {
        border: 0 !important;
    }

    .mwk-related-table-detail-row,
    .mwk-related-table-detail-cell {
        display: block !important;
        width: 100% !important;
    }
    .mwk-html-form-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /*
     * En una sola columna los cuatro bordes heredados por cada celda forman
     * franjas demasiado pesadas. Se conserva la lectura tabular mediante un
     * separador horizontal tenue y se deja que la paleta activa siga
     * definiendo los fondos de título, etiqueta y valor.
     */
    .mwk-html-form,
    .mwk-form {
        overflow: hidden;
    }

    .mwk-html-form-table,
    .mwk-html-form-table > tbody,
    .mwk-info-table,
    .mwk-info-table > tbody {
        display: block;
        width: 100% !important;
    }

    .mwk-form-columns {
        display: none;
    }

    .mwk-html-form-table > tbody > tr,
    .mwk-info-table > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        border: 0 !important;
        border-bottom: 1px solid color-mix(in srgb, var(--mwk-table-border-subtle) 55%, transparent) !important;
    }

    .mwk-html-form-table > tbody > tr > td,
    .mwk-info-table > tbody > tr > td {
        box-sizing: border-box;
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        border: 0 !important;
        overflow-wrap: anywhere;
    }

    .mwk-html-form-table td.st1 {
        min-height: 2.75rem;
        padding: .65rem .75rem !important;
        border-bottom: 2px solid color-mix(in srgb, var(--mwk-table-accent) 72%, transparent) !important;
    }

    .mwk-html-form-table td.st2,
    .mwk-html-form-table td.st2left,
    .mwk-html-form-table td.st2middle,
    .mwk-html-form-table td.st2right,
    .mwk-info-table td.bk-t2-form {
        min-height: 2.2rem;
        padding: .55rem .5rem .4rem !important;
        text-align: left !important;
    }

    .mwk-info-table td.bk-t2-form > div {
        padding-left: 0 !important;
    }

    .mwk-html-form-table td.st3,
    .mwk-info-table td.bk-white-form {
        min-height: 2.7rem;
        padding: .4rem .5rem .65rem !important;
    }

    /*
     * HtmlForm compacto: en móvil cada pregunta se lee como una unidad
     * etiqueta/control. Los formularios sin título conservan únicamente la
     * línea de color que los identifica en escritorio, sin fabricar una
     * cabecera o un pie vacíos de varias líneas de altura.
     */
    .mwk-html-form-table > tbody > tr:first-child > td.st1:empty,
    .mwk-html-form-table > tbody > tr:last-child > td.st3:empty {
        display: block;
        height: 3px !important;
        min-height: 3px !important;
        padding: 0 !important;
    }

    .mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) {
        border-bottom: 0 !important;
    }

    .mwk-html-form-table > tbody > tr:nth-child(n + 3):not(:last-child) {
        border-top: 1px solid color-mix(in srgb, var(--mwk-table-border-subtle) 48%, transparent) !important;
    }

    .mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) > td.st3 {
        min-height: 0;
        padding: .42rem .55rem .12rem !important;
        background: transparent !important;
        vertical-align: bottom !important;
    }

    .mwk-html-form-table > tbody > tr:not(:first-child):not(:last-child) > td.st4 {
        min-height: 0;
        padding: .12rem .45rem .42rem !important;
        background: transparent !important;
    }

    .mwk-html-form-table input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .mwk-html-form-table select,
    .mwk-info-table input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .mwk-info-table select {
        height: var(--mwk-form-control-height) !important;
        min-height: var(--mwk-form-control-height);
        width: 100% !important;
        padding: .28rem .5rem;
        border-color: color-mix(in srgb, var(--mwk-table-border-subtle) 68%, transparent) !important;
    }

    .mwk-html-form-table textarea,
    .mwk-info-table textarea {
        width: 100% !important;
        min-height: 7rem;
        padding: .55rem;
        border-color: color-mix(in srgb, var(--mwk-table-border-subtle) 68%, transparent) !important;
        resize: vertical;
    }

    .mwk-html-form-table input:focus,
    .mwk-html-form-table select:focus,
    .mwk-html-form-table textarea:focus,
    .mwk-info-table input:focus,
    .mwk-info-table select:focus,
    .mwk-info-table textarea:focus {
        outline: 1px solid var(--mwk-table-accent);
        outline-offset: 0;
    }

    .mwk-html-form-table .mwk-date-input input,
    .mwk-info-table .mwk-date-input input {
        flex: 0 1 12ch;
        width: 12ch !important;
        min-width: 10ch;
    }

    .mwk-html-form-table input.mwk-time-input,
    .mwk-info-table input.mwk-time-input {
        width: 10ch !important;
    }

    /* El selector de fecha es una tabla interna, no una fila del formulario. */
    .mwk-html-form-table .dateChooser,
    .mwk-info-table .dateChooser {
        width: 160px !important;
        max-width: calc(100vw - 1rem);
    }

    .mwk-html-form-table .dateChooser table,
    .mwk-info-table .dateChooser table {
        display: table !important;
        width: 146px !important;
    }

    .mwk-html-form-table .dateChooser tbody,
    .mwk-info-table .dateChooser tbody {
        display: table-row-group !important;
    }

    .mwk-html-form-table .dateChooser tr,
    .mwk-info-table .dateChooser tr {
        display: table-row !important;
        border: 0 !important;
    }

    .mwk-html-form-table .dateChooser td,
    .mwk-html-form-table .dateChooser th,
    .mwk-info-table .dateChooser td,
    .mwk-info-table .dateChooser th {
        display: table-cell !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 1px !important;
    }

    .mwk-html-form-table .dateChooser select,
    .mwk-info-table .dateChooser select {
        width: auto !important;
        min-height: 0;
        padding: 1px;
    }

    .mwk-html-form-table > tbody > tr:last-child,
    .mwk-info-table > tbody > tr:last-child {
        border-bottom-color: color-mix(in srgb, var(--mwk-table-accent) 62%, transparent) !important;
    }

    .mwk-html-form-table > tbody > tr:last-child > td,
    .mwk-info-table > tbody > tr:last-child > td {
        padding-top: .5rem !important;
        padding-bottom: .5rem !important;
    }

    /* Cabecera y acciones compactas, sin perder presencia cuando sí existen. */
    /* Keep labels and controls together, including single/last-row MwkForms. */
    .mwk-form-grid.mwk-info-table > tbody > tr > td.bk-t2-form {
        min-height: 0;
        padding: .42rem .5rem .12rem !important;
    }
    .mwk-form-grid.mwk-info-table > tbody > tr > td.bk-white-form {
        min-height: 0;
        padding: .12rem .5rem .5rem !important;
    }

    .mwk-html-form-table > tbody > tr:first-child > td.st1.mwk-form-title:not(:empty) {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: auto !important;
        min-height: 26px !important;
        padding: 5px 8px !important;
    }

    .mwk-html-form-table > tbody > tr:last-child > td.st3:not(:empty) {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .35rem;
        box-sizing: border-box;
        height: auto !important;
        min-height: 2rem;
        padding: .4rem .55rem !important;
    }

    .mwk-html-form-table > tbody > tr:last-child > td.st3:not(:empty) > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: center;
    }

    .mwk-html-form-container > br:last-child,
    .mwk-form > br:last-child {
        display: none;
    }

}

/* Responsive mode is selected at <= 650 viewport pixels by responsive-tables.js.
 * Keep these selectors local to the owning table. */
.mwk-responsive-json-table.mwk-table-compact {
    display: block;
    width: 100% !important;
    table-layout: auto !important;
    border: 0;
}

.mwk-responsive-json-table.mwk-table-compact > colgroup,
.mwk-responsive-json-table.mwk-table-compact > thead,
.mwk-responsive-json-table.mwk-table-compact > tfoot {
    display: none;
}

.mwk-responsive-json-table.mwk-table-compact > tbody,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr {
    display: block;
    width: 100%;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-row {
    display: grid;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #b7c9e2;
    border-bottom: 4px solid #6695cc;
    background: #fff;
}

.mwk-responsive-json-table.mwk-table-compact.mwk-responsive-keep-1 > tbody > tr.mwk-responsive-row {
    grid-template-columns: var(--mwk-responsive-columns, minmax(0, 1fr));
}

.mwk-responsive-json-table.mwk-table-compact.mwk-responsive-keep-2 > tbody > tr.mwk-responsive-row {
    grid-template-columns: var(--mwk-responsive-columns, repeat(2, minmax(0, 1fr)));
}

.mwk-responsive-json-table.mwk-table-compact.mwk-responsive-keep-3 > tbody > tr.mwk-responsive-row {
    grid-template-columns: var(--mwk-responsive-columns, repeat(3, minmax(0, 1fr)));
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > th {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none;
    padding: .55rem .7rem !important;
    text-align: left !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td[data-label]:not([data-label=''])::before,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > th[data-label]:not([data-label=''])::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .2rem;
    color: #385d87;
    font-size: .78em;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-toggle {
    display: flex !important;
    order: 1;
    position: static;
    width: 100% !important;
    min-width: 0 !important;
    padding: .25rem !important;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    background: transparent;
    border: 0;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-toggle > .mwk-responsive-expand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    min-width: 1.7rem;
    min-height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #5f8fc5;
    font-size: .72rem;
    line-height: 1;
    cursor: pointer;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-toggle > .mwk-responsive-expand-button:hover,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-toggle > .mwk-responsive-expand-button:focus-visible {
    background: #3f6f9f;
    outline: 2px solid #b8cee8;
    outline-offset: 2px;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-detail,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-hide {
    display: none !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > .mwk-responsive-keep {
    order: 1;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-action-cell {
    display: flex;
    flex-direction: row;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 2.5rem;
    padding: .25rem !important;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    white-space: nowrap !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-action-cell::before {
    /* El label sigue disponible como hint/title; repetirlo dentro del
       registro colapsado agrega ruido y ensancha innecesariamente la acción. */
    content: none !important;
    display: none !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-action-cell form,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-action-cell button,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-action-cell li,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-action-cell i {
    align-self: center;
    justify-self: center;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-boolean-column,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > th.mwk-boolean-column {
    text-align: center !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.mwk-boolean-column::before,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > th.mwk-boolean-column::before {
    text-align: center;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.column-numeric,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > th.column-numeric {
    text-align: right !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr > td.column-numeric::before,
.mwk-responsive-json-table.mwk-table-compact > tbody > tr > th.column-numeric::before {
    text-align: left;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-expanded > .mwk-responsive-detail {
    display: block !important;
    order: 2;
    grid-column: 1 / -1;
    grid-row: var(--mwk-responsive-layer-row, auto);
    box-sizing: border-box;
    width: var(--mwk-responsive-layer-width, 100%) !important;
    margin-left: var(--mwk-responsive-layer-start, 0);
    padding-left: calc(.7rem + var(--mwk-responsive-layer-indent, 0px)) !important;
    border-top: 1px dashed #c5d2e2;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-expanded > .mwk-responsive-detail:empty {
    display: none !important;
}

/* Separate records above the next visible panel, never below the last one.
 * A selected parent and its child remain a single visual group. */
.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-row:not([hidden]):not([style*='display: none']):not([style*='display:none']) ~ tr.mwk-responsive-row {
    margin-top: .65rem;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-related-table-detail-row {
    margin: 0 !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-related-table-detail-row > .mwk-related-table-detail-cell {
    /* Mantiene unido el contenedor al padre, pero separa visualmente el
       primer panel de la tabla hija del registro que la despliega. */
    padding-top: .65rem !important;
}

/* Only owned cells are restyled: nested tables choose their own mode. */
.mwk-table-compact > tbody > tr > .mwk-empty-table-state,
.mwk-table-compact > tbody > .mwk-empty-table-row > td {
    display: block;
    width: 100% !important;
    grid-column: 1 / -1;
    text-align: center !important;
}

.mwk-table-compact > tbody > .mwk-related-table-detail-row > .mwk-related-table-detail-cell {
    display: block;
    width: 100% !important;
}

.mwk-table-compact > tbody[hidden],
.mwk-table-compact > tbody > tr[hidden] {
    display: none !important;
}

/* A required question is marked in its label cell, not in the label text. */
.mwk-form-grid > tbody > tr > td.mwk-form-label,
.mwk-html-form-table.mwk-form-grid > tbody > tr:not(:first-child):not(:last-child) > td.mwk-form-label {
    position: relative;
    padding-left: 12px !important;
}

.mwk-form-label > .mwk-required-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    line-height: 0;
    cursor: help;
}

.mwk-required-indicator::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid var(--mwk-table-accent, #628b9b);
    border-right: 8px solid transparent;
}

@media (max-width: 650px) {
    /* Same indent for optional/required labels; the corner never covers text. */
    .mwk-html-form-table.mwk-form-grid > tbody > tr:not(:first-child):not(:last-child) > td.mwk-form-label,
    .mwk-info-table.mwk-form-grid > tbody > tr > td.mwk-form-label {
        padding-left: 14px !important;
    }
}

@media (forced-colors: active) {
    .mwk-required-indicator::before {
        border-top-color: CanvasText;
        forced-color-adjust: none;
    }
}

.mwktextarea {
    min-height: 15em;
}

/* Content URLs follow the active palette, independently of navigation/actions.
 * mwk-content-link is also available to custom components outside these areas. */
.url_en_titulo,
a.mwk-content-link,
:is(.mwk-component-title, .mwk-data-table, .mwk-form-grid) a[href]:not([role='button']):not(.btn):not(.btn-ft1) {
    color: var(--mwk-link-color) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
    overflow-wrap: anywhere;
    white-space: normal;
}

a.url_en_titulo:visited,
a.mwk-content-link:visited,
:is(.mwk-component-title, .mwk-data-table, .mwk-form-grid) a[href]:not([role='button']):not(.btn):not(.btn-ft1):visited {
    color: var(--mwk-link-visited-color) !important;
}

.url_en_titulo:hover,
a.mwk-content-link:hover,
:is(.mwk-component-title, .mwk-data-table, .mwk-form-grid) a[href]:not([role='button']):not(.btn):not(.btn-ft1):hover {
    color: var(--mwk-link-hover-color) !important;
}

.url_en_titulo:focus-visible,
a.mwk-content-link:focus-visible,
:is(.mwk-component-title, .mwk-data-table, .mwk-form-grid) a[href]:not([role='button']):not(.btn):not(.btn-ft1):focus-visible {
    outline: 2px solid var(--mwk-link-color);
    outline-offset: 3px;
}

.mwk-component-title a[href] {
    margin-inline-start: .35em;
}

.td-totals {
    text-align: right !important;
    background-color: var(--mwk-table-header-background);
    border-top-style: double;
    border-top-width: thick;
}

.stampimage {
    max-width: 20em;
    max-height: 20em;
    border-style: outset;
    border-width: thin !important;
}

.stampimage-container {
    padding: 5px;
    background: var(--mwk-table-header-background);
    border-style: inset;
    border-width: thin !important;
}

.selected-column {
    background-color: color-mix(in srgb, var(--mwk-table-accent) 12%, transparent);
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

th.bk-t2 {
    cursor: pointer;
    /* Indica que es clicable */
}

.table-icon-menu {
    float: right;
    cursor: pointer;
    font-size: 4px;
    padding: 3px;
}

.bk-ft1-empty-header {
    border-top-right-radius: 2px;
    border-top-left-radius: 2px;
    padding: 0px;
    height: 10px;
}

.bk-ft1-header {
    min-height: 26px;
    border-top-right-radius: 2px;
    border-top-left-radius: 2px;
    padding-right: 4px;
    padding-left: 8px;
    padding-top: 9px;
    padding-bottom: 6px;
    font-weight: bold;
    font-size: 9px;
}

div.bk-ft1-header {
    background-color: var(--mwk-section-header-background);
    color: var(--mwk-section-header-color);
}

div.bk-ft1-empty-header {
    background-color: var(--mwk-component-title-background);
}

div.bk-ft1-end {
    background-color: var(--mwk-component-border);
}

.mwk-responsive-total-row > th {
    background: var(--mwk-table-header-background) !important;
}

/* Totals are a summary, not another collapsible record. Keep aggregates visible
 * without repeating empty column labels or reserving action/toggle columns. */
.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-row.mwk-responsive-total-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-total-row > th {
    display: none !important;
}

.mwk-responsive-json-table.mwk-table-compact > tbody > tr.mwk-responsive-total-row > th.mwk-total-value:not(.mwk-responsive-hide) {
    display: block !important;
    grid-column: auto;
    order: 0;
    margin: 0;
}

.bk-ft1-header:has(.mwk-availability-banner) {
    display: flex;
    justify-content: center;
    padding: 6px 4px;
}

.mwk-availability-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.mwk-two-factor-tip-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-left: 3px solid var(--mwk-table-accent);
    color: var(--mwk-theme-color-01);
    background: var(--mwk-theme-color-02);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.mwk-two-factor-tip-link:hover,
.mwk-two-factor-tip-link:focus-visible {
    color: var(--mwk-table-accent);
    background: var(--mwk-theme-color-07);
}

.mwk-two-factor-tip-dialog {
    width: min(620px, calc(100vw - 24px));
    max-width: 620px;
    padding: 0;
    border: 1px solid var(--mwk-dialog-border);
    border-radius: 7px;
    background: var(--mwk-dialog-surface-background);
    color: var(--mwk-dialog-title-color);
    box-shadow: var(--mwk-dialog-shadow);
}

.mwk-two-factor-tip-dialog::backdrop {
    background: var(--mwk-dialog-overlay-background);
}

.mwk-two-factor-tip-content {
    position: relative;
    padding: 12px;
}

.mwk-two-factor-tip-content > img {
    display: block;
    width: 100%;
    height: auto;
}

.mwk-two-factor-tip-image-link {
    display: block;
}

.mwk-two-factor-tip-image-link img {
    display: block;
    width: 100%;
    height: auto;
}

.mwk-two-factor-tip-image-link:focus-visible {
    outline: 2px solid var(--mwk-table-accent);
    outline-offset: 2px;
}

.mwk-two-factor-tip-content > p {
    margin: 12px 0 8px;
    font-weight: 600;
}

.mwk-two-factor-tip-close {
    position: absolute;
    z-index: 1;
    top: 6px;
    right: 7px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mwk-dialog-title-background);
    color: var(--mwk-dialog-title-color);
    font-size: 24px;
    line-height: 28px;
    cursor: pointer;
}

.mwk-two-factor-app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mwk-two-factor-app-links > a {
    flex: 1 1 150px;
    padding: 8px 10px;
    background: var(--mwk-table-accent);
    color: var(--mwk-theme-color-02);
    text-align: center;
    text-decoration: none;
}

.mwk-two-factor-app-links > a:hover,
.mwk-two-factor-app-links > a:focus-visible {
    filter: brightness(.92);
}

@media (max-width: 600px) {
    .mwk-two-factor-tip-content {
        padding: 8px;
    }

    .mwk-two-factor-app-links {
        display: grid;
    }
}

.mwk-connection-notice {
    align-items: flex-start;
    background: color-mix(in srgb, var(--mwk-state-warning-background) 52%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--mwk-theme-primary-dark) 18%, #ffffff);
    border-left: 4px solid var(--mwk-theme-primary-dark);
    border-radius: 7px;
    color: var(--mwk-theme-primary-dark);
    display: flex;
    gap: 14px;
    margin: 28px auto;
    max-width: 620px;
    padding: 18px 20px;
}

.mwk-connection-notice-icon {
    font-size: 22px;
    margin-top: 2px;
}

.mwk-connection-notice-content {
    flex: 1;
}

.mwk-connection-notice h2 {
    font-size: 15px;
    margin-bottom: 7px;
}

.mwk-connection-notice p {
    font-size: 12px;
    line-height: 1.45;
}

.mwk-connection-retry-message {
    font-weight: 700;
    margin-top: 7px;
}

.mwk-connection-notice-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
}

.mwk-connection-retry,
.mwk-connection-reload {
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 13px;
}

.mwk-connection-retry {
    background: var(--mwk-theme-primary-dark);
    border: 1px solid var(--mwk-theme-primary-dark);
    color: #ffffff;
}

.mwk-connection-retry:disabled {
    cursor: wait;
    opacity: 0.65;
}

.mwk-connection-reload {
    color: var(--mwk-theme-primary-dark);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .mwk-connection-notice {
        margin: 16px 10px;
        padding: 15px;
    }
}

.bk-ft1-header:has(.mwk-availability-banner) + .mwk-data-table th,
.bk-ft1-header:has(.mwk-availability-banner) + .mwk-data-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.mwk-data-table .column-date,
.mwk-data-table .column-datetime {
    text-align: center !important;
}

.bk-ft1-header:has(.mwk-availability-banner) + .mwk-data-table td {
    text-align: center !important;
}

/* Compact right-hand rail. Only enabled controls reserve space; labels remain
   vertically centered and separate from all three click targets. */
.mwk-data-table > thead > tr > th {
    padding: 2px !important;
    line-height: 1.15;
    vertical-align: middle !important;
}
.mwk-data-table > thead > tr > th[data-mwk-sort-column] {
    position: relative;
    --mwk-column-hide-space: 0px;
    --mwk-column-filter-space: 0px;
    --mwk-column-sort-space: 0px;
    --mwk-column-controls-height: calc(var(--mwk-column-hide-space) + var(--mwk-column-filter-space) + var(--mwk-column-sort-space));
}
.mwk-data-table > thead > tr > th:has(.mwk-table-sort-button) { --mwk-column-sort-space: 16px; }
.mwk-data-table > thead > tr > th:has(.mwk-column-filter-button:not([hidden])) { --mwk-column-filter-space: 16px; }
.mwk-data-table > thead > tr > th:has(.mwk-column-hide-button:not([hidden])) { --mwk-column-hide-space: 16px; }
.mwk-data-table > thead > tr > th[data-mwk-sort-column]:not(.mwk-column-menu-ready):has(.mwk-table-sort-button, .mwk-column-filter-button:not([hidden]), .mwk-column-hide-button:not([hidden])) {
    height: calc(var(--mwk-column-controls-height) + 4px);
    padding: 2px 20px 2px 4px !important;
}
.mwk-data-table .mwk-table-sort-button {
    display: flex;
    position: static;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 3px;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.mwk-table-sort-label { flex: 1 1 auto; min-width: 0; text-align: center; }
.mwk-table-sort-icon {
    position: absolute; right: 2px;
    top: calc(50% - var(--mwk-column-controls-height) / 2 + var(--mwk-column-hide-space) + var(--mwk-column-filter-space));
    display: grid; place-items: center; width: 16px; height: 16px;
    font-size: .8em; opacity: .65;
}
.mwk-data-table th[aria-sort="ascending"] .mwk-table-sort-icon,
.mwk-data-table th[aria-sort="descending"] .mwk-table-sort-icon { opacity: 1; }
.mwk-data-table th:has(.mwk-table-sort-button:hover) {
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .05);
}
.mwk-data-table .mwk-table-sort-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Independent column filters; hiding does not replace search or disclosure state. */
.mwk-data-table > tbody > tr[data-mwk-column-filtered="true"] { display: none !important; }
.mwk-column-heading { min-width: 0; font: inherit; }
.mwk-column-filter-button {
    position: absolute; right: 2px;
    top: calc(50% - var(--mwk-column-controls-height) / 2 + var(--mwk-column-hide-space));
    display: grid; place-items: center; width: 16px; height: 16px;
    border: 0; border-radius: 3px; padding: 0; margin: 0;
    background: transparent; color: inherit; font-size: .7em; cursor: pointer; opacity: .6;
}
.mwk-column-filter-button:hover, .mwk-column-filter-button:focus-visible { opacity: 1; }
.mwk-column-hide-button {
    position: absolute; right: 2px; top: calc(50% - var(--mwk-column-controls-height) / 2);
    display: grid; place-items: center; width: 16px; height: 16px;
    border: 0; border-radius: 3px; padding: 0; margin: 0;
    background: transparent; color: inherit; font-size: .7em; cursor: pointer; opacity: .6;
}
.mwk-column-hide-button:hover, .mwk-column-hide-button:focus-visible { opacity: 1; }
.mwk-column-hide-button:disabled { opacity: .25; cursor: default; }
.mwk-data-table > :is(thead, tbody, tfoot) > tr > [data-mwk-column-hidden],
.mwk-data-table.mwk-table-compact > tbody > tr.mwk-responsive-row > [data-mwk-column-hidden],
.mwk-data-table > colgroup > col[data-mwk-column-hidden] { display: none !important; }
.mwk-table-title > .mwk-column-visibility-toggle { margin-left: auto; min-width: 24px; min-height: 22px; }
.mwk-table-surface > .mwk-table-title:has(> .mwk-column-visibility-toggle) { height: auto !important; min-height: 26px !important; }
.mwk-table-title > .mwk-column-visibility-toggle ~ :is(.mwk-column-filters-toggle, .mwk-cell-text-toggle, .mwk-responsive-table-toggle, .download-icon) { margin-left: 4px !important; }
.mwk-column-filters-toggle > i { font-size: .85em; }
.mwk-column-visibility-toggle[aria-pressed="true"] { background: color-mix(in srgb, currentColor 18%, transparent); }
.mwk-column-filter-dialog.mwk-column-visibility-dialog { width: min(520px, calc(100vw - 24px)); }
.mwk-column-filter-button[aria-pressed="true"], .mwk-column-filters-toggle[aria-pressed="true"] {
    opacity: 1; background: color-mix(in srgb, currentColor 18%, transparent);
    outline: 1px solid currentColor; outline-offset: -1px;
}
.mwk-column-filter-button[hidden], .mwk-column-filters-toggle[hidden],
.mwk-column-filter-count[hidden] { display: none !important; }
.mwk-table-title > .mwk-column-filters-toggle { margin-left: auto; min-width: 24px; min-height: 22px; }
.mwk-table-title > .mwk-column-filters-toggle:not([hidden]) ~ .mwk-cell-text-toggle,
.mwk-table-title > .mwk-column-filters-toggle:not([hidden]) ~ .mwk-responsive-table-toggle,
.mwk-table-title > .mwk-column-filters-toggle:not([hidden]) ~ .download-icon { margin-left: 4px !important; }
.mwk-table-title:has(> .mwk-column-filters-toggle:not([hidden])) { height: auto !important; min-height: 26px !important; }
.mwk-column-filter-count { font-size: .85em; margin-left: 4px; font-weight: bold; }
.mwk-column-filter-empty > td { padding: 16px !important; text-align: center; }
.mwk-column-filter-dialog {
    box-sizing: border-box; width: min(920px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px); padding: 20px; overflow: auto; overscroll-behavior: contain;
    border: 1px solid var(--mwk-dialog-border, #bbcbd2); border-radius: 10px;
    background: var(--mwk-dialog-surface-background, #fff); color: var(--mwk-text-color, #243746);
    box-shadow: 0 12px 45px rgba(20, 40, 50, .25); font: inherit;
}
.mwk-column-filter-dialog::backdrop { background: rgba(15, 35, 45, .42); }
.mwk-column-filter-dialog h2 { margin: 0 0 10px; font-size: 1.2em; color: var(--mwk-link-color, #25758a); }
.mwk-column-filter-dialog p { margin: 8px 0 16px; font-size: .9em; }
.mwk-column-filter-rule { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(135px, 1fr) minmax(160px, 1.6fr) 28px; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid #dce5e9; }
.mwk-column-filter-dialog label { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; font-size: .9em; }
.mwk-column-filter-values { display: flex; gap: 8px; }
.mwk-column-filter-values > label { flex: 1; }
.mwk-column-filter-dialog input, .mwk-column-filter-dialog select {
    box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; padding: 6px;
    border: 1px solid #aebfc8; border-radius: 4px; color: inherit; background: var(--mwk-dialog-surface-background, #fff); font: inherit;
}
.mwk-column-filter-dialog button { cursor: pointer; border: 1px solid #becdd4; border-radius: 4px; padding: 7px 10px; font: inherit; background: transparent; color: var(--mwk-link-color, #25758a); }
.mwk-column-filter-dialog .mwk-column-filter-remove { border: 0; padding: 8px 4px; }
.mwk-column-filter-dialog .mwk-column-filter-add { margin-top: 12px; }
.mwk-column-filter-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mwk-column-filter-actions > :first-child { margin-right: auto; }
.mwk-column-filter-dialog .mwk-column-filter-apply { background: var(--mwk-link-color, #25758a); color: white; }
.mwk-column-filter-error { color: #a42525; }
.mwk-column-value-dialog { width: min(460px, calc(100vw - 24px)); }
.mwk-column-value-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mwk-column-value-dialog .mwk-column-value-status { margin: 10px 0; font-size: .85em; }
.mwk-column-value-list { max-height: min(360px, 42dvh); overflow: auto; overscroll-behavior: contain; border-block: 1px solid #dce5e9; }
.mwk-column-value-list > label { flex-direction: row; align-items: center; gap: 10px; padding: 9px 6px; cursor: pointer; border-bottom: 1px solid #e5ecef; }
.mwk-column-value-list > label:nth-child(even) { background: color-mix(in srgb, currentColor 4%, transparent); }
.mwk-column-value-list > label:has(:checked) { background: color-mix(in srgb, var(--mwk-link-color, #25758a) 14%, transparent); }
.mwk-column-value-list input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--mwk-link-color, #25758a); }
.mwk-column-value-label { flex: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.mwk-column-value-list small { flex-shrink: 0; padding: 2px 6px; border-radius: 12px; background: color-mix(in srgb, currentColor 8%, transparent); }
.mwk-column-value-dialog .mwk-column-value-more { margin-top: 10px; width: 100%; }
.mwk-column-value-more[hidden] { display: none !important; }
.mwk-column-value-selection { width: 100%; text-align: left; }
@media (max-width: 600px) {
    .mwk-column-filter-dialog { padding: 14px; }
    .mwk-column-filter-rule { grid-template-columns: minmax(0, 1fr) 28px; }
    .mwk-column-filter-rule > label, .mwk-column-filter-values { grid-column: 1; }
    .mwk-column-filter-rule > .mwk-column-filter-remove { grid-column: 2; grid-row: 1; }
}
@media print {
    .mwk-column-filter-button, .mwk-column-filters-toggle, .mwk-column-filter-dialog,
    .mwk-column-hide-button, .mwk-column-visibility-toggle { display: none !important; }
}


/* Once enhanced, use one menu target instead of the three-icon rail. Keep the
   original controls as a functional fallback if the menu script is unavailable. */
.mwk-data-table > thead > tr > th.mwk-column-menu-ready[data-mwk-sort-column] {
    height: 28px;
    padding: 2px 28px 2px 4px !important;
    --mwk-column-controls-height: 0px;
}
.mwk-column-menu-ready .mwk-column-filter-button,
.mwk-column-menu-ready .mwk-column-hide-button,
.mwk-column-menu-ready .mwk-table-sort-icon { display: none !important; }
.mwk-column-menu-ready:is([aria-sort="ascending"], [aria-sort="descending"]) .mwk-table-sort-icon {
    display: inline-block !important; position: static; flex: 0 0 10px;
    width: 10px; height: 1em; margin-left: 3px;
}
.mwk-column-menu-button {
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 24px; height: 24px;
    padding: 0; margin: 0; border: 0; border-radius: 3px;
    background: transparent; color: inherit; cursor: pointer; font: inherit;
}
.mwk-column-menu-button > span { font: bold 20px/1 sans-serif; }
.mwk-column-menu-button:hover, .mwk-column-menu-button[aria-expanded="true"],
.mwk-column-menu-button[data-filter-active="true"] { background: color-mix(in srgb, currentColor 15%, transparent); }
.mwk-column-menu-button[data-filter-active="true"]::after {
    content: ""; position: absolute; right: 2px; top: 2px; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor;
}
.mwk-column-menu-button:focus-visible, .mwk-column-menu button:focus-visible {
    outline: 2px solid currentColor; outline-offset: -2px;
}
.mwk-column-menu {
    box-sizing: border-box; position: fixed; inset: auto; z-index: 10000;
    margin: 0; padding: 4px; width: max-content; max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px); overflow: auto;
    border: 1px solid var(--mwk-dialog-border, #bbcbd2); border-radius: 6px;
    background: var(--mwk-dialog-surface-background, #fff); color: var(--mwk-text-color, #243746);
    box-shadow: 0 5px 18px rgba(20, 40, 50, .22); font: 13px/1.3 Arial, sans-serif;
}
.mwk-column-menu button {
    box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%;
    min-height: 32px; padding: 6px 10px; margin: 0; border: 0; border-radius: 3px;
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.mwk-column-menu button > i { width: 14px; text-align: center; }
.mwk-column-menu button:hover, .mwk-column-menu button:focus-visible,
.mwk-column-menu button[aria-checked="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
.mwk-column-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.mwk-column-menu button:disabled { opacity: .4; cursor: default; }
@media print {
    .mwk-column-menu-button, .mwk-column-menu { display: none !important; }
    .mwk-data-table > thead > tr > th.mwk-column-menu-ready[data-mwk-sort-column] { padding: 2px !important; height: auto; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.9em;
}

.header-content > .center {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.header-content > .icon-group {
    flex: 0 0 auto;
}

.icon-group {
    display: flex;
    gap: 1px;
    color: lightslategray;
    font-size: 0.8em;
    padding-left: 2px;
}

.icon-group i {
    cursor: pointer;
}

.modal-backdrop {
    z-index: -1 !important;
}

.mwk-app-body .modal {
    align-items: center;
    background-color: var(--mwk-dialog-overlay-background) !important;
    box-sizing: border-box;
    justify-content: center;
    padding: calc(var(--mwk-header-height) + 12px) 12px 12px;
    z-index: 2000 !important;
}

.mwk-app-body .modal .modal-content {
    background: var(--mwk-dialog-frame-background) !important;
    border: 1px solid var(--mwk-dialog-border) !important;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: var(--mwk-dialog-shadow);
    color: var(--mwk-dialog-title-color);
    padding: 14px;
}

/* MWK dialogs contain a whole form, not Bootstrap's separate header/body/footer.
   Keep its natural height: flex would shrink the mobile form (overflow:hidden)
   and clip its fields instead of overflowing this scrollable frame. */
.mwk-app-body .modal > .modal-content {
    display: block;
    margin: 0 !important;
    max-height: calc(100vh - var(--mwk-header-height) - 24px);
    max-height: calc(100dvh - var(--mwk-header-height) - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mwk-app-body .modal .modal-body,
.mwk-app-body .modal .modal-footer {
    background: var(--mwk-dialog-surface-background);
    border-color: var(--mwk-dialog-border);
    color: var(--mwk-dialog-title-color);
}

.mwk-app-body .modal .mwk-form-surface {
    background: var(--mwk-dialog-surface-background);
    border-color: var(--mwk-dialog-border);
    box-shadow: none;
}

.mwk-app-body .modal .mwk-form-title {
    background: var(--mwk-dialog-title-background) !important;
    border-color: var(--mwk-dialog-border) !important;
    color: var(--mwk-dialog-title-color) !important;
}

.mwk-app-body .modal .k3-primary {
    background: var(--mwk-theme-primary-dark) !important;
    border: 1px solid var(--mwk-theme-primary-dark) !important;
    color: #ffffff !important;
}

.mwk-app-body .modal .k3-primary:hover,
.mwk-app-body .modal .k3-primary:focus-visible {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 86%, #000000) !important;
}

.mwk-app-body .modal .k3-cancel {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 7%, #ffffff) !important;
    border: 1px solid var(--mwk-dialog-border) !important;
    color: var(--mwk-dialog-title-color) !important;
}

.mwk-app-body .modal .k3-cancel:hover,
.mwk-app-body .modal .k3-cancel:focus-visible {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 14%, #ffffff) !important;
}

.mwk-app-body .modal .close {
    color: var(--mwk-dialog-title-color);
}

/* Legacy jQuery dialogs share the same semantic palette as MwkForm dialogs. */
.mwk-app-body .ui-dialog {
    background: var(--mwk-dialog-surface-background) !important;
    border-color: var(--mwk-dialog-border) !important;
    box-shadow: var(--mwk-dialog-shadow);
    color: var(--mwk-dialog-title-color);
}

.mwk-app-body .ui-dialog .ui-dialog-titlebar {
    background: var(--mwk-dialog-title-background) !important;
    border-color: var(--mwk-dialog-border) !important;
    color: var(--mwk-dialog-title-color) !important;
}

.mwk-app-body .ui-dialog .ui-dialog-content,
.mwk-app-body .ui-dialog .ui-dialog-buttonpane {
    background: var(--mwk-dialog-surface-background);
    color: var(--mwk-dialog-title-color);
}

.mwk-app-body .ui-dialog-overlay {
    background: var(--mwk-dialog-overlay-background) !important;
    opacity: 1;
}

th .bk-t2 {
    padding: 8px !important;
}

.menufooter {
    position: absolute;
    bottom: 160px;
    width: 90%;
}

.ui-tabs li a, .tabs li span {
    cursor: pointer;
}

.null-value {
    opacity: 0.3;
    background-size: 3px 3px;
    background-image: repeating-linear-gradient(-45deg, lightslategray 0px, transparent 1px, transparent 0px, transparent 50%);
    border-right: 1px solid ghostwhite;
}

.portlettab-content {
    margin-right: 250px;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    min-height: 300px;
}

td.mwk-table-cell {
    padding: 5px;
}

th.mwk-table-cell {
    padding: 0.7em;
    background-color: var(--mwk-table-header-background);
    color: var(--mwk-table-header-color);
    border-bottom: 1px solid var(--mwk-table-header-border);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.mwk-data-table th.bk-t2 {
    background-color: var(--mwk-table-header-background);
    border-bottom: 1px solid var(--mwk-table-header-border);
    color: var(--mwk-table-header-color);
    font-weight: 700;
}

.well {
    margin-top: 1.5em;
    border: 1px solid var(--mwk-component-border);
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 7%, #ffffff);
    padding: 1em;
    border-radius: 8px;
}

.page-item {
    z-index: 0;
}

.responsivePortletTabs {
    position: relative;
    z-index: 20;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 6px 0;
}

.mwk-main-header-bar {
    align-items: stretch;
    display: flex;
    height: var(--mwk-header-height);
    left: 0;
    overflow: hidden;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.k3-black.mwk-main-header-bar {
    background-color: var(--mwk-header-background) !important;
}

.mwk-merged-header {
    z-index: 1000 !important;
}

.mwk-app-body {
    background: var(--mwk-workspace-background) !important;
    box-sizing: border-box;
    padding-top: var(--mwk-header-height);
}

.mwk-app-body #wrapper {
    background: var(--mwk-workspace-background);
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.mwk-primary-menu {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.mwk-primary-menu-shell {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.mwk-menu-scroll-indicator {
    align-items: center;
    background: rgba(9, 44, 57, 0.92);
    border: 0;
    color: #fff;
    display: flex;
    flex: 0 0 28px;
    font-size: 0.8rem;
    justify-content: center;
    padding: 0;
    width: 28px;
    z-index: 3;
}

.mwk-menu-scroll-indicator:hover,
.mwk-menu-scroll-indicator:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.mwk-menu-scroll-indicator[hidden] {
    display: none;
}

.mwk-primary-menu::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .mwk-primary-menu {
        cursor: grab;
    }

    .mwk-primary-menu-dragging {
        cursor: grabbing;
        user-select: none;
    }
}

.mwk-primary-menu-item,
.mwk-header-action {
    flex: 0 0 auto;
    margin: 0;
}

.mwk-primary-menu-item button,
.mwk-header-action button,
.mwk-header-action-link,
.mwk-sidebar-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--mwk-navigation-text) !important;
    display: flex;
    height: var(--mwk-header-height);
    justify-content: center;
    padding: 0 14px;
    text-decoration: none !important;
    white-space: nowrap;
}

.mwk-primary-menu-item button {
    font: 700 0.78rem/1 Verdana, sans-serif;
}

.mwk-primary-menu-item:first-child button,
.mwk-header-action button,
.mwk-header-action-link,
.mwk-sidebar-toggle {
    font-size: 1.2rem;
    min-width: 48px;
    padding-left: 12px;
    padding-right: 12px;
}

.mwk-primary-menu-item button:hover,
.mwk-primary-menu-item button:focus-visible,
.mwk-header-action button:hover,
.mwk-header-action button:focus-visible,
.mwk-header-action-link:hover,
.mwk-header-action-link:focus-visible,
.mwk-sidebar-toggle:hover,
.mwk-sidebar-toggle:focus-visible,
.mwk-primary-menu-selected button {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    outline: none;
}

.mwk-primary-menu-selected button {
    box-shadow: inset 0 -3px 0 var(--mwk-navigation-indicator);
}

.mwk-header-actions {
    align-items: stretch;
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
}

.mwk-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.mwk-primary-submenu-layer {
    position: relative;
    z-index: 1200;
}

.mwk-primary-submenu-panel {
    background: #fff;
    border: 1px solid #d5e0e7;
    border-radius: 0 0 9px 9px;
    box-shadow: 0 10px 28px rgba(17, 47, 65, 0.24);
    box-sizing: border-box;
    display: grid;
    left: 0;
    max-height: calc(100vh - var(--mwk-header-height) - 16px);
    min-width: 230px;
    overflow-y: auto;
    padding: 5px;
    position: fixed;
    top: var(--mwk-header-height);
    width: min(var(--mwk-navigation-panel-width), calc(100vw - 16px));
}

.mwk-primary-submenu-panel[hidden] {
    display: none;
}

.mwk-primary-submenu-item {
    list-style: none;
    margin: 0;
}

.mwk-submenu-section-separator {
    border-top: 1px solid rgba(49, 86, 106, 0.18);
    height: 0;
    margin: 4px 7px;
}

.mwk-primary-submenu-item button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #31566a;
    display: grid;
    font: 500 var(--mwk-navigation-font-size)/1.2 Verdana, sans-serif;
    gap: 7px;
    grid-template-columns: 19px minmax(0, 1fr) auto;
    min-height: var(--mwk-navigation-item-height);
    padding: 5px 8px;
    text-align: left;
    width: 100%;
}

.mwk-primary-submenu-item button > i:first-child {
    color: #2e6283;
    font-size: 0.86rem;
    justify-self: center;
}

.mwk-primary-submenu-item button:hover,
.mwk-primary-submenu-item button:focus-visible {
    background: #edf6fc;
    color: #174866;
    outline: none;
}

.mwk-primary-submenu-selected button {
    background: #dcefff;
    color: #165a8d;
    font-weight: 700;
}

.mwk-submenu-check {
    color: #16825d;
    font-size: 0.75rem;
}

.mwk-primary-submenu-panel {
    list-style: none;
}

.mwk-content-with-left-menu #layout-grid {
    background: var(--mwk-workspace-background);
    min-height: calc(100vh - var(--mwk-header-height));
    table-layout: fixed;
    width: 100%;
}

.mwk-content-with-left-menu #column-1 {
    background: #f8fafb;
    border-right: 1px solid #c9d7de;
    box-shadow: 2px 0 4px rgba(35, 71, 89, 0.08);
    min-width: 180px;
    padding-top: 0 !important;
    vertical-align: top;
    width: 180px !important;
}

.mwk-content-with-left-menu #column-2 {
    background: var(--mwk-workspace-background);
    padding-left: 8px !important;
    padding-right: 8px !important;
    vertical-align: top;
    width: auto !important;
}

.mwk-content-with-left-menu #layout-column_column-2,
.mwk-content-with-left-menu #layout-column_column-2 > .portlet {
    background: transparent !important;
}

.mwk-left-submenus {
    background: #f8fafb;
    border-right: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--mwk-header-height));
    min-height: calc(100dvh - var(--mwk-header-height));
    padding: 10px 6px 20px 4px;
}

.mwk-left-submenu-section {
    display: grid;
    flex-shrink: 0;
    gap: 1px;
}

.mwk-left-submenu-section[hidden] {
    display: none;
}

/* Branding stays in the menu flow: never overlays content or reserves a footer. */
.mwk-menu-branding {
    box-sizing: border-box;
    margin: 28px auto 12px;
    max-width: 220px;
    text-align: center;
    width: calc(100% - 12px);
}

.mwk-left-submenus > .mwk-menu-branding {
    flex-shrink: 0;
    margin: auto auto 0;
    padding-top: 30px;
}

.mwk-menu-branding-pair {
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--mwk-component-border) 55%, transparent);
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 7px;
    padding-bottom: 7px;
}

.mwk-menu-branding img {
    display: block;
    filter: grayscale(1);
    object-fit: contain;
    opacity: .55;
}

.mwk-menu-branding-pair > img {
    height: 36px;
    min-width: 0;
    width: calc((100% - 10px) / 2);
}

.mwk-menu-branding img[hidden],
.mwk-menu-branding-pair:not(:has(> img:not([hidden]))) {
    display: none;
}

.mwk-menu-branding .mwk-menu-multiplique-logo {
    height: 40px;
    width: 100%;
}

.mwk-menu-copyright {
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 55%, #ffffff);
    display: block;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.45;
    margin-top: 5px;
}

@media (max-width: 650px) {
    .mwk-primary-submenu-panel .mwk-menu-branding {
        margin-top: 16px;
        max-width: 180px;
    }

    .mwk-primary-submenu-panel .mwk-menu-branding-pair > img {
        height: 26px;
    }

    .mwk-primary-submenu-panel .mwk-menu-multiplique-logo {
        height: 34px;
    }
}

.mwk-left-submenus .mwk-primary-submenu-item button {
    border-radius: 3px;
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 82%, #333333);
    font-size: 10px;
    gap: 5px;
    grid-template-columns: 15px minmax(0, 1fr) auto;
    line-height: 1.15;
    min-height: 27px;
    padding: 4px 5px;
}

.mwk-left-submenus .mwk-primary-submenu-item button > i:first-child {
    font-size: 0.72rem;
}

.mwk-left-submenus .mwk-primary-submenu-selected button {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 13%, #ffffff);
    border-left: 3px solid var(--mwk-table-accent);
    color: var(--mwk-theme-primary-dark);
}

@media (min-width: 781px) {
    .mwk-primary-submenu-layer {
        display: none;
    }
}

.mwk-submenu-icon-spacer {
    display: block;
    height: 1px;
    width: 1px;
}

.mwk-main-sidebar {
    height: calc(100% - var(--mwk-header-height)) !important;
    top: var(--mwk-header-height) !important;
    z-index: 1100 !important;
}

.ui-tabs.mwkPortletTabsDesktop {
    align-items: stretch;
    border-bottom: 1px solid var(--mwk-component-border);
    box-sizing: border-box;
    display: flex;
    gap: 2px;
    height: var(--mwk-portlet-tabs-height);
    margin: 3px 0 5px;
    min-height: var(--mwk-portlet-tabs-height);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 var(--mwk-portlet-tabs-return-slot) 0 0;
    position: relative;
}

.ui-tabs.mwkPortletTabsDesktop > li {
    flex-shrink: 0;
    align-items: stretch;
    background: transparent;
    border: 0;
    display: flex;
    float: none;
    height: 100%;
    margin: 0;
}

.ui-tabs.mwkPortletTabsDesktop > li.close-tab {
    bottom: 0;
    height: 100%;
    margin: 0;
    position: absolute;
    right: 0;
    width: var(--mwk-portlet-tabs-return-slot);
}

.ui-tabs.mwkPortletTabsDesktop > li > span,
.ui-tabs.mwkPortletTabsDesktop > li > a {
    align-items: center;
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 4%, #ffffff);
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 3px 3px 0 0;
    box-shadow: none;
    box-sizing: border-box;
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 72%, #333333);
    display: flex;
    float: none;
    height: 100%;
    padding: 0;
    top: 0;
}

.ui-tabs.mwkPortletTabsDesktop > li.close-tab > a.close-tab {
    align-items: center;
    display: flex;
    font-size: 18px !important;
    height: 100%;
    justify-content: center;
    line-height: 1;
    padding: 0 !important;
    width: 100%;
}

.ui-tabs.mwkPortletTabsDesktop > li form {
    align-items: stretch;
    display: flex;
    height: 100%;
    margin: 0;
}

.ui-tabs.mwkPortletTabsDesktop > li input[type="submit"] {
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    font: 500 var(--mwk-secondary-tab-font-size)/1.2 Verdana, sans-serif !important;
    height: 100%;
    min-height: 0;
    padding: 5px 9px !important;
}

.ui-tabs.mwkPortletTabsDesktop > li:hover > span,
.ui-tabs.mwkPortletTabsDesktop > li:focus-within > span {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 9%, #ffffff);
    color: var(--mwk-theme-primary-dark);
}

.ui-tabs.mwkPortletTabsDesktop > li.current > span,
.ui-tabs.mwkPortletTabsDesktop > li.current > a {
    background: #fff;
    border: 0;
    border-bottom: 2px solid var(--mwk-table-accent);
    color: var(--mwk-theme-primary-dark) !important;
    font-weight: 700;
}

.portlet .portlet-topper.mwk-portlet-topper {
    background: var(--mwk-portlet-context-background);
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--mwk-portlet-context-background) 72%, #0f2d3c);
    margin: 0;
    padding: 7px 10px;
}

.portlet .portlet-title.mwk-portlet-title {
    color: var(--mwk-portlet-context-color);
    font-size: 13px;
    margin: 0;
}

.mwk-portlet-heading {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    font-weight: 700;
    gap: 6px 10px;
    justify-content: space-between;
    width: 100%;
}

.mwk-portlet-heading-context {
    align-items: baseline;
    display: flex;
    flex: 1 1 320px;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.mwk-portlet-breadcrumb-parent {
    color: var(--mwk-portlet-context-muted-color);
    font-weight: 500;
}

.mwk-portlet-breadcrumb-separator {
    color: color-mix(in srgb, var(--mwk-portlet-context-muted-color) 74%, transparent);
    font-size: 1.2em;
    line-height: 0.8;
}

.mwk-highlighted-identifier {
    align-self: flex-start;
    box-sizing: border-box;
    flex: 0 1 auto;
    float: none;
    margin: -2px 0 0 auto;
    max-width: min(42%, 520px);
    min-width: 64px;
    padding: 4px 9px;
    overflow-wrap: anywhere;
    border: 1px solid var(--mwk-theme-primary-dark);
    border-left: 3px solid var(--mwk-theme-color-14);
    border-radius: 3px;
    background: var(--mwk-theme-primary-dark);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--mwk-theme-primary-dark) 38%, transparent);
    color: var(--mwk-theme-color-02);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.mwk-highlighted-identifier table {
    width: auto;
    margin: 0 auto;
    border: 0 !important;
    border-collapse: collapse;
    background: transparent !important;
}

.mwk-highlighted-identifier td.resaltadotabletd,
.mwk-highlighted-identifier th {
    padding: 0 3px !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: inherit;
    line-height: inherit;
}

.mwk-portlet-subtitle {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 10px;
    font-weight: 400;
    margin-top: 5px;
    padding-top: 4px;
}

@media (max-width: 650px) {
    .mwk-highlighted-identifier {
        max-width: 100%;
        margin-left: auto;
    }
}

.mwk-sidebar-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px !important;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.mwk-sidebar-account-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    gap: 2px;
    margin-top: 14px;
    padding-top: 12px;
}

.mwk-sidebar-account-actions form {
    margin: 0;
}

.mwk-sidebar-account-actions button,
.mwk-sidebar-account-actions a {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff !important;
    display: flex;
    font-size: 0.9rem;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
    text-decoration: none !important;
    width: 100%;
}

.mwk-sidebar-account-actions button:hover,
.mwk-sidebar-account-actions button:focus-visible,
.mwk-sidebar-account-actions a:hover,
.mwk-sidebar-account-actions a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.mwk-sidebar-toggle i {
    pointer-events: none;
}

.mwkPortletTabsDesktop.mwk-tabs-hidden {
    display: none !important;
}

.responsivePortletTabs.mwk-tabs-visible {
    display: flex !important;
}

.responsivePortletTabs .maintabbutton {
    margin: 0;
    width: min(100%, 360px) !important;
    min-height: 40px;
    padding: 8px 12px;
    font-weight: 600;
    color: #344454;
    background: #f4f7fa;
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    box-shadow: none;
}

.responsiveTabsChevron {
    float: right;
    margin: 3px 2px 0 12px;
    transition: transform 160ms ease;
}

.responsivePortletTabs [aria-expanded="true"] .responsiveTabsChevron {
    transform: rotate(180deg);
}

.responsivePortletTabs .portletTabsBar {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: min(100%, 760px);
    z-index: 50;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3px;
    max-height: min(60vh, 420px);
    padding: 6px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--mwk-component-border);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(31, 55, 78, 0.22);
}

.responsivePortletTabs .portletTabsBar.w3-show {
    display: grid !important;
}

.responsivePortletTabs .portletTabsBar > div,
.responsivePortletTabs .portletTabsBar form {
    min-width: 0;
}

.responsivePortletTabs .subtabbutton {
    min-height: 38px;
    border: 0 !important;
    border-radius: 3px;
    padding: 7px 10px !important;
    background: #f4f7fa !important;
    color: #344454;
    white-space: normal;
}

.responsivePortletTabs .subtabbutton:hover,
.responsivePortletTabs .subtabbutton:focus-visible {
    background: #e2edf7 !important;
    outline: 2px solid steelblue;
    outline-offset: -2px;
}

.responsivePortletTabs .subtabbutton-selected {
    background: #e2edf7 !important;
    color: #263f52 !important;
    font-weight: 700;
    box-shadow: inset 3px 0 0 steelblue;
}

@media (max-width: 650px) {
    .responsivePortletTabs {
        display: flex;
    }

    .responsivePortletTabs .portletTabsBar {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .responsivePortletTabs .maintabbutton {
        width: 100% !important;
    }
}

@media (min-width: 601px) and (max-width: 650px) {
    #navigation {
        display: block !important;
        padding-top: 5px !important;
    }
}

.responsiveMenuPath {
    display: none;
}

@media (max-width: 780px) {
    #navigation {
        display: block !important;
        padding-top: 5px !important;
    }

    #navigationbar {
        display: none !important;
    }

    #column-1 {
        display: none !important;
    }

    #column-2 {
        width: 100% !important;
    }

    .responsiveMenuPath {
        display: flex;
        align-items: center;
        gap: 2px;
        width: fit-content;
        max-width: calc(100% - 8px);
        height: 35px;
        min-width: 0;
        margin: 0;
        padding: 0 10px 0 6px;
        color: #2f5668;
        background: transparent;
        font: bold 11px/32px Verdana, sans-serif;
        transition: color 160ms ease;
        transform: translate(2px, 4px);
    }

    .responsiveMenuPath:hover {
        color: #527b8e;
    }

    .responsiveMenuPathIcon,
    .responsiveMenuPathSeparator {
        flex: 0 0 auto;
        color: inherit;
        font-size: 8px;
    }

    .responsiveMenuPathMenu {
        flex: 0 0 auto;
        font-weight: 600;
    }

    .responsiveMenuPathSubMenu {
        min-width: 0;
        overflow: hidden;
        color: inherit;
        font-weight: normal;
        opacity: 0.84;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.page-link {
    z-index: 0;
}

.page-item.active .page-link {
    z-index: 0;
}

.fullSizeInputPortletTab {
    border: none;
    background: none;
    padding: 0px;
    text-decorator: none !important;
    font-weight: normal;
}

.menu_popup_modal {
    border: 1px solid #ccc;
    display: none;
    z-index: 1;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0px !important;
    width: 250px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);

}

.menu_popup_modal-content {
    list-style-type: none;
    background: #dfedf9 !important;
    margin: 0px !important;
    padding: 0px !important;
}

.menu_popup_modal-content li {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu_popup_modal-content li:hover {
    background-color: #f1f1f1;
}

.menu_popup_modal-content input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.menu_popup_modal-content hr {
    margin: 10px 0;
}

.menu_popup_modal-content button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.menu_popup_modal-content button:hover {
    background-color: #45a049;
}

.jsonFilterDiv {
    padding: 1px !important;
}

.jsonFilterInput {
    background-color: var(--mwk-form-control-background);
    width: 100%;
}

/*
 * Table actions used to be right-floated inside a one-line footer. When the
 * available width forced a second line, that line escaped the footer and
 * overlapped the following component. Keep the established visual order while
 * allowing the footer to grow with any number of wrapped actions.
 */
.mwk-table-actions {
    box-sizing: border-box;
    clear: both;
    display: flex;
    flex-flow: row-reverse wrap;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 0 !important;
    margin: 2px 0 3px;
    padding: 2px 2px 3px 0;
}

.mwk-table-actions > form {
    display: flex;
    margin: 0;
}

.mwk-table-actions > .btn-ft1,
.mwk-table-actions > form > .btn-ft1 {
    float: none !important;
    max-width: 100%;
    margin: 0 !important;
    white-space: normal;
}

/* Compatibility with the pre-5.01 W3.CSS container spacing used by MWK forms and portlets. */
.w3-container {
    padding: 1px;
}
.k3-process-close {
    color: #fff !important;
    background-color: #5b4b9a !important;
    border-color: #4c3e83 !important;
    box-shadow: 0 1px 3px rgba(48, 35, 92, 0.28);
}

.k3-process-close:hover,
.k3-process-close:focus {
    color: #fff !important;
    background-color: #493b7d !important;
    border-color: #3d316a !important;
}

.k3-process-reopen {
    color: #332600 !important;
    background-color: #e3ad32 !important;
    border-color: #c99318 !important;
}

.k3-process-reopen:hover,
.k3-process-reopen:focus {
    color: #241b00 !important;
    background-color: #ca941c !important;
    border-color: #ad7d13 !important;
}

/* Lightweight semantic actions shared by tables and forms.
 * Every action retains equal inline padding and its right border, including
 * the rightmost/only action. Hover must never end against the button text.
 */
.mwk-form > .bk-ft1-foot {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-flow: row-reverse wrap;
    gap: 0;
    justify-content: flex-start;
    margin: 2px 0 3px;
    min-height: 30px;
    overflow: visible;
    padding: 2px 2px 3px 0;
}

.mwk-form > .bk-ft1-foot > .btn-ft1,
.mwk-table-actions > .btn-ft1,
.mwk-table-actions > form > .btn-ft1 {
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid var(--mwk-component-border) !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    color: var(--mwk-theme-primary-dark) !important;
    float: none !important;
    font-size: 0.8em !important;
    line-height: 1.25;
    margin: 0 !important;
    min-height: 26px;
    padding: 5px 8px !important;
    text-decoration: none;
}

.mwk-form > .bk-ft1-foot > .btn-ft1 + .btn-ft1,
.mwk-table-actions > .btn-ft1:not(:first-child) {
    margin-right: 6px !important;
}

.mwk-table-actions > form:not(:first-child) {
    margin-right: 6px;
}

.mwk-form > .bk-ft1-foot > .btn-ft1:hover,
.mwk-form > .bk-ft1-foot > .btn-ft1:focus-visible,
.mwk-table-actions > .btn-ft1:hover,
.mwk-table-actions > .btn-ft1:focus-visible,
.mwk-table-actions > form > .btn-ft1:hover,
.mwk-table-actions > form > .btn-ft1:focus-visible {
    background: color-mix(in srgb, currentColor 9%, transparent) !important;
}

.mwk-form > .bk-ft1-foot > .btn-ft1:focus-visible,
.mwk-table-actions > .btn-ft1:focus-visible,
.mwk-table-actions > form > .btn-ft1:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 1px;
}

.mwk-form > .bk-ft1-foot > .k3-cancel,
.mwk-table-actions > .k3-cancel,
.mwk-table-actions > form > .k3-cancel {
    color: #963c3c !important;
}

.mwk-form > .bk-ft1-foot > .k3-secondary,
.mwk-table-actions > .k3-secondary,
.mwk-table-actions > form > .k3-secondary {
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 72%, #65727a) !important;
}

.mwk-form > .bk-ft1-foot > .k3-process-close,
.mwk-table-actions > .k3-process-close,
.mwk-table-actions > form > .k3-process-close {
    color: #5b4b9a !important;
}

.mwk-form > .bk-ft1-foot > .k3-process-reopen,
.mwk-table-actions > .k3-process-reopen,
.mwk-table-actions > form > .k3-process-reopen {
    color: #8a6200 !important;
}

.mwk-form-actions {
    padding-right: 2px !important;
    text-align: right !important;
}

.mwk-form-actions .dosubmit {
    color: var(--mwk-theme-primary-dark);
}

.google-signin-nav {
    float: right;
    list-style: none;
    margin: 14px 0 0 0;
}

.google-signin-nav a {
    height: 20px;
    line-height: 0;
    width: 26px;
}

.google-signin-nav img {
    display: block;
    height: 20px;
    margin: 0 auto;
    width: auto;
}

.mwk-main-header-bar .mwk-nav-label {
    display: inline-block;
    margin-left: 5px;
}

.mwk-public-welcome {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 42px auto 28px;
    max-width: 920px;
    padding: 18px;
    text-align: center;
}

.mwk-public-branding {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(22px, 4vw, 52px);
    justify-content: center;
    margin: 0 auto 48px;
    width: 100%;
}

.mwk-public-welcome-logo,
.mwk-public-product-logo {
    display: block;
    height: 86px;
    margin: 0;
    max-width: min(300px, 42vw);
    object-fit: contain;
    width: auto;
}

.mwk-public-authentication {
    width: 100%;
}

.mwk-public-welcome h2 {
    color: var(--mwk-theme-primary-dark);
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    margin: 0 0 20px;
}

.mwk-public-auth-options {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.mwk-public-auth-option {
    align-items: center;
    background: var(--mwk-theme-primary-dark);
    border: 2px solid color-mix(in srgb, var(--mwk-theme-primary-dark) 86%, #ffffff);
    border-radius: 10px;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 112px;
    padding: 18px 12px;
    text-decoration: none !important;
    width: 100%;
}

.mwk-public-auth-option > i {
    font-size: 2rem;
}

.mwk-public-auth-option:hover,
.mwk-public-auth-option:focus-visible {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 88%, #000000);
    border-color: var(--mwk-navigation-indicator);
    outline: none;
}

.mwk-public-auth-option:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mwk-theme-primary-dark) 28%, transparent);
}

.mwk-public-auth-google,
.mwk-public-auth-microsoft {
    background: #fff;
    border-color: color-mix(in srgb, var(--mwk-theme-primary-dark) 26%, #ffffff);
    color: #263238 !important;
}

.mwk-public-auth-google:hover,
.mwk-public-auth-google:focus-visible,
.mwk-public-auth-microsoft:hover,
.mwk-public-auth-microsoft:focus-visible {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 5%, #ffffff);
    border-color: var(--mwk-theme-primary-dark);
}

.mwk-public-auth-google img {
    height: 38px;
    width: 38px;
}

.mwk-public-auth-microsoft > i {
    color: #0078d4;
}

@media (min-width: 681px) and (max-width: 900px) {
    .mwk-public-auth-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Unavailable methods remain legible and occupy the same space as active ones. */
.mwk-public-auth-option:disabled,
.mwk-public-auth-option[aria-disabled='true'] {
    background: color-mix(in srgb, var(--mwk-theme-primary-dark) 12%, #ffffff);
    border-color: color-mix(in srgb, var(--mwk-theme-primary-dark) 24%, #ffffff);
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 35%, #4b5563) !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.mwk-public-auth-option:disabled > img,
.mwk-public-auth-option[aria-disabled='true'] > img,
.mwk-public-auth-option:disabled > i {
    filter: grayscale(1);
    opacity: .55;
}

.mwk-public-auth-unavailable {
    display: block;
    font-size: .75em;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 4px;
}

.mwk-public-account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
    margin-top: 22px;
    width: 100%;
}

.mwk-public-account-links a {
    align-items: center;
    color: var(--mwk-theme-primary-dark);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    padding: 8px;
}

.mwk-public-account-links a:hover,
.mwk-public-account-links a:focus-visible {
    color: color-mix(in srgb, var(--mwk-theme-primary-dark) 82%, #000000);
    text-decoration: underline;
}

.mwk-public-multiplique-logo {
    display: block;
    height: auto;
    margin: 62px auto 0;
    max-width: min(190px, 48vw);
    opacity: .82;
}

.mwk-public-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 16px;
    font-size: .85rem;
}
.mwk-public-legal-links a {
    color: var(--mwk-table-header-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mwk-public-legal-links a:focus-visible {
    outline: 2px solid var(--mwk-table-accent);
    outline-offset: 4px;
}

#MWK_STANDARD_LOGIN .modal-content,
#MWK_TWO_FACTOR_LOGIN .modal-content {
    border-radius: 10px;
    max-width: 460px !important;
}

@media (max-width: 650px) {
    .mwk-public-welcome {
        margin-top: 22px;
        padding: 12px;
    }

    .mwk-public-branding {
        gap: 14px;
        margin-bottom: 24px;
    }

    .mwk-public-auth-options {
        grid-template-columns: 1fr;
    }

    .mwk-public-auth-option {
        flex-direction: row;
        min-height: 72px;
    }

    .mwk-public-welcome-logo,
    .mwk-public-product-logo {
        height: 52px;
        max-width: min(210px, 72vw);
    }

    .mwk-public-multiplique-logo {
        margin-top: 34px;
        max-width: min(145px, 44vw);
    }
}

@media (max-width: 600px) {
    .mwk-primary-menu-item button {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mwk-header-action button,
    .mwk-header-action-link,
    .mwk-sidebar-toggle {
        min-width: 42px;
        padding-left: 9px;
        padding-right: 9px;
    }

    .mwk-menu-scroll-indicator {
        flex-basis: 24px;
        width: 24px;
    }

    .mwk-primary-submenu-panel {
        border-left: 0;
        border-radius: 0 0 9px 9px;
        border-right: 0;
        left: 0 !important;
        max-height: calc(100vh - var(--mwk-header-height));
        min-width: 0;
        right: 0;
        width: 100vw;
    }
}

/* Excel scope chooser shared by HTML and JSON tables. */
.mwk-column-filter-dialog.mwk-table-export-dialog { width: min(520px, calc(100vw - 24px)); }
.mwk-table-export-options { display: grid; gap: 10px; }
.mwk-table-export-options > label {
    flex-direction: row; align-items: center; gap: 12px; padding: 12px;
    border: 1px solid #becdd4; border-radius: 6px; cursor: pointer;
}
.mwk-table-export-options > label:has(:checked) {
    border-color: var(--mwk-link-color, #25758a);
    background: color-mix(in srgb, var(--mwk-link-color, #25758a) 8%, transparent);
}
.mwk-table-export-options input[type="radio"] {
    flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0;
    accent-color: var(--mwk-link-color, #25758a);
}
.mwk-table-export-options > label > span { display: grid; gap: 4px; }
.mwk-table-export-count { color: var(--mwk-link-color, #25758a); }
.mwk-table-export-dialog button:disabled { opacity: .5; cursor: wait; }
