/* ── DevFlow Design System ─────────────────────────────────────── */

:root {
    /* Colors - Light Theme (defaults) */
    --bg-primary: #FAFBFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F4F5F7;
    --bg-sidebar: #1E1F25;
    --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
    --bg-sidebar-active: rgba(255, 255, 255, 0.12);

    --text-primary: #1A1D23;
    --text-secondary: #5E6470;
    --text-tertiary: #8B919E;
    --text-sidebar: rgba(255, 255, 255, 0.9);
    --text-sidebar-muted: rgba(255, 255, 255, 0.5);

    /* Brand Colors */
    --accent-primary: #2D3142;
    --accent-primary-light: #4F5D75;
    --accent-secondary: #2E7D4F;
    --accent-tertiary: #EF8354;
    --accent-blue: #4A90D9;

    /* Priority Colors */
    --priority-critical: #FF4757;
    --priority-high: #FF8C42;
    --priority-medium: #FFD93D;
    --priority-low: #6BCB77;

    /* Status Colors */
    --status-backlog: #8B919E;
    --status-todo: #4A90D9;
    --status-progress: #EF8354;
    --status-review: #9B59B6;
    --status-done: #2E7D4F;

    /* Border & Shadow */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);

    /* Spacing & Layout */
    --sidebar-width: 260px;
    --header-height: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
 * Dark Theme Variables — remap custom vars to MudBlazor's palette CSS variables.
 * MudBlazor 8.0 sets --mud-palette-* on the MudThemeProvider element, which
 * cascades down to all children. By using these values, our custom vars
 * automatically respond to dark/light mode without needing a separate class.
 */
.mud-layout {
    --bg-primary: var(--mud-palette-background);
    --bg-secondary: var(--mud-palette-surface);
    --bg-tertiary: var(--mud-palette-background-gray);
    --text-primary: var(--mud-palette-text-primary);
    --text-secondary: var(--mud-palette-text-secondary);
    --border-light: var(--mud-palette-divider);
    color: var(--mud-palette-text-primary);
}

/* Fallback for loading screen (before MudBlazor renders) */
.mud-theme-dark {
    --bg-primary: #0F1014;
    --bg-secondary: #1A1B21;
    --bg-tertiary: #24252D;
    --bg-sidebar: #12141A;
    --bg-sidebar-hover: rgba(239, 131, 84, 0.10);
    --bg-sidebar-active: rgba(239, 131, 84, 0.18);

    --text-primary: #F0F1F3;
    --text-secondary: #9BA1B0;
    --text-tertiary: #6B7280;

    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ── Form Validation ───────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--accent-secondary);
}

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

.validation-message {
    color: #C4443C;
}

/* ── Blazor Error UI ───────────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: #C4443C;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #C4443C;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ── Utility Classes ───────────────────────────────────────────── */
.border-divider {
    border-color: var(--mud-palette-divider);
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.date-shortcuts {
    margin-top: -2px;
}

.date-shortcuts .mud-chip {
    border-radius: 12px;
}

/* ── Page Layout ───────────────────────────────────────────────── */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* ── Dark Sidebar Override ─────────────────────────────────────── */
.mud-drawer {
    background: var(--bg-sidebar) !important;
}

.mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mud-drawer .mud-navmenu {
    padding: 16px 12px;
}

.mud-drawer .mud-nav-item {
    margin-bottom: 2px;
}

.mud-drawer .mud-nav-link {
    color: var(--text-sidebar) !important;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: all var(--transition-fast);
}

.mud-drawer .mud-nav-link:hover {
    background: var(--bg-sidebar-hover) !important;
}

.mud-drawer .mud-nav-link.active {
    background: var(--bg-sidebar-active) !important;
    color: white !important;
    position: relative;
}

.mud-drawer .mud-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #EF8354;
    border-radius: 0 2px 2px 0;
}

.mud-drawer .mud-nav-link .mud-icon-root {
    color: var(--text-sidebar) !important;
    opacity: 0.8;
}

.mud-drawer .mud-nav-link.active .mud-icon-root {
    opacity: 1;
}

/* Sidebar Section Label */
.sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-sidebar-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 16px;
}

/* Sidebar Divider */
.mud-drawer .mud-divider {
    border-color: rgba(255, 255, 255, 0.06) !important;
    margin: 8px 0;
}

