.fi-panel-admin .fi-ta-content-grid .professor-list-card.fi-ta-record {
    border: 1px solid #e4e4e7;
    border-radius: 0.875rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fi-panel-admin .fi-ta-content-grid .professor-list-card.fi-clickable:hover {
    border-color: #99f6e4;
    box-shadow: 0 4px 12px rgb(15 118 110 / 0.08);
}

.fi-panel-admin .professor-students-list {
    display: flex;
    flex-direction: column;
    padding: 0 1rem 1rem;
}

.fi-panel-admin .professor-students-list__empty {
    margin: 0;
    padding: 2rem 1rem;
    color: #71717a;
    font-size: 0.875rem;
    text-align: center;
}

.fi-panel-admin .professor-students-list .professor-student-row {
    border-bottom: 1px solid #e4e4e7;
    background: #ffffff;
}

.fi-panel-admin .professor-students-list .professor-student-row:first-child {
    border-top: 1px solid #e4e4e7;
}

.fi-panel-admin .professor-students-list-page .fi-ta-content-ctn {
    overflow: visible;
}

.fi-panel-admin .professor-students-list-page .fi-ta-header-ctn {
    border-bottom: none;
}

.fi-panel-admin .fi-ta-content-grid .professor-list-card .fi-ta-col-wrp {
    padding: 0;
    width: 100%;
}

.fi-panel-admin .fi-ta-content-grid .professor-list-card .fi-ta-text-item-label {
    display: none;
}

.fi-panel-admin .professor-list-page .fi-ta-content-grid {
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
}

.fi-panel-admin .professor-students-list-page .fi-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fi-panel-admin .professor-students-list-page .fi-tabs::-webkit-scrollbar {
    display: none;
}

.fi-panel-admin .professor-students-list-page .fi-tabs-item {
    flex-shrink: 0;
    white-space: nowrap;
}

.fi-panel-admin .professor-list-page .fi-ta-header-ctn {
    padding-top: 0.75rem;
}

.fi-panel-admin .professor-list-page .fi-ta-header-toolbar {
    padding-inline: 1rem;
}

.fi-panel-admin .professor-student-row {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.fi-panel-admin .professor-student-row__name {
    min-width: 0;
    color: #18181b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fi-panel-admin .professor-student-row__name:hover {
    color: #0f766e;
}

.fi-panel-admin .professor-student-row__programs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
}

.fi-panel-admin .professor-student-row__program {
    border-radius: 0.375rem;
    background: #eff6ff;
    padding: 0.125rem 0.5rem;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

.fi-panel-admin .professor-student-row__program--link {
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.fi-panel-admin .professor-student-row__program--link:hover {
    background: #dbeafe;
    color: #1e40af;
}

.fi-panel-admin .professor-student-row__birth {
    margin: 0;
    color: #71717a;
    font-size: 0.8125rem;
    line-height: 1.35;
    white-space: nowrap;
}

.fi-panel-admin .professor-student-row__birth span {
    color: #3f3f46;
    font-weight: 500;
}

.fi-panel-admin .professor-student-row__lessons {
    box-sizing: border-box;
    display: inline-flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fi-panel-admin .professor-student-row__lessons svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* A. Soft primary / brand (default) */
.fi-panel-admin .professor-student-row__lessons--brand {
    border: 1px solid #99f6e4;
    background: var(--admin-teal-soft, #ccfbf1);
    color: var(--admin-teal-emphasis, #0f766e);
    box-shadow: 0 1px 2px rgb(13 148 136 / 0.08);
}

.fi-panel-admin .professor-student-row__lessons--brand svg {
    color: var(--admin-teal-emphasis, #0f766e);
}

.fi-panel-admin .professor-student-row__lessons--brand:hover,
.fi-panel-admin .professor-student-row__lessons--brand:focus-visible {
    background: #a7f3d0;
    border-color: #5eead4;
    color: #115e59;
}

.fi-panel-admin .professor-student-row__lessons--brand:hover svg,
.fi-panel-admin .professor-student-row__lessons--brand:focus-visible svg {
    color: #115e59;
}

/* B. Badge / amber (swap --brand with --badge on the link to use) */
.fi-panel-admin .professor-student-row__lessons--badge {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #b45309;
    box-shadow: none;
}

.fi-panel-admin .professor-student-row__lessons--badge svg {
    color: #d97706;
}

.fi-panel-admin .professor-student-row__lessons--badge:hover,
.fi-panel-admin .professor-student-row__lessons--badge:focus-visible {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.fi-panel-admin .professor-student-row__lessons--badge:hover svg,
.fi-panel-admin .professor-student-row__lessons--badge:focus-visible svg {
    color: #b45309;
}

@media (min-width: 768px) {
    .fi-panel-admin .professor-student-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem 1.5rem;
        padding: 0.875rem 1.125rem;
    }

    .fi-panel-admin .professor-student-row__name {
        flex: 1 1 auto;
        overflow: visible;
        text-overflow: unset;
        white-space: nowrap;
    }

    .fi-panel-admin .professor-student-row__programs {
        flex: 0 0 auto;
    }

    .fi-panel-admin .professor-student-row__birth {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .fi-panel-admin .professor-student-row__lessons {
        flex: 0 0 auto;
        width: auto;
        min-width: 6.5rem;
        min-height: 2.25rem;
    }
}

@media (max-width: 639px) {
    .fi-panel-admin .professor-students-list {
        gap: 0.5rem;
        padding-top: 0;
    }

    .fi-panel-admin .professor-students-list .professor-student-row {
        border: 1px solid #e4e4e7;
        border-radius: 0.875rem;
        box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
    }

    .fi-panel-admin .professor-students-list .professor-student-row:first-child {
        border-top: 1px solid #e4e4e7;
    }
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f4f4f5;
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action,
.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-delete-action {
    min-height: 2.5rem;
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons {
    box-sizing: border-box;
    display: inline-flex;
    width: 100%;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgb(13 148 136 / 0.08);
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons svg,
.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons .fi-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--admin-teal-emphasis, #0f766e);
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand {
    border: 1px solid #99f6e4;
    background: var(--admin-teal-soft, #ccfbf1);
    color: var(--admin-teal-emphasis, #0f766e);
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.fi-btn {
    --tw-ring-shadow: 0 0 #0000;
    box-shadow: 0 1px 2px rgb(13 148 136 / 0.08);
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand:hover,
.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand:focus-visible {
    background: #a7f3d0;
    border-color: #5eead4;
    color: #115e59;
}

.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand:hover svg,
.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand:hover .fi-icon,
.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand:focus-visible svg,
.fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons--brand:focus-visible .fi-icon {
    color: #115e59;
}

@media (max-width: 767px) {
    .fi-panel-admin .professor-report-card-record .professor-report-view-action {
        display: none;
    }

    .fi-panel-admin .professor-report-card-record .fi-ta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fi-panel-admin .professor-report-card-record .fi-ta-actions .professor-report-edit-action.professor-student-row__lessons {
        width: 100%;
        min-height: 2.25rem;
    }

    .fi-panel-admin .professor-students-list-page .fi-ta-header-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-inline: 1rem;
    }

    .fi-panel-admin .professor-students-list-page .fi-ta-header-toolbar > div {
        width: 100%;
    }

    .fi-panel-admin .professor-students-list-page .fi-ta-search-field {
        width: 100%;
        max-width: none;
    }

    .fi-panel-admin .professor-students-list-page .fi-ta-content-header {
        display: none;
    }

    .fi-panel-admin .professor-students-list-page .fi-pagination {
        justify-content: center;
        padding: 0.75rem 1rem 1rem;
    }

    .fi-panel-admin .professor-students-list-page .fi-pagination-records-per-page-select-ctn {
        display: none;
    }

    .fi-panel-admin .professor-students-list-page .professor-student-row__birth {
        margin-left: 0;
    }

    .fi-panel-admin .professor-list-page .fi-ta-filter-indicators {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 0.75rem 1rem;
        background: #fafafa;
        border-bottom: 1px solid #e4e4e7;
    }

    .fi-panel-admin .professor-list-page .fi-ta-filter-indicators > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .fi-panel-admin .professor-list-page .fi-ta-filter-indicators-badges-ctn {
        width: 100%;
    }

    .fi-panel-admin .professor-reports-list-page .fi-ta-content-header {
        display: none;
    }

    .fi-panel-admin .professor-reports-list-page .fi-ta-sorting-settings {
        display: grid;
        width: 100%;
        gap: 0.5rem;
    }

    .fi-panel-admin .professor-reports-list-page .fi-ta-sorting-settings label {
        width: 100%;
    }

    .fi-panel-admin .professor-reports-list-page .fi-ta-sorting-settings .fi-input-wrp {
        width: 100%;
    }

    .fi-panel-admin .professor-reports-list-page .fi-ta-header-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .fi-panel-admin .professor-reports-list-page .fi-ta-header-toolbar > div {
        width: 100%;
    }

    .fi-panel-admin .professor-reports-list-page .fi-pagination {
        width: 100%;
        padding: 0.75rem 1rem 1rem;
    }

    .fi-panel-admin .professor-reports-list-page .fi-pagination-records-per-page-select-ctn {
        width: 100%;
    }

    .fi-panel-admin .professor-reports-list-page .fi-pagination-records-per-page-select-ctn .fi-input-wrp {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .fi-panel-admin .professor-report-card-record .professor-report-view-action {
        display: inline-flex;
    }

    .fi-panel-admin .professor-report-card-record .professor-report-edit-action.professor-student-row__lessons {
        width: auto;
        min-width: 6.5rem;
        min-height: 2.25rem;
    }
}
