/* Safety and framing rules applied on top of the captured Moodle page. */
html,
body.la-demo-snapshot {
    min-width: 0;
    min-height: 100%;
}

body.la-demo-snapshot {
    overflow: auto;
}

body.la-demo-snapshot #page-footer,
body.la-demo-snapshot .performanceinfo,
body.la-demo-snapshot .debugging,
body.la-demo-snapshot [data-region="debugging"],
body.la-demo-snapshot #user-sidebar-comments-root {
    display: none !important;
}

body.la-demo-snapshot a,
body.la-demo-snapshot button,
body.la-demo-snapshot [role="button"] {
    cursor: pointer;
}

body.la-demo-snapshot .la-demo-avatar-placeholder {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #73737a;
}

body.la-demo-snapshot .la-demo-tour-focus {
    scroll-margin: 44px;
}

body.la-demo-snapshot .la-demo-spotlight {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    pointer-events: none;
}

body.la-demo-snapshot .la-demo-spotlight[hidden] {
    display: none !important;
}

body.la-demo-snapshot .la-demo-spotlight-shade,
body.la-demo-snapshot .la-demo-spotlight-frame {
    position: fixed;
    pointer-events: none;
    transition:
        top .2s ease,
        left .2s ease,
        width .2s ease,
        height .2s ease;
}

body.la-demo-snapshot .la-demo-spotlight-shade {
    background: rgba(20, 25, 34, .62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

body.la-demo-snapshot .la-demo-spotlight.is-modal-context .la-demo-spotlight-shade {
    background: transparent;
}

body.la-demo-snapshot .la-demo-spotlight-frame {
    border: 2px solid rgba(255, 255, 255, .98);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, .18),
        0 10px 34px rgba(15, 23, 42, .24),
        inset 0 0 0 1px rgba(255, 255, 255, .32);
}

body.la-demo-snapshot .la-demo-spotlight.is-modal-context .la-demo-spotlight-frame {
    border-color: #4e8ee6;
    box-shadow:
        0 0 0 3px rgba(78, 142, 230, .15),
        0 8px 24px rgba(15, 23, 42, .16);
}

body.la-demo-snapshot th.la-demo-active-sort {
    background: #eef5ff;
}

body.la-demo-snapshot th.la-demo-active-sort > a {
    font-weight: 700;
    text-decoration: none;
}

body.la-demo-snapshot .la-demo-modal-overlay {
    position: fixed;
    z-index: 1055;
    inset: 0;
    display: grid;
    overflow: auto;
    padding: 16px;
    place-items: center;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(0.75px);
}

body.la-demo-snapshot .la-demo-modal-overlay .modal-dialog {
    width: calc(100% - 32px);
    max-width: 1140px;
    margin: auto;
}

body.la-demo-snapshot .la-demo-modal-overlay .modal-dialog.modal-lg {
    width: min(860px, 94vw);
}

body.la-demo-snapshot .la-demo-modal-overlay .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid #aeb7c2;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .3) !important;
}

body.la-demo-snapshot .la-demo-modal-overlay .modal-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e6eb;
    background: #fff;
}

body.la-demo-snapshot .la-demo-modal-overlay .modal-title {
    margin: 0;
    color: #20242a;
    font-size: 1.25rem !important;
    font-weight: 650;
    line-height: 1.3;
}

body.la-demo-snapshot .la-demo-modal-overlay .btn-close {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent !important;
    color: #5d6570;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    opacity: 1;
}

body.la-demo-snapshot .la-demo-modal-overlay .btn-close:hover,
body.la-demo-snapshot .la-demo-modal-overlay .btn-close:focus-visible {
    border-color: #d7dce2;
    background: #f3f5f7 !important;
    color: #20242a;
}

body.la-demo-snapshot .la-demo-modal-overlay .modal-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    padding: 20px;
    background: #fff;
}

body.la-demo-snapshot .la-report-modal-metric-value {
    color: #20242a;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

body.la-demo-snapshot .la-report-modal-metric-label {
    margin-top: .2rem;
    color: #657083;
    font-size: .875rem;
    font-weight: 500;
}

body.la-demo-snapshot .la-report-modal-metric {
    min-width: 120px;
}

body.la-demo-snapshot .la-calendar-summary {
    display: flex;
    gap: .875rem;
    align-items: center;
    min-width: 0;
}

body.la-demo-snapshot .la-calendar-summary-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

body.la-demo-snapshot .la-calendar-summary .h4 {
    font-size: 1.5rem;
    line-height: 1.2;
}

body.la-demo-snapshot .la-calendar-panel {
    border-top: 1px solid #eef2f6;
}

body.la-demo-snapshot .la-calendar-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f6;
}

