body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg-primary)!important;
    color: var(--text-primary)!important;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Основные переменные */
:root {
    --bg-primary: #1a1d23;
    --bg-secondary: #22252d;
    --bg-card: #282c34;
    --bg-hover: #2d313a;

    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8b8d91;

    --border-color: #3a3d45;
    --border-light: #2d3038;

    --accent-primary: #5865f2;
    --accent-success: #43b581;
    --accent-warning: #faa61a;
    --accent-danger: #f04747;
    --accent-info: #00b0f4;
    --mud-palette-error: rgb(249 115 105)!important;
    --mud-pallete-info: rgb(66 162 238) !important;
}
/* Переменные для темной темы */
[data-theme="dark"] {
    --mud-palette-text-primary: #0d0e14;
    --bg-primary: #0d0e14;
    --bg-secondary: #151821;
    --bg-card: #1a1d28;
    --bg-hover: #22252f;
    --bg-active: #2a2d37;

    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #64748b;

    --border-color: #2a2d37;
    --border-light: rgba(255, 255, 255, 0.1);

    --accent-primary: #3b82f6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #06b6d4;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --image-color: brightness(0) invert(1);
}

/* Переменные для светлой темы */
[data-theme="light"] {
    --mud-palette-text-primary: #fff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-active: #e2e8f0;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: rgba(0, 0, 0, 0.1);

    --accent-primary: #3b82f6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #06b6d4;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --image-color: 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+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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.sidebar .mud-paper{
    background: var(--bg-secondary);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}


.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled){
    background: var(--bg-active)!important;
    color: var(--accent-primary)!important;
    border-left: 3px solid #3b82f6;
}
.mud-nav-link.active .mud-nav-link-text{
    color: var(--accent-primary)!important;
}
.mud-nav-link .mud-nav-link-text{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    margin-left: 0px!important;
    margin-inline-start: 0px!important;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled)
{
    color: var(--text-secondary);
}
.mud-nav-link{
    padding: 0.875rem 1.5rem!important;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: start;
    min-height: 86px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}


.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--bg-active);
    color: var(--accent-primary);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
}

.menu-item i {
    font-size: 1.125rem;
    width: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
}
.logo i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .btn {
    width: 100%;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #594ae2;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar-footer .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer .btn i {
    margin-right: 0.1rem;
}



.btn-logout {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color)!important;
    color: var(--text-secondary)!important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.btn-logout:hover {
    background: #ef4444!important;
    border-color: #ef4444!important;
    color: white!important;
}


/**************************COMPCARDS***************************/


/* Основное содержимое */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 1.5rem;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Заголовок контента */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.add-btn i {
    margin-right: 0.5rem;
}

.view-toggle .btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Сетка карточек */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
}

