﻿/* Main page container: center + vertical spacing between panels */
.allsitesub-page {
    max-width: 1300px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    gap: 28px; /* space between cc-panel blocks */
}

/* Card wrapper for each section */
.cc-panel {
    padding: 14px 18px 18px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cc-panel-body {
    margin-top: 8px;
}

.cc-panel-toolbar {
    margin: 8px 0 10px;
}

.cc-panel-title {
    font-weight: 600;
    margin-bottom: 0;
}

    /* Info alert look for every label/title */
    .cc-panel-title.cc-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 6px;
        background: #d9edf7;
        border: 1px solid #bce8f1;
        color: #31708f;
        cursor: pointer; /* clickable for collapse/expand */
        user-select: none;
        font-size: 0.95rem;
        line-height: 1.3;
    }

        .cc-panel-title.cc-info::before {
            content: "ℹ️";
            font-size: 14px;
            line-height: 1;
        }

        /* Chevron on the right */
        .cc-panel-title.cc-info .cc-chevron {
            margin-left: auto;
            font-size: 1.7em;
            line-height: 1;
            opacity: 0.8;
            transition: transform 0.15s ease;
        }

/* Collapsed state */
.cc-panel.cc-collapsed .cc-panel-body {
    display: none;
}

.cc-panel.cc-collapsed .cc-panel-title.cc-info .cc-chevron {
    transform: rotate(-90deg);
}

/* Slightly tighter rows so more fits on screen */
.cc-panel .dx-datagrid-rowsview .dx-row {
    height: 30px;
}

/* Init / loading visibility */
html.cc-init .allsitesub-page {
    visibility: hidden;
}

html.cc-ready .allsitesub-page {
    visibility: visible;
}

/* Full-screen loading overlay */
.cc-loading {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-size: 16px;
    font-weight: 600;
}

    .cc-loading .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-left: 8px;
        background: #666;
        animation: cc-bounce 0.9s infinite ease-in-out;
    }

        .cc-loading .dot:nth-child(2) {
            animation-delay: 0.15s;
        }

        .cc-loading .dot:nth-child(3) {
            animation-delay: 0.3s;
        }

@keyframes cc-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.35;
    }

    40% {
        transform: scale(1.0);
        opacity: 1;
    }
}

/* Subtle note text under headings */
.cc-subnote {
    margin: 4px 0 14px;
    font-size: 0.82rem;
    color: #666;
}

/* Grey-out rows that are read-only for students/employees */
.student-row-readonly {
    opacity: 0.7;
}

/* Styling for the "Select" links in dept/students grids */
.cc-dept-select-cell .cc-dept-select-link {
    font-weight: 600;
    text-decoration: underline;
}

.dx-datagrid-rowsview .dx-selection .cc-dept-select-link,
.dx-datagrid-rowsview .dx-row-focused .cc-dept-select-link {
    color: #000 !important;
    text-decoration: underline;
}


/* If collapsed state is placed on the title instead of the panel */
.cc-panel-title.cc-collapsible.cc-collapsed .cc-chevron {
    transform: rotate(-90deg);
}
