/* 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: 1rem; /* 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;
    }
}

/* Displaying HTML text on Radzen pages */
.co-html p { margin: 0 0 .75rem 0; }
.co-html ul, .co-html ol { margin: .5rem 0 .75rem 1.25rem; }
.co-html table { border-collapse: collapse; width: 100%; }
.co-html th, .co-html td { border: 1px solid var(--rz-border-color); padding: .35rem .5rem; }
.co-html a { text-decoration: underline; }

/* 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);
    }
}

/*** Begin DialogService.Confirm() Customization ***/
/* Entire confirm dialog */
.confirm-danger .rz-confirm-dialog {
    background-color: #fee2e2;
}
/* Title */
.confirm-danger .rz-dialog-title {
    color: #b91c1c;
    font-weight: 600;
}
/* Message text */
.confirm-danger .rz-dialog-content {
    font-weight: 700;
    color: #d00000; /* bright red */
    background-color: #fff3a0; /* yellow */
    padding: 12px;
    border-radius: 4px;
}
/* YES button */
.confirm-danger .rz-button.rz-primary {
    background-color: #dc2626;
    border-color: #dc2626;
}
/* NO button */
.confirm-danger .rz-button:not(.rz-primary) {
    background-color: #e5e7eb;
    color: #111827;
}
/*** End DialogService.Confirm() Customization ***/

/*** Begin About page ***/
.about-footer {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: rgba(0,0,0,.02);
    max-width: 900px;
}

.about-footer__copyright {
    font-size: .95rem;
    opacity: .7;
    margin-bottom: .6rem;
}

.about-footer__beta {
    font-size: 1.05rem;
    /*font-weight: 600;*/
    margin-bottom: .55rem;
}

.about-footer__support {
    font-size: 1rem;
    line-height: 1.35;
}

.about-footer__support a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(37,99,235,.35);
}

.about-footer__support a:hover {
    border-bottom-color: rgba(37,99,235,.9);
}
/*** End About Page ***/