
:root {
    /* Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-subtle: #e2e8f0;
    --bg-hover: #f8fafc;
    
    /* Borders */
    --border-subtle: #f1f5f9;
    --border-default: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-interactive: #94a3b8;
    --border-hover: #cbd5e1;
    
    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-disabled: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Brand Text */
    --brand-text-color: #1e293b;
    --brand-text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    --brand-subtitle-color: rgba(30, 41, 59, 0.8);
    --brand-subtitle-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    
    /* MudBlazor Compatible Variables */
    --mud-palette-surface: #ffffff;
    --mud-palette-background: #f8fafc;
    --mud-palette-background-grey: #f1f5f9;
    --mud-palette-text-primary: #1e293b;
    --mud-palette-text-secondary: #64748b;
    --mud-palette-divider: #e2e8f0;
    --mud-palette-primary: #3b82f6;
    --mud-palette-primary-darken: #1d4ed8;
    --mud-palette-primary-lighten: #dbeafe;
    --mud-palette-success: #10b981;
    --mud-palette-success-lighten: #ecfdf5;
    --mud-palette-warning: #f59e0b;
    --mud-palette-warning-lighten: #fffbeb;
    --mud-palette-error: #ef4444;
    --mud-palette-info: #0ea5e9;

    /* Dashboard Tile Spacing */
    --dashboard-title-gap: 12px;
    --dashboard-content-inset: 14px;

    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --info: #0ea5e9;
    --info-bg: #f0f9ff;
    
    /* Login System */
    --login-bg-image: url('images/LightMode.PNG');
    --login-container-bg: rgba(255, 255, 255, 0.8);
    --login-container-border: rgba(255, 255, 255, 0.3);
    --login-container-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --login-input-bg: transparent;
    --login-input-border: rgba(203, 213, 225, 0.6);
    --login-input-border-hover: rgba(148, 163, 184, 0.8);
    --login-input-border-focus: #dc2626;
    --login-label-color: rgba(100, 116, 139, 0.9);
    --login-text-color: #1e293b;
    --login-placeholder-color: rgba(100, 116, 139, 0.6);
    
    /* Footer System */
    --footer-border-color: #e2e8f0;
    --footer-text-color: #64748b;
    --footer-link-color: #ef4444;
    --footer-link-hover: #dc2626;
    
    /* Button System */
    --button-primary-bg: #dc2626;
    --button-primary-color: #ffffff;
    --button-secondary-bg: transparent;
    --button-secondary-color: #1f2937;
    --button-secondary-border: #1f2937;
    --button-microsoft-bg: transparent;
    --button-microsoft-color: #1f2937;
    --button-microsoft-border: #e5e7eb;
    
    --chip-selected-bg: #e9ecef;
    --chip-selected-border: #adb5bd;
    --chip-selected-text: #495057;
    --chip-unselected-bg: #f8f9fa;
    --chip-unselected-border: #dee2e6;
    --chip-unselected-text: #495057;
}

:root[data-theme="dark"] {
    /* Dark Mode */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --bg-subtle: #2a2a2a;
    --bg-hover: #404040;
    
    /* Borders */
    --border-subtle: #2a2a2a;
    --border-default: #3a3a3a;
    --border-strong: #525252;
    --border-interactive: #71717a;
    --border-hover: #525252;
    
    /* Text */
    --text-primary: #f4f4f5;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-disabled: #71717a;
    --text-inverse: #1e293b;
    
    /* Brand Text */
    --brand-text-color: #ffffff;
    --brand-text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --brand-subtitle-color: rgba(255, 255, 255, 0.9);
    --brand-subtitle-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    
    /* MudBlazor Compatible Variables - Dark Mode */
    --mud-palette-surface: #1a1a1a;
    --mud-palette-background: #0f0f0f;
    --mud-palette-background-grey: #262626;
    --mud-palette-text-primary: #f4f4f5;
    --mud-palette-text-secondary: #a1a1aa;
    --mud-palette-divider: #3a3a3a;
    --mud-palette-primary: #3b82f6;
    --mud-palette-primary-darken: #1e40af;
    --mud-palette-primary-lighten: #1e3a8a;
    --mud-palette-success: #10b981;
    --mud-palette-success-lighten: #064e3b;
    --mud-palette-warning: #f59e0b;
    --mud-palette-warning-lighten: #92400e;
    --mud-palette-error: #ef4444;
    --mud-palette-info: #06b6d4;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-bg: #064e3b;
    --warning: #f59e0b;
    --warning-bg: #92400e;
    --error: #ef4444;
    --error-bg: #991c1b;
    --info: #06b6d4;
    --info-bg: #164e63;
    
    /* Login System */
    --login-bg-image: url('images/DarkMode.png');
    --login-container-bg: rgba(30, 41, 59, 0.9);
    --login-container-border: rgba(148, 163, 184, 0.3);
    --login-container-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.2);
    --login-input-bg: rgba(51, 65, 85, 0.6);
    --login-input-border: rgba(148, 163, 184, 0.4);
    --login-input-border-hover: rgba(148, 163, 184, 0.6);
    --login-input-border-focus: rgba(229, 62, 62, 0.8);
    --login-label-color: rgba(255, 255, 255, 0.8);
    --login-text-color: #ffffff;
    --login-placeholder-color: rgba(255, 255, 255, 0.5);
    
    /* Footer System */
    --footer-border-color: rgba(148, 163, 184, 0.3);
    --footer-text-color: rgba(255, 255, 255, 0.7);
    --footer-link-color: #ef4444;
    --footer-link-hover: #dc2626;
    
    /* Button System */
    --button-primary-bg: #dc2626;
    --button-primary-color: #ffffff;
    --button-secondary-bg: rgba(55, 65, 81, 0.3);
    --button-secondary-color: #ffffff;
    --button-secondary-border: rgba(148, 163, 184, 0.6);
    --button-microsoft-bg: rgba(55, 65, 81, 0.5);
    --button-microsoft-color: #ffffff;
    --button-microsoft-border: #374151;
    
    /* Status Filter Chips */
    --chip-selected-bg: #3a3a3a;
    --chip-selected-border: #525252;
    --chip-selected-text: #e4e4e7;
    --chip-unselected-bg: #262626;
    --chip-unselected-border: #3a3a3a;
    --chip-unselected-text: #a1a1aa;
}
    
        
:root[data-theme="dark"] .mud-input-helper-text {
    color: var(--text-muted) !important;
    background-color: transparent !important;
}
        
html, body {
    font-family: "Manrope", Arial, serif !important;
    font-optical-sizing: auto;
    font-style: normal;
}

a, .btn-link {
    color: #006bb7;
}

