/*html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}*/


html, body {
    font-family: system-ui;
}

input,
select,
textarea,
button {
    font-family: inherit;
}


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

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

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

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUw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
    }

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



/* Make the cell content fill the available height/width and center it */
.action-cell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
}

/* Anchor behaves like an icon button; remove baseline/line-height shifts */
.action-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 0 !important;
    text-decoration: none;
}

/* Prevent SVG baseline alignment from nudging the icon */
.action-icon,
.action-cell svg {
    display: block;
}



/* Light card container around the grid */
/*.grid-card {
    background-color: #f5f7fa;*/ /* light gray */
    /*padding: 12px;
    border-radius: 8px;
    border: 0px solid #e1e5ea;
}*/

    /* Target FluentDataGrid table */
    /*.grid-card fluent-data-grid,
    .grid-card table {
        background-color: white;
        border-radius: 6px;
        overflow: hidden;
    }*/

    /* Header styling */
    /*.grid-card thead {
        background-color: #f1f3f5;
        font-weight: 600;
    }*/

    /* Zebra striping (alternating rows) */
    /*.grid-card tbody tr:nth-child(even) {
        background-color: #fafbfc;
    }*/

    /* Hover effect */
    /*.grid-card tbody tr:hover {
        background-color: #eef2f7;
    }*/

    /* Clean cell padding */
    /*.grid-card td,
    .grid-card th {
        padding: 10px 12px;
        border-bottom: 0x solid #e6e9ee;
    }

.fluent-data-grid th .col-title {
    text-align: center;
    background-color: #fafbfc;
}

.fluent-data-grid th {
    text-align: center;
    background-color: #fafbfc;
}*/

.fluent-data-grid th .col-title {
    text-align: center;
    background-color: #fafbfc;
}




.grid-wrapper {
    position: relative;
}

/* semi-transparent overlay over the grid area */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* small centered card */
.loading-card {
    background: white;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.loading-title {
    font-weight: 600;
}

.loading-subtitle {
    font-size: 12px;
    color: #666;
}



/*
===========================
    Session Activity
===========================
*/

.activity-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 999;
}


.activity-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e1e5ea;
    box-shadow: -6px 0 18px rgba(0,0,0,0.08);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.2s ease-in-out;
}

    .activity-panel.open {
        right: 0;
    }

.activity-header {
    padding: 12px;
    border-bottom: 1px solid #e6e9ee;
    background: #f5f7fa;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.activity-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.activity-filter {
    flex: 1;
    min-width: 140px;
}

.activity-body {
    padding: 10px 12px;
    overflow: auto;
    flex: 1;
}

.activity-empty {
    color: #666;
    padding: 12px 4px;
}

.activity-row {
    padding: 8px 8px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
}

.activity-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #555;
}

.activity-cat {
    font-weight: 600;
    margin-top: 2px;
}

.activity-msg {
    margin-top: 2px;
    color: #333;
}

.activity-corr {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.activity-details pre {
    white-space: pre-wrap;
    margin: 8px 0 0;
    font-size: 12px;
    color: #444;
}

.lvl-info {
    border-left: 5px solid #1976d2;
}

.lvl-success {
    border-left: 5px solid #2e7d32;
}

.lvl-warning {
    border-left: 5px solid #ed6c02;
}

.lvl-error {
    border-left: 5px solid #c62828;
}




/*For Session Activity, hiding screen elements*/
.filters-toolbar.hide-grid
.grid-host.hide-grid {
    visibility: hidden;
}


/*For Toast container surface*/
/* Generic: improve toast look regardless of intent */
.fluent-toast,
fluent-toast,
.fluentui-toast,
.fluent-toast-container * {
    box-sizing: border-box;
}

/* ==================================
    Typical toast surface styles 
=====================================
*/
/* Base toast styling */
.fluent-toast {
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    border: none;
}

    /* INFO: svg uses fill: var(--info) */
    .fluent-toast:has(svg[style*="var(--info)"]) {
        background: #005a9e !important;
        color: #fff !important;
    }

    /* SUCCESS: svg uses fill: var(--success) */
    .fluent-toast:has(svg[style*="var(--success)"]) {
        background: #107c10 !important;
        color: #fff !important;
    }

    /* WARNING: svg uses fill: var(--warning) */
    .fluent-toast:has(svg[style*="var(--warning)"]) {
        background: #ffb900 !important;
        color: #1b1a19 !important;
    }

    /* ERROR: svg uses fill: var(--error) */
    .fluent-toast:has(svg[style*="var(--error)"]) {
        background: #d13438 !important;
        color: #fff !important;
    }

    /* Ensure text inside uses the toast color */
    .fluent-toast * {
        color: inherit !important;
    }

    /* Ensure the icon matches foreground color */
    .fluent-toast svg {
        fill: currentColor !important;
    }

