:root {
    /* MD3 Deep Teal Palette */
    --primary: #00677F;
    --on-primary: #FFFFFF;
    --primary-container: #BEE9FF;
    --on-primary-container: #001F2A;

    --secondary: #4C626C;
    --on-secondary: #FFFFFF;
    --secondary-container: #CFE6F2;
    --on-secondary-container: #071E27;

    --surface: #F8FDFF;
    --surface-alt: #EDF4F9;
    /* surface-container */
    --surface-container-high: #E7EDF3;
    --surface-container-highest: #E1E8EE;

    --bg: #F8FDFF;
    --text: #191C1E;
    --text-muted: #40484C;
    --border: #70787D;
    /* outline */
    --border-variant: #BFC8CD;
    /* outline-variant */

    --success: #1E6533;
    --success-container: #A7F0B6;
    --danger: #BA1A1A;
    --danger-container: #FFDAD6;

    /* MD3 Form & Shape */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-pill: 9999px;

    /* MD3 Elevation (Simplified to Tonal mostly, but keeping subtle shadow option) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

    --transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: inherit;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Roboto', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 500;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    color: var(--primary);
    background: transparent;
    font-family: 'Material Symbols Outlined', sans-serif;
}

.nav-item .material-symbols-outlined {
    color: inherit;
    /* Allow navigation active states to dictate color */
}

.btn .material-symbols-outlined {
    color: inherit;
}

p {
    margin: 0;
    color: var(--text-muted);
}

a {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    box-shadow: var(--shadow-md);
    filter: brightness(0.92);
}

.btn.secondary {
    background: var(--primary-container);
    color: var(--on-primary-container);
    box-shadow: none;
}

.btn.secondary:hover {
    filter: brightness(0.95);
    box-shadow: var(--shadow-sm);
}

.btn.logout-btn {
    background: var(--danger-container);
    color: var(--danger);
    box-shadow: none;
}