.mud-drawer-mini .mud-nav-link {
    justify-content: center !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.tab-item {
    background: #ffffff;
    padding-right: 20px;
    padding-left: 20px;
}

.tab-content {
    background: #ffffff !important;
    padding-top: 3px;
    margin-top: 30px;
}

.submit-btn.mud-disabled {
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: rgba(0, 0, 0, 0.5) !important;
}

.mud-tabs-tabbar {
    border-bottom: solid #E9E9E9 !important;
    border-bottom-width: 0.4px !important;
    box-shadow: 0px 3px 3.5px -2px rgba(0, 0, 0, 0.12) !important;
}

.mud-tabs .mud-tab-active {
    transition: none !important;
    z-index: 20;
}

:root[data-theme="dark"] .EasyMDEContainer .CodeMirror,
:root[data-theme="dark"] .EasyMDEContainer .CodeMirror-scroll {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

:root[data-theme="dark"] .EasyMDEContainer .editor-toolbar {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-default) !important;
}

    :root[data-theme="dark"] .EasyMDEContainer .editor-toolbar a {
        color: var(--text-secondary) !important;
    }

:root[data-theme="dark"] .EasyMDEContainer .editor-statusbar {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
}

/*.mud-tabs .mud-tabs-toolbar .mud-tooltip-root .mud-tab-active {*/
/*    color: #940000 !important;*/
/*}*/

.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.profile-btn {
    box-shadow: 0px 0px 1.5px 0px rgba(0, 0, 0, 0.12) !important;
}

    .profile-btn .mud-button {
        text-transform: none !important;
    }

.client-active .profile-btn .mud-button {
    text-transform: none !important;
}

.profile-btn, .profile-btn * {
    border: none !important;
    outline: none !important;
}

    .profile-btn .mud-button-icon-end svg {
        fill: #1c1c1c !important;
    }

.questionnaire-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.save-btn {
    min-width: 125px;
}

.save-btn-preview {
    min-width: 75px;
}

    .save-btn-preview .mud-typography {
        font-size: 11px !important;
    }


@media (min-width: 600px) {
    .header .mud-toolbar-gutters {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 1503px) {
    .header {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

.header .mud-toolbar-gutters {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 1504px) {
    .header {
        width: 1400px !important;
    }
}

.responsive-logo {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.active-row {
    font-weight: bold;
    border-left: 5px solid #28a745;
    transition: background-color 0.3s ease;
}

.active-client {
    border: 1px solid #28a745;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    padding-left: 15px !important;
}

.navbar-item a {
    margin: 8px 15px;
}

button.mud-nav-link:focus {
    background-color: transparent !important;
}

button.mud-nav-link:hover {
    background-color: transparent !important;
}

.navbar-item .mud-nav-link {
    padding: 7px 10px;
    border-radius: 8px;
}

    .navbar-item .mud-nav-link.active {
        border-inline-end: none !important;
    }

.mud-nav-link:hover {
    color: inherit !important;
}

.upload-logo-button {
    width: 250px;
    height: 130px;
    border: 1px solid #616161;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 4px;
}

    .upload-logo-button:hover {
        background-color: #f8f9fa;
        transform: scale(1.05);
        cursor: pointer;
    }

.upload-logo-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.upload-logo-button .mud-icon {
    font-size: 48px;
    color: #940000;
}

.grid-item-description {
    margin-top: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.app-bar {
    background-color: #eeeeee88;
    width: 100%;
    margin: 0 auto;
    padding-top: 12px;
    display: flex;
}

.mud-list-item-text p {
    font-size: 14px !important;
}

.centered-items {
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width-tooltip .mud-tooltip-root {
    width: 100% !important;
}

.full-width-tooltip .mud-button-label {
    justify-content: flex-start !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.stat-name {
    text-transform: uppercase;
    font-size: 10px;
    width: 100%;
}
.error-badge {
    z-index: 999 !important;
    color: #e50000 !important;
    background-color: transparent !important;
}

.error-badge svg {
    width: 20px;
    height: 20px;
    z-index: 999 !important;
    
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.placeholder-image {
    background-color: #f5f5f5;
    display: flex;
    width: 100%;
    height: 80px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #888;
    border-radius: 10px;
    object-fit: contain;
}

.questionnaire-tree .mud-treeview-item-arrow {
    display: none !important;
}

.filter-input .mud-select {
    display: flex !important;
    align-items: flex-end !important;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    justify-content: center;
    border-radius: 4px;
}

.icon-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

    .icon-item:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .icon-item.selected {
        background-color: rgba(0, 0, 0, 0.2);
    }

.actions-title {
    font-size: 14px;
    font-weight: 600;
    color: #940000;
    margin-bottom: 4px;
}

.page-container.mud-grid-spacing-xs-6 {
    width: 100% !important;
}

.mud-divider.bolder-divider {
    opacity: 1 !important;
    height: 2px;
}

.multi-line-textfield .mud-input textarea {
    overflow-y: auto !important;
    resize: vertical;
    max-height: 200px;
}

.label-question {
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 15px;
}

.fixed-appbar {
    border-bottom: 0.5px #e9ebee solid;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .fixed-appbar.dark {
        border-color: var(--border-subtle) !important;
    }

.email-menu-container {
    border: 0.5px solid var(--border-default) !important;
    border-radius: 8px;
}

.change-password-btn .mud-tooltip-inline {
    width: 100% !important;
}

.gradient.mud-picker-static {
    min-width: 200px !important;
    max-width: 250px !important;
}

.drawer {
    border-color: #e9ebee !important;
    transition: background-color 0.3s ease;
}

    .drawer.dark {
        border-color: var(--border-subtle) !important;
    }

.delete-dialog .mud-dialog-actions {
    width: 100% !important;
}

.delete-dialog .mud-dialog-title {
    display: none;
}

.mud-table .mud-table-container .mud-table-root thead tr {
    background-color: var(--bg-tertiary) !important;
}

    .mud-table .mud-table-container .mud-table-root thead tr th {
        font-weight: 600 !important;
        font-size: 11px !important;
        color: var(--text-muted) !important;
        background-color: var(--bg-tertiary) !important;
    }

.mud-table-toolbar {
    border-bottom: 0.5px var(--border-default) solid;
}

.mud-table-container {
    background: var(--bg-secondary) !important;
}

.mud-table-body:first-child {
    border-top: none !important;
}

.thick-bars .mud-chart-bar {
    width: 80% !important;
}

.sanction-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.entity-selector {
    position: relative;
}

.entity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.entity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

    .entity-tag:hover {
        background-color: #f1f5f9;
        border-color: #d1d5db;
    }

    .entity-tag.selected {
        background-color: #dbeafe;
        border-color: #3b82f6;
        color: #1e40af;
    }

        .entity-tag.selected::before {
            content: '✓';
            margin-right: 4px;
            font-size: 11px;
        }

.activity-card {
    /*border: 1px var(--border-default) solid;*/
    /*border-radius: 12px;*/
    padding: 10px;
    margin-bottom: 24px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.date-chip {
    font-weight: 600;
}

.timeline-item .time {
    opacity: .75;
    white-space: nowrap;
}

.timeline-item .row {
    display: flex;
    align-items: center;
}

.mud-timeline-item-dot-inner {
    width: 10px !important;
    height: 10px !important;
}

.grid-stack-item-content {
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 8px;
    height: 100%;
    bottom: 40px !important;
    position: relative !important;
}

.gs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
}

.drag-handle {
    cursor: move;
    user-select: none;
}

.login-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

.fixed-appbar.dark {
    border-color: var(--border-subtle) !important;
}

@media (max-width: 1024px) {
    .login-wrapper {
        flex-direction: column;
        padding: 40px 20px;
        justify-content: center;
    }

    .brand-overlay {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 40px;
        text-align: center;
        max-width: none;
    }

    .brand-content {
        text-align: center;
    }

    .brand-title {
        font-size: 36px;
    }

    .login-form-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 20px 15px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-subtitle {
        font-size: 16px;
    }

}

.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.forgot-password {
    color: var(--error);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--footer-link-hover);
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.large {
    font-size: 20px;
    font-weight: 600;
}

.detail-value.link {
    color: var(--text-secondary);
    text-decoration: none;
    word-break: break-all;
}

.detail-value.link:hover {
    text-decoration: underline;
}

.highlight-box {
    padding: 16px;
    margin: 16px 0;
    margin-left: 0px !important;
    padding-left: 0px !important;
}

.remark-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.remark-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.remark-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}


.fuzzy-section.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.fuzzy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fuzzy-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #374151;
}

.fuzzy-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.fuzzy-controls {
    display: none;
    animation: slideDown 0.3s ease;
}

.fuzzy-controls.active {
    display: block;
}

.preset-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.preset-btn:hover, .preset-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}


.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}


.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.coverage-tag {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    margin: 1px;
}

.error-chip {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.dashboard-grid {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.flex-item {
    flex: 1;
    margin: 3px;
}

.dashboard-card {
    border: 1px solid var(--border-default);
    border-radius: 12px !important;
    background: var(--bg-secondary);
    height: 140px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border-color: var(--border-hover);
}

.metric-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    border-radius: 50%;
    transform: translate(20px, -20px);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover .metric-bg {
    opacity: 0.25;
}

.metric-bg.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-bg.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-bg.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.metric-bg.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Additional vibrant color variations for different card types */
.metric-bg.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.metric-bg.secondary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-bg.teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.metric-bg.orange {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-value {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 32px;
}

.card-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.card-trend {
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.card-trend.positive {
    color: var(--success);
}

.card-trend.negative {
    color: var(--error);
}

.card-trend.neutral {
    color: var(--text-muted);
}

.status-card {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.875rem;
}

.card-header {
    align-items: center;
    margin-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.green {
    background: var(--success);
}

.dot.orange {
    background: var(--warning);
}

.card-title {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-body {
    flex: 1;
}

.card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.caption {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.75rem;
}

.datatable-container {
    display: flex;
    flex-direction: column;
    margin: 24px auto;
    width: 100%;
    max-width: 1400px;
}

.mud-table-row:hover {
    background-color: var(--bg-tertiary) !important;
    transition: background-color 0.2s ease-in-out;
}

.datatable-container .mud-table-cell div[style*="border-radius: 50%"] {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.datatable-container .mud-chip {
    border-radius: 16px;
    font-size: 12px;
    height: 24px;
}

.datatable-container .mud-button-outlined:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
}

.datatable-container .mud-table-head .mud-table-cell {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-subtle) 100%);
    border-bottom: 2px solid var(--border-default);
}

.mud-data-grid.no-toolbar .mud-table-toolbar {
    display: none !important;
}

.instruction-text {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.status-label {
    font-weight: 500 !important;
    font-size: 13px !important;
    color: var(--text-secondary);
}

.grid-stack > .grid-stack-item {
    padding: 6px;
}

.grid-stack-item-content.gs-card {
    height: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.gs-card .gs-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gs-card .gs-body .status-info-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gs-card .gs-body .status-info-card .mud-card-content {
    flex: 1;
}

.grid-stack .ui-resizable-handle,
.grid-stack .gs-resize-handle {
    display: none !important;
    pointer-events: none !important;
}

.data-monitor-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.data-monitor-header {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 6px !important;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    color: #28a745 !important;
    font-size: 24px !important;
}

.header-title {
    color: #495057 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.sanction-date {
    flex-shrink: 0;
}

.date-text {
    color: #6c757d !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.comment-box .mud-input-adornment-start{
    align-items: flex-end !important;
    margin-top: 5px;

}
.remark-box .mud-input-adornment-start{
    align-items: flex-end !important;
    margin-top: -8px;
}

body:has(#country-autocomplete-dropdown) .mud-popover .mud-list::-webkit-scrollbar {
    width: 16px !important;
    height: 16px !important;
}

body:has(#country-autocomplete-dropdown) .mud-popover .mud-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    margin: 4px !important;
}

body:has(#country-autocomplete-dropdown) .mud-popover .mud-list::-webkit-scrollbar-thumb {
    background: #94a3b8 !important;
    border-radius: 8px !important;
    border: 3px solid #f1f5f9 !important;
}

body:has(#country-autocomplete-dropdown) .mud-popover .mud-list::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
}

body:has(#country-autocomplete-dropdown) .mud-popover .mud-list {
    scrollbar-width: auto !important;
    scrollbar-color: #94a3b8 #f1f5f9 !important;
}
.type-card {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(89, 74, 226, 0.15);
}

.brand-overlay {
    position: absolute;
    left: 200px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 500px;
}

.brand-content {
    text-align: left;
}

.brand-title {
    font-size: 37px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.1;
    color: var(--brand-text-color);
    text-shadow: var(--brand-text-shadow);
}

.brand-subtitle {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
    color: var(--brand-subtitle-color);
    text-shadow: var(--brand-subtitle-shadow);
}
.login-form-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: 60px;
}

.login-container {
    backdrop-filter: blur(10px);
    position: relative;
    background: var(--login-container-bg);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--login-container-shadow);
    border: 1px solid var(--login-container-border);
    color: var(--login-text-color);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.login-container .mud-input-root {
    background-color: var(--login-input-bg) !important;
    border-radius: 8px !important;
}

.login-container .mud-input-root:hover {
    background-color: var(--login-input-bg) !important;
    opacity: 0.8;
}

.login-container .mud-input-root.mud-input-root-outlined .mud-input-root-border {
    border-color: var(--login-input-border) !important;
}

.login-container .mud-input-root.mud-input-root-outlined:hover .mud-input-root-border {
    border-color: var(--login-input-border-hover) !important;
}

.login-container .mud-input-root.mud-input-root-outlined.mud-input-root-focused .mud-input-root-border {
    border-color: var(--login-input-border-focus) !important;
}

.login-container .mud-input-label {
    color: var(--login-label-color) !important;
}

.login-container .mud-input {
    color: var(--login-text-color) !important;
}

.login-container .mud-input::placeholder {
    color: var(--login-placeholder-color) !important;
}

:root[data-theme="dark"] .login-container input:-webkit-autofill,
:root[data-theme="dark"] .login-container input:-webkit-autofill:hover,
:root[data-theme="dark"] .login-container input:-webkit-autofill:focus,
:root[data-theme="dark"] .login-container input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(51, 65, 85, 0.95) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff !important;
}


.login-container input:-webkit-autofill,
.login-container input:-webkit-autofill:hover,
.login-container input:-webkit-autofill:focus,
.login-container input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.95) inset !important;
    -webkit-text-fill-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #1e293b !important;
}

.footer-links {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--footer-border-color);
}

.footer-text {
    font-size: 14px;
    color: var(--footer-text-color);
    margin-bottom: 12px;
}

.support-link {
    color: var(--footer-link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.support-link:hover {
    color: var(--footer-link-hover);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--footer-text-color);
}

.password-field-wrapper {
    position: relative;
}
.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.password-toggle-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ========================================
   Report Templates Page
   ======================================== */
.report-viewer-container .dxrv-side-panel,
.report-viewer-container .dxrv-tab-panel,
.report-viewer-container .dxbrv-gridlayout-side-bar,
.report-viewer-container .dxbrv-tabs {
    display: none !important;
}

.report-viewer-container .dxrv-preview-wrapper,
.report-viewer-container .dxbrv-surface-container {
    width: 100% !important;
}

/* ================================================================
   REPORT TEMPLATES PAGE (new design)
   ================================================================ */

.rt-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Page header */
.rt-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.rt-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.rt-page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Scope toggle */
.rt-scope-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.rt-scope-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.rt-scope-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.rt-scope-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rt-scope-icon {
    font-size: 16px !important;
    opacity: 0.8;
    vertical-align: middle;
}

/* Loading */
.rt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

/* Toolbar */
.rt-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.rt-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 260px;
    flex: 1;
    max-width: 380px;
}

.rt-search-input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
}

.rt-search-input::placeholder {
    color: var(--text-muted);
}

.rt-category-filters {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rt-filter-chip {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.rt-filter-chip:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.rt-filter-chip.active {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Cards grid */
.rt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.rt-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rt-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.rt-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rt-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 8px;
    flex-shrink: 0;
}

.rt-card-title-area {
    flex: 1;
    min-width: 0;
}

.rt-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rt-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.rt-card-code {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.rt-customized-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

:root[data-theme="dark"] .rt-customized-badge {
    background: #1e3a5f;
    color: #93c5fd;
}

.rt-customized-icon {
    font-size: 12px;
}

.rt-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* .rt-card-footer is defined later under "CARD FOOTER + SPLIT BUTTON". */

.rt-card-version {
    font-weight: 500;
}

.rt-card-sep {
    opacity: 0.5;
}

/* Empty state */
.rt-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 24px;
}

/* ================================================================
   REPORT TEMPLATE EDITOR (rte-*)
   ================================================================ */

.rte-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px); /* minus app nav bar */
    overflow: hidden;
}

/* Top bar */
.rte-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-secondary);
    flex-shrink: 0;
    gap: 12px;
}

.rte-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rte-back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}

.rte-back-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.rte-topbar-sep {
    color: var(--text-muted);
    font-size: 14px;
}

.rte-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rte-version-chip {
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-default);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.rte-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Body layout */
.rte-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Properties panel */
.rte-props-panel {
    width: 300px;
    min-width: 280px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-secondary);
}

.rte-props-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
}