body.la-demo-snapshot .la-calendar-toolbar,
body.la-demo-snapshot .la-calendar-filters,
body.la-demo-snapshot .la-calendar-filter-tag {
    display: flex;
    gap: .5rem;
    align-items: center;
}

body.la-demo-snapshot .la-calendar-nav-button {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #657083;
    font-size: 1.5rem;
}

body.la-demo-snapshot .la-calendar-title-static {
    min-width: 6rem;
    color: #20242a;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

body.la-demo-snapshot .la-calendar-filters {
    justify-content: flex-end;
    flex-wrap: wrap;
}

body.la-demo-snapshot .la-calendar-filter-tag {
    padding: .4rem .4rem .4rem 1rem;
    border: 1px solid #e5eaf1;
    border-radius: 999px;
    background: #f8fafc;
    font-size: .78rem;
    line-height: 1;
}

body.la-demo-snapshot .la-calendar-filter-tag-remove {
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #657083;
    font-size: 1.2rem;
    line-height: 1;
}

body.la-demo-snapshot .la-calendar-weekdays,
body.la-demo-snapshot .la-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .5rem;
}

body.la-demo-snapshot .la-calendar-weekdays {
    border-bottom: 0;
}

body.la-demo-snapshot .la-calendar-weekday {
    padding: .85rem .5rem;
    color: #657083;
    font-size: .9rem;
    font-weight: 400;
    text-align: center;
    border-bottom: 1px solid #eef2f6;
}

body.la-demo-snapshot .la-calendar-month-grid {
    padding: .75rem;
    background: #fff;
}

body.la-demo-snapshot .la-calendar-row {
    gap: .5rem;
    margin-bottom: .5rem;
}

body.la-demo-snapshot .la-calendar-row:last-child {
    margin-bottom: 0;
}

body.la-demo-snapshot .la-calendar-cell {
    position: relative;
    min-width: 0;
    min-height: 86px;
    padding: .85rem;
    border: 0;
    border-radius: .65rem;
    background: #edf2f7;
    color: #273142;
    text-align: left;
}