.btn.logout-btn:hover {
    background: var(--danger);
    color: var(--on-primary);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Badge in Header */
.project-badge {
    background: var(--secondary-container);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    color: var(--on-secondary-container);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.project-badge:hover {
    filter: brightness(0.95);
}

.badge.success {
    background: var(--success-container);
    color: var(--success);
    border: none;
}

.badge.warning {
    background: #FFEFD6;
    color: #5C4010;
    border: none;
}

.badge.danger {
    background: var(--danger-container);
    color: var(--danger);
    border: none;
}

/* Ensure small button alignment matches badge */
.btn.small {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: var(--surface);
    position: relative;
    width: 100%;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.header-content h1 {
    font-size: 1.6rem;
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.header-content p {
    margin-top: 0.2rem;
    font-size: 0.95rem;
}

.app-layout {
    display: flex;
    height: calc(100vh - 85px);
    overflow: hidden;
}

.nav-rail {
    width: 100px;
    /* MD3 standard nav rail logic */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.5rem;
    background: var(--surface);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    gap: 0.5rem;
}

.nav-rail::-webkit-scrollbar {
    width: 4px;
}

.nav-item {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.8rem 0.4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.3rem;
    text-align: center;
}

.nav-item .icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    border-radius: 16px;
    /* Pill inside the item */
    transition: var(--transition);
}

.nav-item.active,
.nav-item:hover {
    color: var(--on-secondary-container);
}

.nav-item.active .icon,
.nav-item:hover .icon {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
}

/* Emphasized Generate button */
.nav-item.primary-action {
    color: var(--primary);
    margin-bottom: 1rem;
}

.nav-item.primary-action .icon {
    background: var(--primary-container);
    height: 48px;
    width: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.nav-item.primary-action:hover .icon {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: var(--shadow-md);
}

.workspace {
    flex: 1;
    padding: 2.5rem;
    background: var(--bg);
    border-top-left-radius: 0;
    box-shadow: none;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.panel {
    display: none;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
}

.panel.full-width,
#timetable-panel {
    max-width: 100%;
}

.panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-variant);
}

.gr.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Clinic reserved period cells in matrix */
.matrix-cell-btn.clinic-reserved {
    background: linear-gradient(135deg, #fff3bf 0%, #ffed4e 100%);
    color: #856404;
    font-weight: 600;
    border-color: #ffc107;
}

.matrix-cell-btn.clinic-reserved:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffc107 100%);
    transform: scale(1.02);
}

/* Blocked period cells in clinic matrix (read-only, red) - matches grade blocks */
.matrix-cell-btn.blocked {
    background: linear-gradient(135deg, #ffcccc 0%, #ff9999 100%);
    color: #cc0000;
    font-weight: 600;
    border-color: #ff9999;
    cursor: not-allowed;
}

.matrix-cell-btn.blocked:hover {
    background: linear-gradient(135deg, #ffcccc 0%, #ff9999 100%);
    transform: none;
}

/* Legend chip for clinic reservations */
.legend-clinic {
    background: linear-gradient(135deg, #ffb86b 0%, #ffa94d 100%);
    color: white;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    border: 1px solid rgba(44, 62, 80, 0.05);
    margin-bottom: 1.5rem;
}

.grid-form.single {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="time"],
select {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text);
}

select[multiple] {
    min-height: 160px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    grid-column: 1 / -1;
}

.data-list {
    padding: 1.2rem 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.05);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.data-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.list-search input {
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    min-width: 220px;
    font-size: 0.95rem;
}

.list-filter select {
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    min-width: 160px;
    background: #fff;
    font-size: 0.95rem;
}

.multi-select {
    position: relative;
}

.multi-select-trigger {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    background: #fff;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.multi-select::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.multi-select.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.multi-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.8rem;
    display: none;
    z-index: 20;
    max-height: 400px;
    overflow-y: auto;
}

.multi-select.open .multi-select-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.4rem;
}

.multi-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    user-select: none;
    gap: 0.5rem;
}

.multi-option span {
    flex: 1;
    text-align: left;
}

.multi-option input {
    pointer-events: none;
    margin-left: 0.4rem;
}

.multi-option:hover {
    background: rgba(102, 126, 234, 0.08);
}

.multi-option input:checked+span {
    font-weight: 600;
    color: var(--primary-dark);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(44, 62, 80, 0.2);
    color: var(--text);
    min-width: 100px;
}

.btn.ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.ghost:not(:disabled):hover {
    background: rgba(44, 62, 80, 0.05);
}

.hidden {
    display: none !important;
}

.data-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid rgba(44, 62, 80, 0.05);
    margin-bottom: 0.8rem;
    gap: 1.5rem;
}

.data-card:last-child {
    margin-bottom: 0;
}

.data-card>div:first-child {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.group-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-list li {
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    background: transparent;
    border: none;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.edit-btn,
.restore-btn,
.delete-btn {
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.edit-btn:hover,
.restore-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

.delete-btn:hover {
    background: rgba(229, 83, 75, 0.1);
    color: var(--danger);
}

.icon-btn {
    border: 1px solid rgba(44, 62, 80, 0.2);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text);
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(44, 62, 80, 0.05);
}

.data-list-header h3 {
    margin: 0;
}

.collapse-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.collapse-toggle:hover {
    background: transparent;
    color: var(--text-muted);
    opacity: 1;
}

.collapse-toggle svg {
    transition: transform 0.2s ease;
}

.collapse-toggle.expanded svg {
    transform: rotate(180deg);
}

.data-list-content {
    transition: opacity 0.2s ease;
}

.data-list-content ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

#classes-list ul,
#subjects-list {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.data-list li {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.data-list li:last-child {
    margin-bottom: 0;
}

.data-list li span {
    display: block;
}

.data-list .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.grade-block-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.grade-block-legend {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.legend-open {
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary);
    border-color: rgba(102, 126, 234, 0.2);
}

.legend-blocked {
    background: rgba(229, 83, 75, 0.12);
    color: var(--danger);
    border-color: rgba(229, 83, 75, 0.2);
}

.legend-missing {
    background: rgba(99, 110, 114, 0.1);
    color: var(--text-muted);
    border-color: rgba(99, 110, 114, 0.2);
}

#classes-panel .data-list+.data-list {
    margin-top: 1.5rem;
}