/* Карточки сессий */
.session-card {
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.session-card.vip {
    background: linear-gradient(135deg, #fff 0%, #fef3e7 100%);
    border: 2px solid #ffd700;
}

/* Статус карточки */
.card-status {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}





.status-paused {
    background: #fff3e0;
    color: #f57c00;
}
.card-status{
}

.Available {
    background: #93f59b;
    color: #2e7d32;
}
.BusyWithASession {
    background: #97d2fc;
    color: #1976d2;
}

.Blocked{
    background: #fc97b9;
    color: #c2185b;
}

.Booked {
    background: #91f2ed;
    color: #00796b;
}

.status-maintenance {
    background: #efebe9;
    color: #5d4037;
}

.Deleted {
    background: #ffebee;
    color: #c62828;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Содержимое карточки */
.card-content {
    padding: 1rem;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-info {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.8rem;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.countdown-time {
    font-family: 'Courier New', monospace;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Ссылка в карточке */
.card-link {
    margin-top: 0.5rem;
}

.card-link a {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link a i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

.card-link a:hover {
    transform: translateX(3px);
}

/* Действия карточки */
.card-actions {
    padding: 0;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 2px;
}

.btn-action {
    flex: 1;
    padding: 0.7rem 0.5rem;
    border: none;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-action:first-child {
    border-radius: 0 0 0 10px;
}

.btn-action:last-child {
    border-radius: 0 0 10px 0;
}

.btn-action:only-child {
    border-radius: 0 0 10px 10px;
}

.btn-action:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-action.btn-success {
    background: #4caf50;
    color: white;
}

.btn-action.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-action.btn-danger {
    background: #f44336;
    color: white;
}

.btn-action.btn-info {
    background: #2196f3;
    color: white;
}

.btn-action.btn-secondary {
    background: #757575;
    color: white;
}

.btn-action.btn-vip {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    font-weight: 800;
}

.btn-action:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Модальные окна */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header .btn-close {
    filter: var(--image-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sessions-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .sessions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1201px) and (max-width: 1600px) {
    .sessions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1601px) {
    .sessions-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Утилиты Bootstrap переопределения */
.text-success {
    color: #4caf50 !important;
}

.text-warning {
    color: #ff9800 !important;
}

.text-danger {
    color: #f44336 !important;
}

.text-primary {
    color: #667eea !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Scrollbar стилизация */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}


.btn-primary {
    padding: 8px;
    background: var(--accent-primary);
    color: white;
    border: 1px solid var(--accent-primary);
    border-radius: 0.5rem;
    font-weight: 300;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-theme {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-theme:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}


/* Верхняя панель */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.page-title h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.date-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-danger);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}


/* Верхняя панель */
.top-bar {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.current-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Поиск */
.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}


/* Уведомления */
.notifications-wrapper {
    position: relative;
}

.btn-notification {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.notifications-dropdown.show {
    display: block;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-clear {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.875rem;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}



/* ===========================
   Аналитика
   =========================== */
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.donut-inner-text{
    fill: var(--text-primary);
}
.date-input {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 300px;
}

.analytics-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.analytics-card canvas {
    max-height: 250px !important;
    width: 100% !important;
}

.analytics-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-around;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.nav-badge {
    margin-left: auto;
    background: var(--accent-danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}
.mud-drop-container{
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.mud-table-root .mud-icon-button-label
{
    color: var(--text-primary) !important;
}

.mud-icon-root.mud-svg-icon:not(.mud-success-text,.mud-error-text) {
    fill: var(--text-primary) !important;
}

.mud-table-cell .mud-table-cell.mud-icon-root.mud-svg-icon{
    color: var(--text-primary) !important;
}
.mud-table-cell{
    border-color: var(--border-color)!important;
}
.border-end 
{
    border-right:var(--bs-border-width) var(--bs-border-style) var(--border-color)!important;
}
.border-start {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--border-color)!important;
}


.ticket-card{
    background: var(--bg-card);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ticket-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.mud-paper{
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color)!important;
    border-radius: 12px; /* чтобы совпадало со стилем проекта */
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Чуть живости при ховере (по желанию) */
.mud-paper:hover{
    box-shadow: var(--shadow-md);
}

/* Если есть elevation — уберём явную рамку, оставим тень */
.mud-paper[class*="mud-elevation-"]{
    border-color: transparent;
}

/* Точные акценты на светлой/тёмной, если хочешь отличий (переменные уже всё делают) */
.mud-paper{
    background-color: var(--bg-card);   /* светлая карточка из твоих переменных */
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.mud-progress-linear.mud-progress-linear-color-default:not(.mud-progress-linear-buffer) .mud-progress-linear-bar{
    background-color: var(--accent-primary);
}

.mud-progress-linear .mud-progress-linear-bars{
    background-color: var(--text-primary);
}

.mud-input>input.mud-input-root, div.mud-input-slot.mud-input-root, .mud-input{
    color: var(--text-primary);
}

.mud-dialog {
    color: var(--text-primary)!important;
    background-color: var(--bg-card) !important;
}

input::placeholder, input::-webkit-input-placeholder{
    color: var(--text-secondary)!important;
}

.mud-dialog .mud-icon-button-label{
    filter:var(--image-color);
}
.mud-input-control>.mud-input-control-input-container>.mud-input-label-inputcontrol {
    color: var(--text-secondary);
}

.mud-input:hover ::after{
    background-color: var(--accent-primary);
}
.mud-data-grid .mud-table-cell.mud-datagrid-group{
    background-color: var(--bg-card) !important;
}
.mud-menu-list{
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.mud-charts-xaxis text{
    fill: var(--text-primary);
}
.mud-chart-line{
    fill: var(--text-primary);
}

.mud-only-icon .mud-button-label .mud-button-icon-start {
    display: inherit;
    margin-left: 0px;
    margin-right: 0px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
.mud-only-icon.mud-menu-item .mud-menu-item-icon{
    margin-inline-end: 0px;
}
.custom-comment-icon .mud-icon-size-medium{
    font-size: 1.24rem !important;
}

.mud-button-group-filled.mud-button-group-override-styles.mud-button-group-filled-primary .mud-button-root:hover{
    background-color: var(--accent-primary);
    color: var(--text-primary)!important;
}
.mud-button-group-filled.mud-button-group-override-styles.mud-button-group-filled-primary .mud-button-root{
    background-color: var(--accent-primary);
}
.mud-table-root .mud-table-body .mud-table-cell, .mud-table-root .mud-table-head .mud-table-cell{
    color: var(--text-primary);
}
.mud-button-root:disabled {
    color: rgb(179 179 179 / 39%) !important;
}