.rte-props-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.rte-props-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rte-props-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.rte-accordions {
    flex: 1;
    overflow-y: auto;
}

/* Accordion */
.rte-accordion {
    border-bottom: 1px solid var(--border-default);
}

.rte-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.1s;
}

.rte-accordion-header:hover {
    background: var(--bg-tertiary);
}

.rte-accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.rte-accordion-body {
    padding: 4px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Form fields */
.rte-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rte-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.rte-input {
    padding: 8px 10px;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.rte-input:focus {
    border-color: var(--mud-palette-primary);
}

/* Toggle */
.rte-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.rte-toggle-label {
    font-size: 13px;
    color: var(--text-primary);
}

.rte-toggle {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--border-strong);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.rte-toggle.on {
    background: var(--mud-palette-primary);
}

.rte-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rte-toggle.on .rte-toggle-thumb {
    left: 20px;
}

/* Logo */
.rte-logo-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px dashed var(--border-default);
    border-radius: 6px;
    margin-bottom: 6px;
}

.rte-logo-existing {
    font-size: 12px;
    color: var(--text-muted);
}

.rte-logo-remove {
    font-size: 12px;
    color: var(--mud-palette-error);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.rte-upload-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.rte-upload-btn:hover {
    background: var(--bg-tertiary);
}

/* Colors */
.rte-color-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rte-color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rte-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
    padding: 0;
}

.rte-swatch:hover {
    transform: scale(1.1);
}

.rte-swatch.selected {
    border-color: var(--text-primary);
    outline: 1px solid var(--bg-secondary);
    outline-offset: -3px;
}

.rte-color-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rte-color-preview {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    flex-shrink: 0;
}

.rte-color-hex {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
}

/* Font grid */
.rte-font-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rte-font-card {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    gap: 2px;
}

.rte-font-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-tertiary);
}