#teachers-panel .data-list+.data-list {
    margin-top: 1.5rem;
}

#teachers-panel .data-list:first-of-type {
    margin-bottom: 1.5rem;
}

.grade-block-matrix {
    overflow-x: auto;
    margin-bottom: 1.2rem;
}

.grade-block-matrix table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grade-block-matrix th,
.grade-block-matrix td {
    border: 1px solid rgba(44, 62, 80, 0.08);
    text-align: center;
    padding: 0.4rem;
}

.grade-block-matrix th {
    background: var(--surface-alt);
    font-weight: 600;
}

.matrix-cell-btn {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    background: #fff;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text);
}

.matrix-cell-btn.blocked {
    background: rgba(229, 83, 75, 0.12);
    color: var(--danger);
    border: 1px solid rgba(229, 83, 75, 0.4);
}

.matrix-cell-btn:hover:not(.disabled) {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.matrix-cell-btn.disabled {
    cursor: not-allowed;
    background: #f5f6fb;
    color: var(--text-muted);
    border: 1px dashed rgba(44, 62, 80, 0.08);
}

.allocation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.allocation-main {
    display: flex;
    flex-direction: column;
}

.allocation-subject {
    color: var(--text);
    font-size: 1rem;
}

.allocation-teacher {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.allocation-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.allocation-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.allocation-edit {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.allocation-edit:hover {
    color: var(--primary-dark);
    background: rgba(102, 126, 234, 0.12);
}

.allocation-periods {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.allocation-delete {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--danger);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    opacity: 0.7;
}

.allocation-delete:hover {
    opacity: 1;
    background: rgba(229, 83, 75, 0.1);
    transform: scale(1.1);
}

.allocation-delete:active {
    transform: scale(0.95);
}

.delete-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--danger);
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    opacity: 0.7;
}

.delete-btn:hover {
    opacity: 1;
    background: rgba(229, 83, 75, 0.1);
    transform: scale(1.1);
}

.delete-btn:active {
    transform: scale(0.95);
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 600px;
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}

.generator-form select[multiple] {
    min-height: 180px;
}

.generation-log {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid rgba(44, 62, 80, 0.05);
    max-height: 240px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.export-actions {
    display: flex;
    align-items: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.export-actions label {
    flex: 0 0 auto;
}

.export-actions select {
    width: 200px;
}

.export-actions .form-actions {
    flex: 1 1 auto;
    min-width: 0;
}

#export-panel .data-list {
    margin-top: 2rem;
}

#export-panel .data-list:first-of-type {
    margin-top: 0;
}

#export-panel .data-list h3 {
    margin-bottom: 0.5rem;
}

#export-panel .data-list .hint {
    margin-bottom: 1rem;
}

.import-card {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.05);
    background: var(--surface-alt);
    max-width: 520px;
}

#export-panel .import-card+.data-list {
    margin-top: 1.5rem;
}

#import-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#import-form .form-actions {
    margin-top: 0.4rem;
}

