/* Ensure RadzenDataGrid rows expand when text wraps */
.rz-datagrid-table tr td {
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* for use in DataGrids */
.memo-grid {
    white-space: pre-wrap; /* preserve CRLF, spaces, tabs + allow wrapping */
    word-break: break-word; /* prevent overflow on long words/URLs */
    overflow-wrap: anywhere; /* modern wrapping hint */
    font-size: 0.85rem; /* adjust to taste */
    line-height: 1rem; /* tighter spacing like */
    color: var(--rz-text-secondary);
    background-color: transparent; /* keep consistent with Radzen grid cells */
    padding: 2px 4px; /* small consistent padding */
    tab-size: 4; /* display tabs neatly */
    margin: 2px 0; /* minimal spacing */
    vertical-align: top;
}
/* For use on form but not grids */
.memo-form {
    white-space: pre-wrap; /* preserve CRLF, spaces, tabs + allow wrapping */
    word-break: break-word; /* prevent overflow on long words/URLs */
    overflow-wrap: anywhere; /* modern wrapping hint */
    font-size: 0.9rem; /* adjust to taste */
    line-height: 1.2rem; /* tighter spacing like */
    color: black ; /* var(--rz-text-primary) should be the same color as text in a RadzenText */
    background-color: transparent; /* keep consistent with Radzen grid cells */
    padding: 2px 2px; /* small consistent padding */
    tab-size: 4; /* display tabs neatly */
    margin: 2px 0; /* minimal spacing */
}

/* Currently not used */
.memo-wrap {
    font-size: 0.85rem !important;
    line-height: 1rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

/* Used in Cards in DataLists for course names etc... so that it would not exceed 2 lines*/
.two-line-ellipsis {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide on small screen */
@media (max-width: 767.98px) {
    .hide-on-sm {
        display: none !important;
    }
}
/* Hide on larger screen */
@media (min-width: 768px) {
    .hide-on-lg {
        display: none !important;
    }
}

/* Default dialog caption style (desktop) */
.rz-dialog-titlebar .rz-dialog-title {
    font-size: 1rem; /* normal size */
    font-weight: 600;
}

/* Smaller caption on mobile screens */
@media (max-width: 768px) {
    .rz-dialog-titlebar .rz-dialog-title {
        font-size: 0.85rem !important;
        font-weight: 500;
    }

    /* Optional: reduce title bar padding too */
    .rz-dialog-titlebar {
        padding: 0.3rem 0.6rem !important;
    }
}

/* So school name shrinks or expands in LoginLayout */
.school-name {
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rz-on-primary);

    /* Default = desktop / large screens */
    font-size: clamp(1.1rem, 2.8vw, 2rem);
}

/* Mobile portrait (small phones) */
@media (max-width: 480px) {
    .school-name {
        font-size: clamp(0.75rem, 4.5vw, 1.4rem);
    }
}

/* Tablets (portrait / small landscape) */
@media (min-width: 481px) and (max-width: 1024px) {
    .school-name {
        font-size: clamp(0.8rem, 3.2vw, 1.6rem);
    }
}