.rte-font-card.selected {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-primary-lighten);
}

.rte-font-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rte-font-sample {
    font-size: 11px;
    color: var(--text-muted);
}

/* Preview panel */
.rte-preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

.rte-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.rte-preview-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.rte-preview-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 500;
}

:root[data-theme="dark"] .rte-preview-badge {
    background: #064e3b;
    color: #6ee7b7;
}

.rte-preview-area {
    flex: 1;
    overflow: auto;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.rte-preview-loading,
.rte-preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.rte-report-viewer {
    width: 100%;
    max-width: 900px;
}

.rte-report-viewer .dxbrv-surface-container {
    width: 100% !important;
}

/* Hide the DevExpress viewer sidebar (filter/search/settings tab strip) */
.rte-report-viewer .dxbrv-tabs,
.rte-report-viewer .dxbrv-tab-panel {
    display: none !important;
}

/* With the tab strip hidden, let the surface fill the whole width */
.rte-report-viewer .dxbrv-viewbox,
.rte-report-viewer .dxbl-loading-panel-target-content {
    width: 100% !important;
}

/* ── Client override banner ───────────────────────────────────────────── */

.rte-override-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #eff6ff;
    border-top: 1px solid #bfdbfe;
    flex-shrink: 0;
}

:root[data-theme="dark"] .rte-override-banner {
    background: #1e3a5f;
    border-top-color: #2563eb55;
}