.bulk-export-section {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn.tertiary {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(44, 62, 80, 0.12);
}

.btn.tertiary:hover {
    background: var(--surface);
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timetable-view-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.timetable-view-tabs .view-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.timetable-view-tabs .view-tab:hover {
    color: var(--primary);
    background: var(--surface-container-high);
}

.timetable-view-tabs .view-tab.active {
    color: var(--on-primary);
    background: linear-gradient(135deg, var(--primary), #004d60);
    box-shadow: 0 4px 12px rgba(0, 103, 127, 0.35);
}

.timetable-view {
    display: none;
    position: relative;
}

.timetable-view.active {
    display: block;
}

.timetable-filter {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.timetable-filter label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.timetable-filter select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
}

.timetable-filter select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timetable-board {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--surface), var(--surface-alt));
    box-shadow: var(--shadow-lg);
}

.overview-board {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.overview-legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.legend-open {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.legend-blocked {
    background: rgba(63, 81, 181, 0.15);
    color: #283593;
}

.legend-missing {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.overview-grid {
    margin-top: 1.2rem;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.08);
    background: #fdfdfd;
}

.overview-grid table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.overview-grid thead th {
    background: var(--primary-light);
    border: 1px solid rgba(44, 62, 80, 0.08);
    padding: 0.35rem;
    text-align: center;
    font-weight: 600;
}

.overview-grid tbody th {
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(44, 62, 80, 0.08);
    padding: 0.65rem;
    text-align: left;
    font-weight: 600;
}

.overview-grid td {
    border: 1px solid rgba(44, 62, 80, 0.08);
    width: 70px;
    height: 52px;
    text-align: center;
    position: relative;
    vertical-align: middle;
    font-size: 0.72rem;
}

.overview-grid .overview-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    align-items: center;
}

.overview-grid .overview-subject {
    font-weight: 600;
}

.overview-grid .overview-teacher {
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.7);
}

.overview-grid .overview-empty-cell {
    color: rgba(0, 0, 0, 0.3);
}

.overview-grid .overview-missing-cell {
    color: rgba(0, 0, 0, 0.25);
}

.overview-filled-cell {
    color: #1f2a44;
    font-weight: 600;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.tab:hover {
    border-color: rgba(102, 126, 234, 0.4);
}

.timetable-delete-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.timetable-delete-btn {
    border: none;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    padding: 0.5rem 1rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.timetable-delete-btn svg {
    width: 16px;
    height: 16px;
}

.timetable-delete-btn:hover {
    opacity: 1;
    background: rgba(229, 83, 75, 0.1);
    transform: translateY(-1px);
}

.timetable-delete-btn:active {
    transform: translateY(0);
}

.tab-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
}

#timetable-panel .tab-content {
    width: 100%;
    overflow-x: auto;
    background: #f8f9fa;
    padding: 0.5rem;
}

#room-timetable-content.tab-content {
    overflow: visible;
    overflow-x: auto;
    position: relative;
    z-index: 0;
}

.timetable-grid {
    width: 100%;
    min-width: 800px;
    /* Ensure table forces scroll on small screens */
    table-layout: auto;
    /* Let content dictate width to prevent squishing */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}



.timetable-grid thead th {
    background: var(--primary-container);
    color: var(--on-primary-container);
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid var(--primary-container);
    position: sticky;
    top: 0;
    z-index: 10;
    letter-spacing: 0.3px;
}

.timetable-grid thead th:first-child {
    background: var(--surface-alt);
    border-right: 2px solid var(--border-color);
}

.timetable-grid thead th:last-child {
    border-right: none;
}

.timetable-grid thead th small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 0.35rem;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

.timetable-grid tbody td {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-left: none;
    vertical-align: top;
    height: auto;
    min-width: 120px;
    min-height: 80px;
    position: relative;
    background: var(--surface);
}

.timetable-grid tbody td:last-child {
    border-right: none;
}

.timetable-grid tbody tr:last-child td {
    border-bottom: none;
}

.timetable-grid .day-header {
    background: var(--surface-alt);
    font-weight: 500;
    text-align: center;
    width: 130px;
    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 1rem 0.75rem;
    letter-spacing: 0.5px;
}

#timetable-content,
#teacher-timetable-content,
#room-timetable-content,
#overview-board-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    /* Space for scrollbar */
}

#timetable-panel .timetable-grid .day-header {
    position: static;
    left: auto;
    z-index: 1;
    box-shadow: none;
}

.timetable-grid .entry-cell {
    background: #fff;
    cursor: move;
    transition: all 0.2s ease;
}

.timetable-grid .entry-cell:hover {
    background: var(--surface-alt);
    box-shadow: inset 0 0 0 2px var(--primary);
    transform: scale(1.01);
}

.timetable-grid .entry-cell.dragging {
    opacity: 0.6;
    transform: scale(0.98);
}

