/**
 * Styles for local_dels plugin
 *
 * @package    local_dels_enrol
 * @copyright  2025 DELS CPT
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

.rui-login-box {
    display: flex;
    flex-direction: column;
}

.rui-login-layout--1 .rui-login-box {
    max-width: 600px;
}

.rui-login-box .local-dels-signup-section-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.rui-login-box .local-dels-signup-section-title:first-child {
    margin-top: 0.25rem;
}

.rui-login-box .local-dels-signup-helptext {
    margin: -0.25rem 0 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
}

/* DELS Upload Preview Table Styles */
.dels-remark-cell {
    padding: 8px;
    background-color: #fffbf0;
    border-left: 4px solid #ff9800;
}

.dels-action-cell {
    padding: 8px;
    text-align: center;
    background-color: #f5f5f5;
}

.dels-action-checkbox {
    margin: 4px 0;
    cursor: pointer;
}

.dels-action-checkbox+label {
    margin-left: 4px;
    cursor: pointer;
    user-select: none;
}

/* Status indicators */
.dels-status-swd-learner {
    color: #d9534f;
    font-weight: bold;
}

.dels-status-swd-different {
    color: #f0ad4e;
    font-weight: bold;
}

.dels-status-interrai {
    color: #d9534f;
    font-weight: bold;
}

.dels-status-new {
    color: #5cb85c;
    font-weight: bold;
}

.dels-status-update {
    color: #0275d8;
    font-weight: bold;
}

/* fine tune video time pro screen to hide next-activity-button and style elements */
#page-mod-videotime-view #next-activity-button,
.role-general-learner-cpt .secondary-navigation,
.role-webinar-admin-cpt .secondary-navigation {
    display: none !important;
}

#page-mod-videotime-view #topofscroll {
    margin: 0 !important;
    max-width: unset !important;
}

#page-mod-videotime-view .container-fluid.position-relative {
    padding: 0 !important;
}

#page-mod-videotime-view .video-js {
    width: 100% !important;
}


/* https://app.clickup.com/t/86ew90x5w fix Grade Report export page layout bug*/
body{
    height: 100vh !important;
}
#page {
    min-height: 100vh !important;
    height: auto !important;
}

#sticky-footer {
    position: relative;
    box-shadow: none;
    border: none !important;
    background: none;
    transition:none;
    z-index:0;
}

.show-drawer-left .stickyfooter .sticky-footer-content-wrapper {
    padding: 0 !important;
}

.hasstickyfooter .drawer-left {
    height: calc(-60px + 100vh) !important;
}

#page.drawers {
    overflow: hidden !important;
}

/*.tab-content>.active{
    display: flex !important;
    flex-wrap: wrap;
}*/

/* Override flex display for card-grid layouts */
.tab-content>.active #mycourses_inprogress_view {
    display: grid !important;
    flex-wrap: initial;
}
.main-content{
    overflow-x: hidden !important;
}

/* Fix overlap between department tree selector and user search form collapsible header arrow */
#page-local-dels-editusers .iomadusersearchform {
    margin-top: 10px;
}

/* Auth notice page */
.local-dels-auth-notice-page .local-dels-auth-notice-wrap {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 64px;
}

.local-dels-auth-notice-page .local-dels-auth-notice-card {
    width: 100%;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    padding: 32px 28px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.local-dels-auth-notice-page .local-dels-auth-notice-title {
    margin: 0 0 20px;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.local-dels-auth-notice-page .local-dels-auth-notice-message {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    line-height: 1.7;
    text-align: left;
    word-break: break-word;
}

.local-dels-auth-notice-page .local-dels-auth-notice-actions {
    display: flex;
    justify-content: center;
}

.local-dels-auth-notice-page .local-dels-auth-notice-actions .singlebutton {
    margin: 0;
}

.local-dels-auth-notice-page .local-dels-auth-notice-actions .btn {
    min-width: 180px;
    border-radius: 999px;
    padding: 10px 22px;
}

/* Signup pending page reuses the auth notice layout with a neutral info message. */
.local-dels-signup-pending-page .local-dels-auth-notice-message {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    text-align: center;
}