.rte-override-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #1e40af;
    flex: 1;
    min-width: 0;
}

:root[data-theme="dark"] .rte-override-banner-left {
    color: #93c5fd;
}

.rte-reset-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rte-reset-link:hover {
    color: #1e40af;
}

:root[data-theme="dark"] .rte-reset-link {
    color: #93c5fd;
}
/* ============================================================
   CARD FOOTER + SPLIT BUTTON
   ============================================================ */

.rt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

.rt-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* Split button */
.rt-split-btn {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.rt-split-primary,
.rt-split-chevron {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.rt-split-primary {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.rt-split-chevron {
    border-radius: 0 6px 6px 0;
    padding: 5px 6px;
}

.rt-split-primary:hover,
.rt-split-chevron:hover {
    background: var(--border-default);
    border-color: var(--border-strong);
}

/* Dropdown menu */
.rt-split-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    padding: 4px;
}

.rt-split-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}

.rt-split-menu-item:hover {
    background: var(--border-default);
}

.rt-split-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--border-default);
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 1px;
}

.rt-split-menu-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.rt-split-menu-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

/* Badges */
.rt-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.rt-badge-recommended {
    background: #dcfce7;
    color: #166534;
}

:root[data-theme="dark"] .rt-badge-recommended {
    background: #14532d;
    color: #86efac;
}

.rt-badge-power {
    background: var(--border-default);
    color: var(--text-secondary);
}

/* Dropdown backdrop (captures outside clicks) */
.rt-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
}

/* ============================================================
   ADVANCED DESIGNER PAGE  (rd-*)
   ============================================================ */

.rd-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top bar */
.rd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
    gap: 12px;
}

.rd-topbar-left,
.rd-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.rd-back-btn:hover {
    background: var(--border-default);
    color: var(--text-primary);
}

.rd-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
    border-left: 1px solid var(--border-default);
}

.rd-title-icon {
    color: var(--text-muted);
}

.rd-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rd-mode-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    border: 1px solid var(--border-default);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.rd-repx-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-default);
    font-size: 10px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-default);
}

.rd-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-default);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.rd-switch-btn:hover {
    background: var(--border-default);
    border-color: var(--border-strong);
}

/* Amber context banner */
.rd-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    font-size: 13px;
    color: #92400e;
    flex-shrink: 0;
}

:root[data-theme="dark"] .rd-banner {
    background: #1c1a10;
    border-bottom-color: #92400e;
    color: #fde68a;
}

.rd-banner-icon {
    color: #d97706;
    flex-shrink: 0;
}

.rd-client-override-pill {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: 99px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

:root[data-theme="dark"] .rd-client-override-pill {
    background: #292010;
    border-color: #92400e;
    color: #fde68a;
}

/* Loading / unsupported states */
.rd-loading,
.rd-unsupported {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
}

/* Designer host — fills all remaining height */
.rd-designer-host {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rd-designer-host > * {
    flex: 1;
    min-height: 0;
}

/* ── VAT Check match badges ─────────────────────────────────────── */
.vat-input-wrapper {
    position: relative;
}

.vat-match-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
    pointer-events: none;
}

.vat-match-badge.vat-badge-inline {
    position: static;
    transform: none;
}

.vat-badge-a { background: #dcfce7; color: #166534; }
.vat-badge-b { background: #fee2e2; color: #991b1b; }
.vat-badge-c { background: #f1f5f9; color: #64748b; }

/* ═══════════════════════════════════════════════════════════════════════════
   DOCUMENTATION PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Shell ──────────────────────────────────────────────────────────────── */
.docs-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #f7f8fa;
    font-family: Roboto, -apple-system, system-ui, sans-serif;
}

/* ─── Top bar ────────────────────────────────────────────────────────────── */
.docs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    gap: 16px;
    z-index: 10;
}

.docs-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.docs-topbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.docs-page-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1f2937;
    line-height: 1.2 !important;
}

.docs-version-label {
    color: #6b7280 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.docs-back-btn {
    font-size: 13px !important;
    white-space: nowrap;
}

.docs-topbar-right {
    flex-shrink: 0;
}

.docs-search {
    min-width: 340px;
}

.docs-search-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
}

.docs-search-id {
    font-size: 12px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    flex-shrink: 0;
}

.docs-search-title {
    font-size: 13px;
    color: #1f2937;
    flex: 1;
}

.docs-search-chapter {
    font-size: 11px;
    color: #6b7280;
    flex-shrink: 0;
}

/* ─── Body ───────────────────────────────────────────────────────────────── */
.docs-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ─── TOC sidebar ────────────────────────────────────────────────────────── */
.docs-toc {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 20px 0 32px;
}

.docs-toc-header {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0 22px 14px;
}

.docs-toc-loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.docs-chapter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    margin: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
}

.docs-chapter:hover {
    background: #f8fafc;
}

.docs-chapter.chapter-active {
    background: #eff6ff;
}

