#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* 
    blazorise picker workaround for https://github.com/Megabit/Blazorise/issues/4917
*/
.flatpickr-calendar.static {
    top: unset !important;
}

:root .lpx-theme-dark {
    --lpx-logo: url('/images/logo/leptonx/logo-light-dev.svg');
    --lpx-logo-icon: url('/images/logo/leptonx/icon.svg');
    --lpx-brand: #66C461 !important;
    --lpx-primary: #FFCC4D !important;
    --lpx-secondary: #f8be2f !important;

}

:root .lpx-theme-dim {
    --lpx-logo: url('/images/logo/leptonx/logo-light-dev.svg');
    --lpx-logo-icon: url('/images/logo/leptonx/icon.svg');
    --lpx-brand: #66C461 !important;
    --lpx-primary: #FFCC4D !important;
    --lpx-secondary: #f8be2f !important;

}

:root .lpx-theme-light {
    --lpx-logo: url('/images/logo/leptonx/logo-dark-dev.svg');
    --lpx-logo-icon: url('/images/logo/leptonx/icon.svg');
    --lpx-brand: #66C461 !important;
    --lpx-primary: #FFCC4D !important;
    --lpx-secondary: #f8be2f !important;
}

/* Your Global Styles */
:root {
    --lpx-navbar-active-text-color: #FF0000 !important;
}

/* DataGrid - minimal td styling to preserve width */
.datagrid-detail td {
    vertical-align: top !important;
}

/* Apply to divs in cells - exclude interactive elements */
.datagrid-detail td > div:not(:has(button, .badge, .btn, svg, .icon, .dropdown, .btn-group)) {
    max-height: 133px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Text truncation with "..." for long text columns */
.datagrid-detail .text-truncate-cell {
    max-height: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
}

/* Tooltip cursor on hover for truncated text */
.datagrid-detail .text-truncate-cell:hover {
    cursor: help;
}

/* Course Studio - Sortable Drag & Drop Styles */
.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
    border: 2px dashed #66C461;
}

.sortable-chosen {
    background: #fff9e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sortable-drag {
    opacity: 1;
    cursor: move;
}

.drag-handle {
    cursor: move;
    user-select: none;
}

.drag-handle:hover {
    color: #66C461;
}

/* Tenant Switcher Styles */
.tenant-switcher {
    display: inline-block;
}

.tenant-switcher .dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    min-width: 200px;
}

.tenant-switcher .dropdown-item {
    cursor: pointer;
}

.tenant-switcher .dropdown-item.active {
    background-color: var(--lpx-primary);
    color: #fff;
}

.tenant-switcher .dropdown-item:hover {
    background-color: rgba(102, 196, 97, 0.1);
}

.tenant-switcher .btn {
    white-space: nowrap;
}