
: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;
    
    /* 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;
    }

.mud-table-toolbar {
    border-bottom: 0.5px var(--border-default) solid;
}

.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;
    border-bottom: 1px solid var(--border-default);
}

.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-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;
}

/* ── 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;
    }
}


/* TWO-FACTOR AUTHENTICATION  */


.login-form-container:has(.tfa-card) {
    overflow-y: auto;
    max-height: 100vh;
    padding-block: 20px;
}

.tfa-card {
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

    .tfa-card > *,
    .tfa-card > .login-header,
    .tfa-card > .tfa-steps,
    .tfa-card > .tfa-alert-box,
    .tfa-card > .tfa-btn-stack,
    .tfa-card > .tfa-qr-wrap,
    .tfa-card > .tfa-detail-grid,
    .tfa-card > .tfa-key-row,
    .tfa-card > .tfa-field-label,
    .tfa-card > .tfa-divider {
        width: 100%;
        box-sizing: border-box;
    }

    .tfa-card::-webkit-scrollbar {
        display: none;
    }

    .tfa-card .login-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .tfa-card .login-header {
        margin-bottom: 16px;
    }

    .tfa-card .login-subtitle {
        font-size: 12.5px !important;
        color: var(--text-muted) !important;
        opacity: 0.85;
        line-height: 1.5;
    } 

.tfa-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tfa-step-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tfa-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tfa-dot-done {
    background: var(--text-primary);
    color: var(--bg-secondary);
}

.tfa-dot-active {
    background: var(--button-primary-bg);
    color: #fff;
}

.tfa-dot-idle {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-strong);
}

.tfa-step-lbl {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tfa-lbl-done, .tfa-lbl-active {
    color: var(--login-text-color);
}

.tfa-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-strong);
    margin-top: 13px;
    min-width: 8px;
    transition: background 0.3s;
}

.tfa-line-done {
    background: var(--text-primary);
}

.tfa-alert-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-left: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 10px 13px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

    .tfa-alert-box p {
        margin: 0;
    }

.tfa-instruction-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-left: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1rem;
}

.tfa-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tfa-qr-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.tfa-qr-frame {
    background: #fff;
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    padding: 10px;
}

.tfa-divider {
    border: none;
    border-top: 1px solid var(--border-default);
    margin: 0.75rem 0;
}

.tfa-field-label {
    display: block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 5px;
}

.tfa-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.tfa-detail-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.tfa-detail-key {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

.tfa-detail-val {
    font-size: 13px;
    color: var(--login-text-color);
    word-break: break-all;
}

.tfa-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 8px 12px;
}

.tfa-key-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--login-text-color);
    flex: 1;
    min-width: 0;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.tfa-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .tfa-copy-btn:hover {
        background: var(--border-subtle);
        color: var(--text-primary);
    }

.tfa-error-box {
    background: var(--error-bg);
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tfa-error-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #b91c1c;
    line-height: 1.4;
}

.tfa-success-area {
    text-align: center;
    padding: 1rem 0;
}

.tfa-success-icon {
    width: 52px;
    height: 52px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .tfa-success-icon svg {
        width: 24px;
        height: 24px;
        color: var(--success);
    }

.tfa-success-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--login-text-color);
    margin: 0 0 6px;
}

.tfa-success-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.login-container .mud-card-actions {
    justify-content: center !important;
    width: 100%;
}

    .tfa-card .mud-button-outlined,
    .login-container .mud-card-actions .mud-button-outlined {
        border: 1px solid var(--button-secondary-border) !important;
    }

:root[data-theme="dark"] .tfa-card .mud-button-outlined,
:root[data-theme="dark"] .login-container .mud-card-actions .mud-button-outlined {
    border: 1px solid var(--button-secondary-border) !important;
}