.docs-chapter-num {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.docs-chapter-num.chip-active {
    background: #2196f3;
    color: #fff;
}

.docs-chapter-title {
    font-size: 13.5px;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-chapter-title.chapter-title-active {
    font-weight: 600;
}

.docs-chapter-count {
    font-size: 11px;
    color: #6b7280;
    flex-shrink: 0;
}

.docs-chevron {
    color: #94a3b8;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.docs-chevron.chevron-open {
    transform: rotate(90deg);
}

.docs-section-list {
    margin-left: 40px;
    padding-left: 14px;
    border-left: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.docs-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
}

.docs-section:hover {
    background: #f8fafc;
}

.docs-section.section-active {
    background: #eff6ff;
}

.docs-section-index {
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    min-width: 26px;
    color: #94a3b8;
    flex-shrink: 0;
}

.docs-section-index.section-index-active {
    color: #2196f3;
}

.docs-section-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
}

.docs-section-title.section-title-active {
    font-weight: 600;
    color: #2196f3;
}

/* ─── Article area ───────────────────────────────────────────────────────── */
.docs-article-wrap {
    flex: 1;
    overflow-y: auto;
    background: #f7f8fa;
    padding: 32px 44px 60px;
}

.docs-article-inner {
    max-width: 740px;
    margin: 0 auto;
}

.docs-article-loading {
    display: flex;
    justify-content: center;
    padding: 64px;
}

.docs-breadcrumbs {
    margin-bottom: 20px;
    padding: 0 !important;
}

.docs-breadcrumbs .mud-breadcrumb-item {
    font-size: 12px;
    color: #6b7280;
}

.docs-breadcrumbs .mud-breadcrumb-item:last-child {
    color: #1f2937;
}

.docs-heading-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.docs-section-number {
    font-size: 28px;
    font-weight: 800;
    color: #2196f3;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex-shrink: 0;
}

.docs-section-heading {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.docs-meta {
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 28px;
    margin-top: 4px;
}

/* ─── Chapter HTML content ───────────────────────────────────────────────── */
.docs-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: #1f2937;
}

/* Hide cover page and page-geometry elements that look odd inline */
.docs-content .cover,
.docs-content .page-break,
.docs-content .toc-page {
    display: none;
}

.docs-content h1 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #1f2937;
}

.docs-content h2 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #1f2937;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.docs-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #1f2937;
}

.docs-content p {
    margin-bottom: 12px;
}

.docs-content ol,
.docs-content ul {
    padding-left: 22px;
    margin-bottom: 12px;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content strong, .docs-content b {
    font-weight: 600;
}

.docs-content code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: #f1f5f9;
    border-radius: 3px;
    padding: 1px 5px;
    color: #374151;
}

.docs-content pre {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 14px 18px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.docs-content pre code {
    background: none;
    padding: 0;
}

.docs-content kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    font-family: monospace;
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13.5px;
}

.docs-content th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.docs-content td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.docs-content tr:nth-child(even) td {
    background: #fafbfc;
}

/* Callout boxes — matches classes used in the chapter HTML files */
.docs-content .tip,
.docs-content .note,
.docs-content .info,
.docs-content .callout-tip {
    background: #ecfdf5;
    border: 1px solid #cfeae2;
    border-left: 4px solid #10b981;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #0f766e;
}

.docs-content .warn,
.docs-content .warning,
.docs-content .callout-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #b45309;
}

.docs-content .imp,
.docs-content .important,
.docs-content .callout-imp {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-left: 4px solid #8b5cf6;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #6d28d9;
}

.docs-content a {
    color: #2196f3;
    text-decoration: none;
}

.docs-content a:hover {
    text-decoration: underline;
}

/* ─── Overflow containment — prevents horizontal scroll ─────────────────── */
.docs-content,
.docs-article-wrap {
    overflow-x: hidden;
}

/* Every element in the injected chapter HTML must stay within its column */
.docs-content * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Screenshots / figures */
.docs-content figure,
.docs-content .screenshot {
    max-width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.docs-content .screenshot-img,
.docs-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.docs-content .screenshot-caption {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    font-style: italic;
}

/* Procedure / step lists from the chapter HTML */
.docs-content .procedure {
    margin: 16px 0;
}

.docs-content .procedure-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-content .procedure-steps {
    padding-left: 22px;
    margin-bottom: 12px;
}

.docs-content .procedure-steps li {
    margin-bottom: 10px;
}

.docs-content .procedure-result {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #15803d;
    margin-top: 8px;
}

/* Lead paragraph */
.docs-content .lead {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Section eyebrow (e.g. "01 · Anmelden") */
.docs-content .section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

/* Callout boxes from the chapter HTML */
.docs-content .callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2196f3;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
}

.docs-content .callout__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 4px;
}

/* Prereq block */
.docs-content .prereq {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13.5px;
}

.docs-content .prereq-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #92400e;
    margin-bottom: 4px;
}

/* QR / reference table */
.docs-content .qr-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Eyebrow labels in h2 (used in Administration chapter) */
.docs-content .h2-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 2px;
}

/* Step numbers / numbered lists with custom markers */
.docs-content .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2196f3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ─── Prev / Next footer ─────────────────────────────────────────────────── */
.docs-prevnext {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.docs-prev-btn {
    color: #6b7280 !important;
    font-size: 13px !important;
}

.docs-next-btn {
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .docs-toc {
        display: none;
    }
    .docs-search {
        min-width: 180px;
    }
    .docs-article-wrap {
        padding: 20px 16px 40px;
    }
}

/* ─── Documentation sidebar link ─────────────────────────────────────────── */

/* Push docs item to bottom inside MudBlazor's own drawer content container */
.drawer .mud-drawer-content {
    display: flex !important;
    flex-direction: column !important;
}

.drawer .mud-drawer-content > .mud-navmenu {
    flex: 1;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid var(--border-default, #e2e8f0);
    user-select: none;
    flex-shrink: 0;
}

.docs-nav-item:hover {
    background: rgba(33, 150, 243, 0.08);
}

.docs-nav-item--active {
    background: rgba(33, 150, 243, 0.12);
}

.docs-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2196f3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: fabPulse 2.2s ease-out infinite;
    transition: transform 0.12s ease;
}

.docs-nav-item:hover .docs-nav-icon {
    animation-play-state: paused;
    transform: scale(1.08);
}

.docs-nav-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.15s;
}

.docs-nav-item--active .docs-nav-label {
    color: #2196f3;
    font-weight: 600;
}

/* Hide label in mini (collapsed) mode — mirrors how MudBlazor hides nav text */
.mud-drawer--mini:not(.mud-drawer-open) .docs-nav-label {
    display: none;
}

/* Center the icon when mini */
.mud-drawer--mini:not(.mud-drawer-open) .docs-nav-item {
    justify-content: center;
    padding: 12px 0;
    margin: 8px auto;
    width: 48px;
    border-top: none;
}