/* Nav Group (collapsible) */
.mud-drawer .mud-nav-group .mud-nav-group-text {
    color: var(--text-sidebar) !important;
    font-size: 14px;
    font-weight: 500;
}

.mud-drawer .mud-nav-group .mud-expand-panel-header {
    padding: 10px 12px;
    border-radius: var(--radius-md);
}

.mud-drawer .mud-nav-group .mud-expand-panel-header:hover {
    background: var(--bg-sidebar-hover) !important;
}

.mud-drawer .mud-nav-group .mud-expand-panel-content {
    padding-left: 16px;
}

.mud-drawer .mud-nav-group .mud-nav-link {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-sidebar-muted) !important;
}

.mud-drawer .mud-nav-group .mud-nav-link:hover {
    color: var(--text-sidebar) !important;
}

/* Project dot in sidebar */
.project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Nav Badge */
.nav-badge {
    background: #EF8354;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

/* Sidebar Layout */
.sidebar-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px); /* viewport minus app bar */
    position: relative;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* space for footer */
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-sidebar);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: var(--bg-sidebar-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EF8354 0%, #E06F3F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sidebar);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--text-sidebar-muted);
}

/* Dark mode sidebar border */
.mud-theme-dark .mud-drawer {
    border-right: 1px solid rgba(239, 131, 84, 0.12) !important;
}

/* ── Kanban Board ──────────────────────────────────────────────── */
.kanban-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.kanban-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.kanban-scroll::-webkit-scrollbar {
    height: 6px;
}

.kanban-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-scroll::-webkit-scrollbar-thumb {
    background: var(--mud-palette-lines-default);
    border-radius: 3px;
}

.kanban-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--mud-palette-text-secondary);
}

.kanban-column {
    min-width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.kanban-column-body {
    flex: 1;
    overflow-y: auto;
    min-height: 80px;
    border-radius: var(--radius-md);
    padding: 4px;
    transition: background-color var(--transition-fast);
}

.kanban-column-body::-webkit-scrollbar {
    width: 4px;
}

.kanban-column-body::-webkit-scrollbar-thumb {
    background: var(--mud-palette-lines-default);
    border-radius: 2px;
}

/* ── Kanban Card ───────────────────────────────────────────────── */
.kanban-card {
    cursor: grab;
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--radius-md) !important;
    transition: box-shadow var(--transition-fast), transform 0.1s ease, border-color var(--transition-fast);
}

.kanban-card:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--mud-palette-text-secondary);
    min-height: 120px;
}

.empty-state .mud-icon-root {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.8125rem;
    line-height: 1.5;
    max-width: 200px;
}