body.la-demo-snapshot .la-calendar-level-0 { background: #edf2f7; }
body.la-demo-snapshot .la-calendar-level-1 { background: #dbe2ff; }
body.la-demo-snapshot .la-calendar-level-2 { background: #bcc8fb; }
body.la-demo-snapshot .la-calendar-level-3 { background: #8ea2f4; color: #fff; }
body.la-demo-snapshot .la-calendar-level-4 { background: #5573e8; color: #fff; }

body.la-demo-snapshot .la-calendar-cell-label {
    position: absolute;
    top: .7rem;
    left: .8rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    opacity: .45;
}

body.la-demo-snapshot .la-calendar-cell-value {
    position: absolute;
    right: .75rem;
    bottom: .65rem;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
}

body.la-demo-snapshot .la-calendar-day-outside {
    opacity: .45;
}

body.la-demo-snapshot .la-demo-grade-singleview div.reporttable {
    margin: 0;
    padding: 0;
    background-color: transparent;
    text-align: inherit;
}

body.la-demo-snapshot .la-demo-modal-overlay .la-demo-grade-singleview .table-responsive {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table {
    width: 100%;
    min-width: 980px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    color: #24272b;
    background: #fff;
    table-layout: auto;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table th,
body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table td {
    padding: 15px 12px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dfe3e8 !important;
    border-left: 0 !important;
    background: #fff;
    color: #24272b;
    font-size: 14px;
    line-height: 1.35;
    vertical-align: middle;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table thead th {
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fff;
    color: #17191c;
    font-weight: 700;
    white-space: nowrap;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table thead th:first-child {
    width: 22%;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table thead th:nth-child(3) {
    width: 24%;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table thead th:nth-child(4) {
    width: 8%;
}

body.la-demo-snapshot .la-demo-grade-singleview .grade-singleview-table thead th:nth-child(5) {
    width: 13%;
}

body.la-demo-snapshot .la-demo-grade-singleview .la-demo-grade-actions-column,
body.la-demo-snapshot .la-demo-grade-singleview .la-demo-grade-actions {
    width: 44px;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
}

body.la-demo-snapshot .la-demo-grade-singleview .la-demo-grade-item {
    display: table-cell;
    min-width: 195px;
    font-weight: 400;
    text-align: left;
}

body.la-demo-snapshot .la-demo-grade-item-icon,
body.la-demo-snapshot .la-demo-grade-total-icon {
    display: inline-flex;
    width: 30px;
    margin-right: 8px;
    color: #4f565e;
    font-size: 16px;
    font-style: normal;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}

body.la-demo-snapshot .la-demo-grade-total-icon {
    color: #70757a;
    font-size: 22px;
    font-weight: 700;
}

body.la-demo-snapshot .la-demo-grade-item-copy {
    display: inline-flex;
    min-width: 0;
    vertical-align: middle;
    flex-direction: column;
}

body.la-demo-snapshot .la-demo-grade-item-type {
    margin-bottom: 2px;
    color: #62666b;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

body.la-demo-snapshot .la-demo-grade-item-name {
    color: #0f6fc5;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
}

body.la-demo-snapshot .la-demo-grade-total-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

body.la-demo-snapshot .la-demo-grade-menu {
    min-width: 28px;
    height: 32px;
    padding: 0 4px;
    border: 0;
    color: #191c1f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
}

body.la-demo-snapshot .la-demo-grade-value .la-demo-grade-menu {
    color: #0f6fc5;
}

body.la-demo-snapshot .la-demo-grade-total th,
body.la-demo-snapshot .la-demo-grade-total td {
    border-bottom-color: #d7dce1 !important;
}

body.la-demo-snapshot .la-demo-grade-footer {
    margin-top: 16px;
}

body.la-demo-snapshot .la-demo-grade-footer .btn {
    height: 40px;
}

body.la-demo-snapshot .la-demo-grade-chevron {
    display: inline-block;
    margin-left: 7px;
    color: #6c757d;
    font-size: 22px;
    line-height: 0;
    vertical-align: -2px;
}

body.la-demo-snapshot .la-columns-status-dot {
    width: .55rem;
    height: .55rem;
    flex: 0 0 .55rem;
}

body.la-demo-snapshot .la-columns-modal .list-group {
    display: none;
}

body.la-demo-snapshot .la-columns-modal .card:first-child .list-group {
    display: block;
}

body.la-demo-snapshot .la-columns-modal .la-modal-footer {
    margin: 1rem -36px -32px;
    margin-bottom: -32px;
}

body.la-demo-snapshot .la-demo-modal-overlay .table-responsive {
    overflow: hidden;
    border: 1px solid #e0e4e9;
    border-radius: 9px;
}

body.la-demo-snapshot .la-demo-modal-overlay .table {
    margin: 0;
    color: #30353b;
    background: #fff;
}

body.la-demo-snapshot .la-demo-modal-overlay .table > :not(caption) > * > * {
    padding: 12px 14px;
    border-color: #e5e8ec;
}

body.la-demo-snapshot .la-demo-modal-overlay .table thead th {
    background: #f6f7f9;
    color: #30353b;
    font-weight: 650;
}

@media (max-width: 640px) {
    body.la-demo-snapshot .navbar.fixed-top {
        overflow: hidden;
    }

    body.la-demo-snapshot .navbar > .la-header-grid {
        display: flex;
        width: 100%;
        gap: .35rem;
        padding-right: .5rem;
        padding-left: .5rem;
        flex-wrap: nowrap;
    }

    body.la-demo-snapshot .la-header-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    body.la-demo-snapshot .la-header-left > a {
        display: flex !important;
        overflow: hidden;
        margin-right: 0 !important;
        padding-right: .5rem !important;
        padding-left: .5rem !important;
    }

    body.la-demo-snapshot .la-header-left .primary-navigation,
    body.la-demo-snapshot .la-header-search {
        display: none !important;
    }

    body.la-demo-snapshot .la-header-actions {
        min-width: 0;
        margin-left: auto;
        flex: 0 0 auto;
    }

    body.la-demo-snapshot .la-header-actions .btn {
        padding-right: .65rem;
        padding-left: .65rem;
        white-space: nowrap;
    }

    body.la-demo-snapshot .la-demo-modal-overlay {
        padding: 10px;
    }

    body.la-demo-snapshot .la-demo-modal-overlay .modal-body {
        padding: 20px;
    }

    body.la-demo-snapshot .la-calendar-header {
        align-items: stretch;
        flex-direction: column;
    }

    body.la-demo-snapshot .la-calendar-filters {
        justify-content: flex-start;
    }

    body.la-demo-snapshot .la-calendar-cell {
        min-height: 64px;
        padding: .45rem;
    }

    body.la-demo-snapshot .la-calendar-cell-value {
        right: .45rem;
        bottom: .4rem;
        font-size: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.la-demo-snapshot * {
        scroll-behavior: auto !important;
    }
}
