.logout-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.nav-link {
    font-weight: bold !important;
    text-transform: uppercase;
}


body {
    --organisation-colour: #1D4ED8;
    --organisation-text-colour: #ffffff;
    background-color: rgb(244, 244, 244);
}


.organisation-header {
    background-color: var(--organisation-colour);
    color: var(--organisation-text-colour);
    padding: 1rem 1.25rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.organisation-brand {
    min-width: 0;
}

.organisation-header .navbar-brand,
.organisation-header .nav-link {
    color: var(--organisation-text-colour);
}

.organisation-header .navbar-toggler {
    color: var(--organisation-text-colour);
}

.organisation-header .navbar-toggler-icon {
    filter: invert(1);
}

.organisation-image {
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.organisation-title {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    line-height: 1.1;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .organisation-header .navbar-nav {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .organisation-header {
        padding: 0.75rem 1rem;
    }

    .organisation-brand {
        gap: 0.75rem !important;
    }
}

.student-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--organisation-colour) !important;
    --bs-btn-border-color: var(--organisation-colour) !important;
}

.text-org {
    color: var(--organisation-colour) !important;
}

.text-on-org {
    color: var(--organisation-text-colour) !important;
}

/* .table > tbody > tr > td,
.table > thead > tr > th {
    border-left: none;
    border-right: none;
} */

.bootstrap-table .fixed-table-body {
    height: auto !important;
}

.name-column {
    width: 35%;
}

.spacer {
    height: 50px;
}

.btn-outline-primary {
    --bs-btn-color: var(--organisation-colour);
    --bs-btn-border-color: var(--organisation-colour);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--organisation-colour);
    --bs-btn-hover-border-color: var(--organisation-colour);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: var(--organisation-colour);
    --bs-btn-active-color: var(--organisation-colour);
}

.bg-primary {
    background-color: var(--organisation-colour) !important;
}

.clickable-row {
    cursor: pointer;
}

.sign-up-card {
    width: 90dvw;
}

@media (min-width: 768px) {
    .sticky-sidebar {
        position: sticky;
        top: 7rem;
    }

.sign-up-card {
    width: 50dvw;
}
}

.alert-org {
    --bs-alert-color: var(--organisation-colour);
    --bs-alert-bg: color-mix(in srgb, var(--organisation-colour) 10%, white);
    --bs-alert-border-color: var(--organisation-colour);
}

#id_year_groups, #id_students {
    display: grid;
    grid-template-rows: repeat(7, auto);
    grid-auto-flow: column;
    gap: 0.2rem 2rem;
}

/* -------------------------------------------------
               Layout
            ------------------------------------------------- */

            .app-content {
                display: flex;
                flex: 1 1 auto;
                min-height: 0;
            }

            .page-content {
                flex: 1 1 auto;
                min-width: 0;
            }


            /* -------------------------------------------------
               Sidebar
            ------------------------------------------------- */

.sidebar {
    flex: 0 0 220px;
    width: 220px;
    min-width: 0;
    overflow: hidden;

    background: color-mix(in srgb, var(--organisation-colour), #000 15%);
    color: #fff;
    padding: 1rem 0.75rem;

    display: flex;
    flex-direction: column;

    position: sticky;
    top: 6.37rem;
    height: calc(100vh - 6.37rem);
    align-self: flex-start;

    box-sizing: border-box;

    transition: flex-basis 0.2s ease, width 0.2s ease;
}
.sidebar.no-transition {
    transition: none !important;
}
.sidebar.collapsed {
    flex-basis: 64px;
    width: 64px;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 0.75rem 0.9rem;

    border: 0;
    border-radius: 0.5rem;

    background: transparent;
    color: #fff;

    text-decoration: none;
    text-align: left;

    font-size: 1rem;
    font-weight: 500;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.sidebar-link i {
    width: 1.35rem;
    min-width: 1.35rem;
    flex-shrink: 0;

    font-size: 1.15rem;
    text-align: center;
}

.sidebar-link span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;

    transition:
        opacity 0.1s ease;
}

.sidebar.collapsed .sidebar-link {
    gap: 0;
}

.sidebar-nav .sidebar-link i {
    transform: translateX(-0.3rem);
}

.sidebar.collapsed .sidebar-link span {
    opacity: 0;
}

.sidebar-collapse i {
    transition: transform 0.2s ease;
}

.sidebar.collapsed .sidebar-collapse i {
    transform: rotate(180deg);
}

.sidebar {
    flex: 0 0 220px;
    width: 220px;
    transition: flex-basis 0.2s ease, width 0.2s ease;
}

.sidebar.collapsed,
.sidebar-collapsed .sidebar {
    flex-basis: 64px;
    width: 64px;
}

.sidebar-collapsed .sidebar {
    transition: none;
}


.sidebar-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.no-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 16.2rem);
}

.no-content-icon {
    font-size: 9rem;
}

.register-stats-number {
    font-size: 1.8rem;
}

.register-stats-number, .register-stats-label {
    text-align: center;
}

.name-col {
    width: 30%;
}

.contact-col {
    width: 15%;
}

.status-col {
    width: 37%;
}

.action-col {
    width: 18%;
}

.logo-icon {
    font-size: 4rem;
    margin: -13px 0px -13px 0px;
}