.timetable-grid .empty-cell {
    background: transparent;
    min-height: 85px;
    position: relative;
    border: 1px dashed transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.timetable-grid .empty-cell::after {
    display: none;
    /* Removed the distracting dashed square in middle */
}

.timetable-grid .empty-cell:hover {
    background: var(--surface-alt);
    border-color: var(--border-color);
}

.timetable-grid .break-cell {
    background: var(--surface-alt);
    text-align: center;
    font-weight: 500;
    color: var(--text-muted);
}

.timetable-grid .break-indicator {
    padding: 0.4rem 1rem;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    /* MD3 pill shape */
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
}

.timetable-cell-content {
    padding: 0.5rem;
    background: var(--secondary-container);
    color: var(--on-secondary-container);
    border-radius: 8px;
    border-left: 4px solid var(--primary);

    /* Allow height to fit content, but fill the cell */
    min-height: 100%;
    height: auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;

    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.timetable-cell-content:hover {
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.timetable-cell-content strong {
    font-size: 0.85rem;
    color: #1a202c;
    margin-bottom: 0.2rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.cell-teacher,
.cell-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

.teacher-timetable-entry {
    min-height: 65px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.6rem 0.5rem !important;
    border-radius: 8px !important;
    border-left: 4px solid transparent !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    margin-bottom: 3px !important;
}

.teacher-timetable-entry:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px) !important;
}

.teacher-timetable-entry strong {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    flex-shrink: 0;
    color: #1a202c;
}

/* --- Interactive Stacked Cards for Concurrent Entries --- */
.stacked-cards-container {
    position: relative;
    width: 100%;
    min-height: 85px;
    /* ensure cell maintains minimum height for absolute children */
    cursor: pointer;
    perspective: 1000px;
}

.stacked-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
}

.stacked-card.active-top {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

.stacked-card.inactive-bottom {
    /* Offset significantly to show corner/edge peek, and scale down slightly */
    transform: translate(6px, 6px) scale(0.96);
    opacity: 0.85;
    filter: brightness(0.9) grayscale(0.2);
    pointer-events: none;
    /* Let clicks pass to container */
}

.stacked-cards-container:hover .inactive-bottom {
    /* Reveal slightly more on hover for affordance */
    transform: translate(10px, 10px) scale(0.98) rotate(1deg);
    opacity: 0.95;
    filter: brightness(0.95) grayscale(0.1);
}

/* Lock Button Styles */
.lock-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
    z-index: 10;
}

.lock-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.lock-btn.locked {
    color: #dc2626;
    opacity: 1;
}

.lock-btn svg {
    display: block;
}

.teacher-timetable-entry .cell-teacher {
    line-height: 1.3;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    flex-shrink: 0;
    color: #4a5568;
    font-weight: 500;
}

.teacher-timetable-entry .cell-time {
    line-height: 1.3;
    font-size: 0.72rem;
    flex-shrink: 0;
    color: #667eea;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#teacher-timetable-content .timetable-grid .entry-cell {
    min-height: 70px;
    padding: 5px;
    vertical-align: top;
}

.overview-grid .room-timetable-cell {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overview-grid td.overview-filled-cell {
    position: relative;
}

.overview-grid td.overview-filled-cell:hover {
    z-index: 1001;
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.overview-grid .room-cell-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 99999 !important;
    pointer-events: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    min-width: 220px;
    max-width: 350px;
    width: max-content;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.overview-grid .room-cell-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1a202c;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.overview-grid td.overview-filled-cell:hover .room-cell-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Room timetable uses overview-grid layout */
#room-timetable-content .overview-grid {
    overflow: visible;
    width: 100%;
    min-width: 1000px;
    /* Forces horizontal scaling instead of squishing timeslot columns */
    table-layout: auto;
}

#room-timetable-content .overview-grid td {
    overflow: visible !important;
    position: relative;
}

#room-timetable-content .overview-grid {
    position: relative;
    z-index: 0;
}

/* Also apply to main overview board */
#overview-board-container .overview-grid {
    overflow: visible;
    position: relative;
    z-index: 0;
    width: 100%;
    min-width: 1000px;
    table-layout: auto;
}

#overview-board-container .overview-grid td {
    overflow: visible !important;
    position: relative;
}