/* ── Dashboard Stat Cards ──────────────────────────────────────── */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-fast);
    padding: 24px;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.purple { background: linear-gradient(135deg, #2D3142 0%, #4F5D75 100%); }
.stat-icon.teal { background: linear-gradient(135deg, #2E7D4F 0%, #4CAF7A 100%); }
.stat-icon.amber { background: linear-gradient(135deg, #EF8354 0%, #F4A574 100%); }
.stat-icon.navy { background: linear-gradient(135deg, #2D3142 0%, #4F5D75 100%); }
.stat-icon.green { background: linear-gradient(135deg, #2E7D4F 0%, #4CAF7A 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #EF8354 0%, #F4A574 100%); }

/* ── Progress Ring (SVG) ───────────────────────────────────────── */
.progress-ring {
    width: 72px;
    height: 72px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 6;
}

.progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Sparkline ─────────────────────────────────────────────────── */
.sparkline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
}

.sparkline-bar {
    flex: 1;
    background: #2D3142;
    border-radius: 3px 3px 0 0;
    opacity: 0.6;
    transition: all var(--transition-fast);
    min-width: 8px;
}

.sparkline-bar:hover {
    opacity: 0.9;
}

.sparkline-bar.current {
    opacity: 1;
    background: linear-gradient(to top, #EF8354 0%, #F4A574 100%);
}

/* ── Ticket Card (Dashboard) ───────────────────────────────────── */
.ticket-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.ticket-card.priority-critical::before { background: var(--priority-critical); }
.ticket-card.priority-high::before { background: var(--priority-high); }
.ticket-card.priority-medium::before { background: var(--priority-medium); }
.ticket-card.priority-low::before { background: var(--priority-low); }

.ticket-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #EF8354;
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ticket-card-id {
    font-size: 12px;
    font-weight: 700;
    color: #4F5D75;
    letter-spacing: 0.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mud-theme-dark .ticket-card-id {
    color: #EF8354;
}

.ticket-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-card-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.ticket-card-meta span {
    color: var(--text-secondary);
}

/* Progress Bar */
.ticket-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2E7D4F 0%, #4CAF7A 100%);
    transition: width var(--transition-slow);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

.ticket-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.ticket-due {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-due.overdue {
    color: var(--accent-tertiary);
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.assignee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F5D75 0%, #2D3142 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    border: 2px solid var(--bg-secondary);
}

/* ── Activity Feed ─────────────────────────────────────────────── */
.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.activity-avatar.purple { background: linear-gradient(135deg, #2D3142 0%, #4F5D75 100%); }
.activity-avatar.teal { background: linear-gradient(135deg, #2E7D4F 0%, #4CAF7A 100%); }
.activity-avatar.amber { background: linear-gradient(135deg, #EF8354 0%, #F4A574 100%); }
.activity-avatar.coral { background: linear-gradient(135deg, #E06F3F 0%, #EF8354 100%); }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.comment {
    background: rgba(74, 144, 217, 0.12);
    color: var(--accent-blue);
}

.activity-icon.status {
    background: rgba(239, 131, 84, 0.12);
    color: #EF8354;
}

.activity-icon.created {
    background: rgba(46, 125, 79, 0.12);
    color: var(--accent-secondary);
}

.activity-text {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-text strong {
    font-weight: 600;
}

.activity-link {
    color: #EF8354;
    text-decoration: none;
    font-weight: 500;
}

.activity-link:hover {
    text-decoration: underline;
}

.activity-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ── Data Grid Wrapper ────────────────────────────────────────── */
.data-grid-wrapper {
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--mud-default-borderradius);
    overflow-x: auto;
    overflow-y: hidden;
}

/* ── Data Grid Refinements ─────────────────────────────────────── */
.mud-table .mud-table-head .mud-table-row .mud-table-cell {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

/* ── Priority Chip Styling ─────────────────────────────────────── */
.priority-chip {
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
}

/* ── Status Badge ──────────────────────────────────────────────── */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-badge.backlog {
    background: rgba(139, 145, 158, 0.12);
    color: var(--status-backlog);
}

.status-badge.todo {
    background: rgba(74, 144, 217, 0.12);
    color: var(--status-todo);
}

.status-badge.in-progress {
    background: rgba(239, 131, 84, 0.12);
    color: var(--status-progress);
}

.status-badge.review {
    background: rgba(155, 89, 182, 0.12);
    color: var(--status-review);
}

.status-badge.done {
    background: rgba(46, 125, 79, 0.12);
    color: var(--status-done);
}

/* ── Dialog Refinement ─────────────────────────────────────────── */
.mud-dialog .mud-dialog-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
}

/* ── Section Header ────────────────────────────────────────────── */
.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Timer Chip (AppBar) ──────────────────────────────────────── */
.timer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    background: rgba(239, 131, 84, 0.12);
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background var(--transition-fast);
}

.timer-chip:hover {
    background: rgba(239, 131, 84, 0.2);
}

.timer-dot {
    width: 8px;
    height: 8px;
    background: #EF8354;
    border-radius: 50%;
    animation: timer-pulse 2s infinite;
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.timer-ticket {
    font-size: 13px;
    font-weight: 600;
    color: #EF8354;
}

.timer-elapsed {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Outfit', monospace;
    color: var(--text-secondary);
    min-width: 56px;
}

.timer-stop-btn {
    margin: -4px -4px -4px 0;
}

/* ── Portal Badge ─────────────────────────────────────────────── */
.portal-badge {
    font-size: 0.625rem !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    height: 22px !important;
    background: rgba(239, 131, 84, 0.15) !important;
    color: #EF8354 !important;
    border: none !important;
}

/* ── Portal Project Card ──────────────────────────────────────── */
.portal-project-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform var(--transition-fast);
}

.portal-project-card:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Quick Action Card ─────────────────────────────────────────── */
.quick-action-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-action-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #EF8354;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Client Visible Comment Chip ──────────────────────────────── */
.visibility-chip-client {
    font-size: 0.5625rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    height: 18px !important;
}

/* ── Notification Bell ─────────────────────────────────────────── */
.notification-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 0.25rem;
}

.notification-badge .mud-badge {
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
}

.notification-popover {
    width: 360px;
    max-width: calc(100vw - 2rem);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.notification-panel {
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.notification-panel-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    letter-spacing: 0.01em;
}

.notification-mark-all {
    font-size: 0.6875rem !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.notification-list {
    overflow-y: auto;
    flex: 1;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--mud-palette-lines-default);
    border-radius: 2px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.12s ease;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--mud-palette-background-gray);
}

.notification-item.unread {
    background: rgba(91, 106, 191, 0.04);
}

.notification-item.unread:hover {
    background: rgba(91, 106, 191, 0.08);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-divider);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-message {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.4;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-time {
    font-size: 0.6875rem;
    color: var(--mud-palette-text-disabled);
    margin-top: 2px;
    font-weight: 500;
}

.notification-item-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    margin-top: 6px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 0.5rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}

.notification-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
}

/* ── Audit Log ─────────────────────────────────────────────────── */
.audit-action-chip {
    font-size: 0.6875rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    height: 22px !important;
}

.audit-detail-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--mud-palette-background);
    border-top: 1px solid var(--mud-palette-divider);
}

.audit-detail-block {
    flex: 1;
    min-width: 0;
}

.audit-json {
    font-family: 'Outfit', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-top: 0.375rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Date Picker Header ───────────────────────────────────────── */
.mud-picker-toolbar {
    padding: 0.5rem 1rem;
    min-height: unset;
}

.mud-picker-toolbar .mud-button-date .mud-button-label {
    font-size: 1.1rem;
}

.mud-picker-toolbar .mud-button-year .mud-button-label {
    font-size: 0.75rem;
}

/* ── Date Picker Popover Fix ──────────────────────────────────── */
.mud-picker-popover {
    width: auto !important;
    min-width: 320px !important;
}

.mud-picker-popover .mud-picker {
    max-width: none !important;
    overflow: visible !important;
}

/* ── Markdown Rendered Content ─────────────────────────────────── */
.md-rendered {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--mud-palette-text-primary);
}

.md-rendered p {
    margin: 0 0 0.75rem 0;
}

.md-rendered p:last-child {
    margin-bottom: 0;
}

.md-rendered h1, .md-rendered h2, .md-rendered h3,
.md-rendered h4, .md-rendered h5, .md-rendered h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    margin: 1rem 0 0.4rem 0;
    line-height: 1.3;
}

.md-rendered h1 { font-size: 1.375rem; }
.md-rendered h2 { font-size: 1.2rem; }
.md-rendered h3 { font-size: 1.05rem; }

.md-rendered ul, .md-rendered ol {
    margin: 0 0 0.75rem 0;
    padding-left: 1.5rem;
}

.md-rendered li {
    margin-bottom: 0.2rem;
}

.md-rendered code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: #EF8354;
    background: rgba(239, 131, 84, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.md-rendered pre {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    overflow-x: auto;
    margin: 0 0 0.75rem 0;
}

.md-rendered pre code {
    background: none;
    padding: 0;
    color: var(--mud-palette-text-primary);
    font-size: 0.8125rem;
}

.md-rendered blockquote {
    border-left: 3px solid var(--mud-palette-primary);
    margin: 0 0 0.75rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
    color: var(--mud-palette-text-secondary);
}

.md-rendered a {
    color: #EF8354;
    text-decoration: none;
}

.md-rendered a:hover {
    text-decoration: underline;
}

.md-rendered hr {
    border: none;
    border-top: 1px solid var(--mud-palette-divider);
    margin: 1rem 0;
}

.md-rendered strong {
    font-weight: 600;
}

/* ── Misc ──────────────────────────────────────────────────────── */
code {
    color: #EF8354;
    background: rgba(239, 131, 84, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* ── Greeting Section ──────────────────────────────────────────── */
.greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.greeting-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.greeting-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ── CTA Button ────────────────────────────────────────────────── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #EF8354;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(239, 131, 84, 0.3);
}

.cta-btn:hover {
    background: #E06F3F;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 131, 84, 0.4);
}

.cta-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cta-btn-secondary:hover {
    border-color: #EF8354;
    color: #EF8354;
    background: rgba(239, 131, 84, 0.04);
    transform: translateY(-1px);
}

/* ── Stats Grid ────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* ── Tickets Grid ──────────────────────────────────────────────── */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* ── View Toggle ───────────────────────────────────────────────── */
.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.view-toggle-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-toggle-btn.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.view-toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* ── Ticket Table (Portal) ─────────────────────────────────────── */
.ticket-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 32px;
}

.ticket-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-row:hover {
    background: var(--bg-tertiary);
}

/* ── Responsive Design ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .greeting-section {
        flex-direction: column;
        gap: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .tickets-grid {
        grid-template-columns: 1fr;
    }

    .ticket-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ── Quick Actions Grid ────────────────────────────────────────── */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Scrollbar Styling ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ── Portal Dashboard ─────────────────────────────────────────── */
.portal-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.portal-welcome-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.portal-welcome-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.portal-submit-btn {
    background: var(--accent-tertiary) !important;
    box-shadow: 0 4px 12px rgba(239, 131, 84, 0.3);
}

.portal-submit-btn:hover {
    background: #E06F3F !important;
}

.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .portal-stats-grid {
        grid-template-columns: 1fr;
    }
}

.portal-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.portal-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.portal-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.portal-stat-icon.orange { background: linear-gradient(135deg, #EF8354 0%, #F4A574 100%); }
.portal-stat-icon.blue { background: linear-gradient(135deg, #4A90D9 0%, #6BA8E5 100%); }
.portal-stat-icon.green { background: linear-gradient(135deg, #2E7D4F 0%, #4CAF7A 100%); }
.portal-stat-icon.purple { background: linear-gradient(135deg, #9B59B6 0%, #B07CC6 100%); }

.portal-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.portal-stat-subtext {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.portal-stat-breakdown {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.portal-stat-breakdown .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.portal-stat-breakdown .dot.orange { background: var(--accent-tertiary); }
.portal-stat-breakdown .dot.purple { background: #9B59B6; }

.portal-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 700px) {
    .portal-quick-actions {
        grid-template-columns: 1fr;
    }
}

.portal-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portal-action-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-tertiary);
}

.portal-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.portal-action-icon.orange { background: var(--accent-tertiary); }
.portal-action-icon.purple { background: #9B59B6; }

.portal-action-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.portal-action-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
}

.portal-section {
    margin-bottom: 32px;
}

.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.portal-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.portal-tickets-list {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.portal-ticket-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.portal-ticket-row:last-child {
    border-bottom: none;
}

.portal-ticket-row:hover {
    background: var(--bg-tertiary);
}

.portal-ticket-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 80px;
}

.portal-ticket-info {
    flex: 1;
    min-width: 0;
}

.portal-ticket-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-ticket-project {
    font-size: 12px;
    color: var(--text-tertiary);
}

.portal-ticket-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.portal-ticket-priority {
    font-size: 12px;
    color: var(--text-secondary);
}

.portal-status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.portal-status-badge.todo { background: rgba(74, 144, 217, 0.15); color: var(--accent-blue); }
.portal-status-badge.in-progress { background: rgba(239, 131, 84, 0.15); color: var(--accent-tertiary); }
.portal-status-badge.review { background: rgba(155, 89, 182, 0.15); color: #9B59B6; }
.portal-status-badge.done { background: rgba(46, 125, 79, 0.15); color: var(--accent-secondary); }
.portal-status-badge.backlog { background: rgba(139, 145, 158, 0.15); color: var(--text-tertiary); }

.portal-ticket-time {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* ── Responsive Fixes ────────────────────────────────────────── */

/* Mobile padding reduction */
@media (max-width: 600px) {
    .mud-main-content {
        padding: 72px 16px 16px 16px !important;
    }

    .mud-tabs .mud-tab {
        min-width: auto;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .mud-appbar .mr-3 {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .portal-badge {
        display: none !important;
    }
}

/* Markdown/code overflow containment */
.md-rendered {
    overflow-x: hidden;
    max-width: 100%;
}

pre {
    overflow-x: auto;
    max-width: 100%;
}

/* List View */
.list-view-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.list-view-row:hover {
    background-color: var(--mud-palette-table-hover) !important;
}

.list-view-overdue {
    color: var(--mud-palette-error);
    font-weight: 600;
}

.list-view-group-header {
    border-left: 4px solid var(--group-color);
    padding-left: 12px;
}

.list-view-status-chip {
    cursor: pointer;
}

.list-view-panels .mud-expand-panel {
    background: var(--mud-palette-surface);
}