/* Separator line only when expanded */
.mud-drawer-open .docs-nav-item {
    border-top: 1px solid var(--border-default, #e2e8f0);
}

@keyframes fabPulse {
    0%   { box-shadow: 0 0 0 0   rgba(33,150,243,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(33,150,243,0);   }
    100% { box-shadow: 0 0 0 0   rgba(33,150,243,0);    }
}

@media (prefers-reduced-motion: reduce) {
    .docs-nav-icon {
        animation: none;
    }
}
/* ── Telerik TileLayout ── */
.k-tilelayout {
    padding: 6px !important;
    gap: 6px !important;
    background: var(--bg-primary) !important;
}

.k-tilelayout-item {
    margin: 0 !important;
    overflow: hidden !important;
}

.k-tilelayout-item-body.k-card-body {
    overflow-y: hidden !important;
    padding: var(--dashboard-title-gap) var(--dashboard-content-inset) var(--dashboard-content-inset) !important;
    height: 100% !important;
    background: var(--bg-secondary) !important;
}

.k-tilelayout-item:hover .k-tilelayout-item-body.k-card-body,
.k-tilelayout-item:focus-within .k-tilelayout-item-body.k-card-body {
    overflow-y: auto !important;
}

@media (hover: none) {
    .k-tilelayout-item-body.k-card-body {
        overflow-y: auto !important;
    }
}

/* Tile content owns the title-to-content gap and content inset via the tokens
   above; child components (e.g. DataTable's toolbar) must not add their own
   offset on top of it, or their content edges drift from sibling tiles. */
.k-tilelayout-item-body.k-card-body .mud-table-toolbar {
    padding: 0 !important;
    min-height: unset !important;
}

.k-card {
    height: 100% !important;
    overflow: hidden !important;
    background: var(--bg-secondary) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}

.k-tilelayout-item .k-card-header {
    padding: 6px 12px !important;
    min-height: unset !important;
    background: var(--bg-secondary) !important;
    border-color: var(--border-default) !important;
}

.k-tilelayout-item .k-card-title {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0 !important;
}

.k-layout-item-hint {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent) !important;
    border: 2px dashed var(--mud-palette-primary) !important;
    border-radius: 8px !important;
}

.k-tilelayout-item[style*="position: absolute"] {
    max-height: 250px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ── KPI Tile ── */
.kpi-tile-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    margin: 6px 6px 0 6px;
    overflow: hidden;
}

.kpi-tile-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: unset;
    border-bottom: 1px solid var(--border-default);
}

.kpi-tile-content {
    padding: 12px 14px 15px;
}

.kpi-tile-header .mud-icon-button {
    width: 28px !important;
    height: 28px !important;
    padding: 2px !important;
}

    .kpi-tile-header .mud-icon-button .mud-icon-root {
        font-size: 18px !important;
    }

/* ── KPI Cards ── */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.kpi-card {
    border-radius: 12px !important;
    border: 1px solid var(--border-default) !important;
    box-shadow: none !important;
    padding: 14px !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.kpi-card-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.kpi-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.kpi-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    flex-shrink: 0;
}

.kpi-icon-info {
    background: var(--info-bg) !important;
    color: var(--info) !important;
}

.kpi-icon-warn {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
}

.kpi-icon-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

.kpi-card-text {
    min-width: 0;
}

.kpi-card-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0 0 2px !important;
}

.kpi-card-value {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
}

.kpi-card-right {
    display: none !important;
}