/* --- Tooltip Edge Positioning --- */

/* Right-most columns: Align tooltip to the right */
.overview-grid td:nth-last-child(-n+3) .room-cell-tooltip {
    left: auto;
    right: 0;
    transform: none;
}

.overview-grid td:nth-last-child(-n+3) .room-cell-tooltip::after {
    left: auto;
    right: 20px;
    transform: none;
}

.overview-grid td:nth-last-child(-n+3):hover .room-cell-tooltip {
    transform: translateY(0);
}

/* Left-most columns: Align tooltip to the left */
.overview-grid td:nth-child(-n+4) .room-cell-tooltip {
    left: 0;
    right: auto;
    transform: none;
}

.overview-grid td:nth-child(-n+4) .room-cell-tooltip::after {
    left: 20px;
    transform: none;
}

.overview-grid td:nth-child(-n+4):hover .room-cell-tooltip {
    transform: translateY(0);
}

/* Top-most rows: Show tooltip BELOW */
.overview-grid tr:nth-child(-n+3) .room-cell-tooltip {
    bottom: auto;
    top: calc(100% + 10px);
}

.overview-grid tr:nth-child(-n+3) .room-cell-tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1a202c;
    border: 8px solid transparent;
    border-bottom-color: #1a202c;
}

#timetable-room-view {
    position: relative;
    z-index: 0;
}

#timetable-room-view .timetable-filter {
    position: relative;
    z-index: 1;
}

#timetable-room-view .tab-content {
    position: relative;
    z-index: 2;
}

#room-timetable-content .tab-content {
    overflow: visible;
    overflow-x: auto;
}

.overview-grid .room-cell-tooltip .tooltip-detail {
    margin: 0.4rem 0;
    line-height: 1.6;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.overview-grid .room-cell-tooltip .tooltip-detail strong {
    color: #fbbf24;
    font-weight: 700;
    margin-right: 0.6rem;
    display: inline-block;
    min-width: 70px;
    vertical-align: top;
}

.overview-grid .room-cell-tooltip .tooltip-detail>div {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.cell-teacher {
    font-size: 0.82rem;
    color: #4a5568;
    margin-bottom: 0.25rem;
    font-weight: 500;
    line-height: 1.4;
}

.cell-time {
    font-size: 0.73rem;
    color: #667eea;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.placeholder {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
}

#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    z-index: 1000;
}

.toast {
    min-width: 240px;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    color: var(--text);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1080px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 1rem 2.5rem;
    }

    .workspace {
        border-top-left-radius: 24px;
    }
}

/* Split session form styling */
.form-section {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

#split-groups-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-group-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.08);
    border-radius: var(--radius-md);
    position: relative;
}

.split-group-row .group-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.split-group-row .group-header label {
    flex: 1;
}

.split-group-row .group-class-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.split-group-row .split-group-remove {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    align-self: start;
}

@media (max-width: 720px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .export-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .panel {
        max-width: 100%;
    }

    .app-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 150px);
        padding-bottom: 80px;
        /* padding for bottom nav */
    }

    .workspace {
        padding: 1.5rem 1rem;
    }

    .nav-rail {
        flex-direction: row;
        width: 100%;
        height: 70px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.5rem;
        border-top: 1px solid var(--border-variant);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        gap: 0.2rem;
    }

    .nav-item {
        width: auto;
        min-width: 68px;
        padding: 0.2rem;
    }

    .nav-item.primary-action {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 38, 59, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    /* Default Width */
    max-height: 90vh;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-container.large {
    max-width: 800px;
}

.modal-header {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    color: var(--text);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(44, 62, 80, 0.05);
    color: var(--text);
}

.modal-content {
    padding: 1.6rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.2rem 1.6rem;
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    background: #f8fafc;
    flex-shrink: 0;
}

/* Generic Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(44, 62, 80, 0.08);
}

.data-table td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(44, 62, 80, 0.05);
    color: var(--text);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: var(--surface-alt);
}

.data-table .item-actions {
    justify-content: flex-end;
}

.data-table .primary-text {
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
    display: block;
}

.data-table .secondary-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}