/* ── Data Processing ── */
.dp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.dp-chip-finished {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

.dp-chip-active {
    background: var(--info-bg) !important;
    color: var(--info) !important;
}

.dp-chip-pending {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
}

.dp-chip-error {
    background: var(--error-bg) !important;
    color: var(--error) !important;
}

.dp-chip-default {
    background: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
}

/* ── Shared MudTabs styling (Screening Analysis + Activity Timeline) ── */
.dash-pill-tabs .mud-tabs-toolbar {
    background: var(--bg-tertiary) !important;
    border-radius: 999px !important;
    padding: 4px !important;
    min-height: unset !important;
    height: auto !important;
    display: inline-flex !important;
    width: auto !important;
}

.dash-pill-tabs .mud-tabs-tabbar {
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
    position: static !important;
}

    /* Kill every possible variant of MudBlazor's tab indicator/slider bar */
    .dash-pill-tabs .mud-tabs-slider,
    .dash-pill-tabs .mud-tab-slider,
    .dash-pill-tabs .mud-tabs-tabbar > .mud-tab-slider,
    .dash-pill-tabs .mud-tabs-tabbar-inner .mud-tab-slider,
    .dash-pill-tabs [class*="slider"] {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        opacity: 0 !important;
    }

.dash-pill-tabs .mud-tab {
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: var(--text-muted) !important;
    min-height: unset !important;
    height: auto !important;
    padding: 6px 16px !important;
    border-radius: 999px !important;
    margin: 0 !important;
    transition: background 140ms ease, color 140ms ease;
}

    .dash-pill-tabs .mud-tab.mud-tab-active {
        color: var(--text-primary) !important;
        font-weight: 600 !important;
        background: var(--bg-secondary) !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }

.dash-pill-tabs .mud-tabs-panels {
    padding: 10px 0 0 !important;
    margin: 0 !important;
    position: static !important;
}

.dash-pill-tabs .mud-tab:hover,
.dash-pill-tabs .mud-tab:focus,
.dash-pill-tabs .mud-tab:focus-visible,
.dash-pill-tabs .mud-tab-active:hover,
.dash-pill-tabs .mud-tab-active:focus {
    box-shadow: none !important;
}

.dash-pill-tabs .mud-tab .mud-ripple,
.dash-pill-tabs .mud-tab::before,
.dash-pill-tabs .mud-tab::after {
    display: none !important;
    background: none !important;
}

.dist-show-all,
.tl-back-today {
    font-size: 12px !important;
}

    .dist-show-all .mud-ripple,
    .tl-back-today .mud-ripple,
    .dist-show-all::before,
    .tl-back-today::before {
        display: none !important;
    }

    .dist-show-all:hover,
    .tl-back-today:hover {
        background: none !important;
    }

/* ── Action Center ── */
.ac-wrap {
    width: 100%;
}

.ac-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.ac-row-inner {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100%;
    padding: 10px 0; 
    padding-left: 12px;
}

.ac-row.mud-list-item {
    padding: 2px 16px !important;
    border-left: 3px solid transparent;
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: background-color 0.15s ease, border-color 0.15s ease;
    margin-bottom: 8px; 
}

    .ac-row.mud-list-item:last-child {
        margin-bottom: 0; 
    }

    .ac-row.mud-list-item:hover {
        background: var(--bg-hover);
    }

.ac-row.critical {
    border-left-color: var(--error);
}

.ac-row.approval {
    border-left-color: var(--info);
}

.ac-row.warning {
    border-left-color: var(--warning);
}

.ac-icon-wrap {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

    .ac-icon-wrap.critical {
        background: var(--error-bg);
        color: var(--error);
    }

    .ac-icon-wrap.approval {
        background: var(--info-bg);
        color: var(--info);
    }

    .ac-icon-wrap.warning {
        background: var(--warning-bg);
        color: var(--warning);
    }

.ac-body {
    min-width: 0;
    flex: 1;
}

.ac-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.ac-entity {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-badge-item {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    border: 1px solid;
    white-space: nowrap;
}

    .ac-badge-item.outlined-critical {
        color: var(--error);
        border-color: var(--error);
        background: transparent;
        opacity: 0.9;
    }

    .ac-badge-item.outlined-warning {
        color: var(--warning);
        border-color: var(--warning);
        background: transparent;
        opacity: 0.9;
    }

    .ac-badge-item.outlined-neutral {
        color: var(--text-muted);
        border-color: var(--border-default);
        background: transparent;
    }

    .ac-badge-item.outlined-success {
        color: var(--success);
        border-color: var(--success);
        background: transparent;
        opacity: 0.9;
    }

.ac-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.ac-sep {
    color: var(--border-strong);
}

.ac-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.ac-filter-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    row-gap: 4px;
    margin-bottom: 16px;
    max-width: 100%;
}

.ac-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 140ms ease;
}

    .ac-tab.active {
        background: var(--bg-secondary);
        color: var(--text-primary);
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }

.ac-badge {
    display: inline-flex;
    justify-content: center;
    min-width: 20px;
    padding: 1px 7px;
    background: var(--bg-hover);
    color: var(--text-muted);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
/* ── Screening Analysis ── */
.dist-wrap {
    width: 100%;
}

.dist-caption {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 16px;
    font-weight: 400;
}

.dist-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.dist-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
}

.dist-donut-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.donut-track {
    stroke: var(--border-default);
}

.donut-total {
    fill: var(--text-primary);
}

.donut-sublabel {
    fill: var(--text-muted);
}

.dist-legend {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 380px;
}

.dist-leg-row {
    display: grid;
    grid-template-columns: 1fr 60px 48px;
    align-items: center;
    padding: 7px 4px;
    border-bottom: 1px solid var(--border-default);
    gap: 8px;
}

    .dist-leg-row:last-child {
        border-bottom: none;
    }

.dist-leg-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dist-leg-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.dist-leg-label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dist-leg-count {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.dist-leg-pct {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.dist-show-all {
    display: inline-block;
    margin-top: 14px;
    color: var(--mud-palette-primary) !important;
}

    .dist-show-all:hover {
        color: var(--mud-palette-primary-darken) !important;
    }

/* ── Sanction Lists ── */
.sl-wrap {
    width: 100%;
}

.sl-list {
    display: flex;
    flex-direction: column;
}

.sl-row {
    border-bottom: 1px solid var(--border-default);
    border-radius: 6px;
    transition: background 120ms ease;
}

    .sl-row:last-child {
        border-bottom: none;
    }

    .sl-row.expanded {
        background: var(--bg-tertiary);
    }

.sl-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    cursor: pointer;
    border-radius: 6px;
    gap: 8px;
}

    .sl-summary:hover {
        background: var(--bg-tertiary);
    }

.sl-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sl-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sl-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.sl-meta-sep {
    color: var(--border-strong);
    font-size: 11px;
    margin: 0 2px;
}

.sl-meta-stale {
    color: var(--text-muted);
}

.sl-detail {
    padding: 6px 8px 12px;
    border-top: 1px dashed var(--border-default);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sl-detail-row {
    display: flex;
    gap: 12px;
}

.sl-detail-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 90px;
}

.sl-detail-value {
    font-size: 12px;
    color: var(--text-primary);
}

.sl-row.mud-expand-panel {
    box-shadow: none !important;
    padding: 5px 0 !important;
}

.mud-expand-panel .mud-expand-panel-header {
    padding: 10px !important;
}

/* ── Plan Usage ── */
.vol-wrap {
    display: flex;
    flex-direction: column;
}

.vol-meter {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-default);
}

    .vol-meter:first-child {
        padding-top: 4px;
    }

    .vol-meter:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.vol-meter-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.vol-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.vol-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.vol-limit {
    font-weight: 400;
    color: var(--text-muted);
}

.vol-caption {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vol-caption-warn {
    color: var(--warning);
    opacity: 0.85;
}

.vol-caption-error {
    color: var(--error);
    opacity: 0.85;
}

/* ── Activity Timeline ── */
.tl-card {
    width: 100%;
}

.tl-mudlist {
    padding: 0 !important;
}

.tl-row.mud-list-item {
    padding: 0 !important;
    border-bottom: 1px solid var(--border-default);
}

    .tl-row.mud-list-item:last-child {
        border-bottom: none;
    }

.tl-row.mud-list-item-gutters {
    padding: 9px 4px !important;
    margin: 0 !important;
    min-height: unset !important;
    line-height: 1.2 !important;
}

.tl-row-inner {
    display: grid;
    grid-template-columns: 44px 22px 1fr;
    align-items: center;
    gap: 8px;
    min-height: unset !important;
    width: 100%;
}

.tl-row p {
    margin: 0 !important;
}

.tl-time {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    white-space: nowrap;
}

.tl-icon-wrap {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.tl-icon-neutral {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.tl-icon-amber {
    background: var(--warning-bg);
    color: var(--warning);
}

.tl-icon-red {
    background: var(--error-bg);
    color: var(--error);
}

.tl-icon-green {
    background: var(--success-bg);
    color: var(--success);
}

.tl-copy {
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-action {
    font-weight: 600;
    color: var(--text-primary);
}

    .tl-action::after {
        content: " ";
    }

.tl-detail {
    font-weight: 400;
    color: var(--text-primary);
}

.tl-date-sep {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding: 8px 4px 4px;
}

.tl-back-today {
    color: var(--mud-palette-primary) !important;
}

    .tl-back-today:hover {
        text-decoration: underline;
    }


/* CLASSIFICATION CARD */

.classification-card {
    display: block;
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    appearance: none;
    transition: all 0.2s ease;
}

.classification-card:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.classification-card-tip {
    max-width: 260px;
    text-align: left;
    line-height: 1.45;
}

.has-below-toolbar .mud-toolbar {
    height: 100px;
    min-height: auto;
    padding-top: 16px !important;
}


@media (prefers-reduced-motion: reduce) {
    .classification-card {
        transition: none;
    }
}

.results-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin: -16px -16px 12px -16px;
    border-bottom: 1px solid var(--border-default);
}

.results-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-header-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--mud-palette-text-secondary, var(--text-secondary));
    white-space: nowrap;
}

.results-header-chip.mud-chip {
    height: 21px;
    font-size: 12px;
    font-weight: 500;
    padding: 0 9px;
    white-space: nowrap;
}
.field-value-wrap {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}