
/*
 * TRANSAERO.PRO
 * local_transaero 0.2.0
 * Employee completed-course status.
 */


.local-transaero-status[hidden] {
    display: none !important;
}


.local-transaero-status {
    box-sizing: border-box;

    width: 100%;

    margin:
        0
        0
        28px;

    padding:
        28px
        30px
        26px;

    overflow: hidden;

    background:
        #080808;

    border:
        1px solid
        #1f1f1f;

    color:
        #fff;

    font-family:
        OneST,
        Arial,
        sans-serif;
}


.local-transaero-status-eyebrow {
    margin-bottom:
        18px;

    color:
        #a4a4a4;

    font-size:
        .67rem;

    font-weight:
        600;

    line-height:
        1.2;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}


.local-transaero-status-head {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        28px;
}


.local-transaero-status-title-wrap {
    min-width:
        0;
}


.local-transaero-status-title {
    margin:
        0;

    color:
        #fff;

    font-size:
        clamp(
            1.65rem,
            2.4vw,
            2.45rem
        );

    font-weight:
        500;

    line-height:
        1.05;

    letter-spacing:
        -.04em;
}


.local-transaero-status-course {
    max-width:
        820px;

    margin-top:
        12px;

    color:
        #b7b7b7;

    font-size:
        .95rem;

    line-height:
        1.5;
}


.local-transaero-status-badge {
    flex:
        0
        0
        auto;

    padding:
        7px
        10px;

    border:
        1px solid
        #444;

    color:
        #fff;

    font-size:
        .65rem;

    font-weight:
        600;

    line-height:
        1;

    letter-spacing:
        .12em;

    text-transform:
        uppercase;
}


.local-transaero-status-metrics {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    margin-top:
        28px;

    border-top:
        1px solid
        #292929;

    border-bottom:
        1px solid
        #292929;
}


.local-transaero-status-metric {
    min-width:
        0;

    padding:
        19px
        22px
        20px
        0;
}


.local-transaero-status-metric
+
.local-transaero-status-metric {
    padding-left:
        22px;

    border-left:
        1px solid
        #292929;
}


.local-transaero-status-label {
    margin-bottom:
        7px;

    color:
        #858585;

    font-size:
        .68rem;

    font-weight:
        600;

    line-height:
        1.25;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


.local-transaero-status-value {
    color:
        #fff;

    font-size:
        1rem;

    font-weight:
        500;

    line-height:
        1.35;
}


.local-transaero-status-bottom {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        28px;

    padding-top:
        22px;
}


.local-transaero-status-validity-main {
    color:
        #fff;

    font-size:
        .9rem;

    font-weight:
        500;

    line-height:
        1.4;
}


.local-transaero-status-validity-sub {
    margin-top:
        4px;

    color:
        #888;

    font-size:
        .78rem;

    line-height:
        1.45;
}


.local-transaero-status-link {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0
        0
        auto;

    min-height:
        42px;

    padding:
        0
        18px;

    background:
        #fff;

    border:
        1px solid
        #fff;

    color:
        #000
        !important;

    font-size:
        .78rem;

    font-weight:
        600;

    line-height:
        1;

    text-decoration:
        none
        !important;
}


.local-transaero-status-link:hover,
.local-transaero-status-link:focus {
    background:
        #e9e9e9;

    border-color:
        #e9e9e9;

    color:
        #000
        !important;
}


.local-transaero-status-expired {
    border-color:
        #505050;
}


@media (max-width: 900px) {

    .local-transaero-status {
        padding:
            24px
            22px;
    }


    .local-transaero-status-head {
        flex-direction:
            column;
    }


    .local-transaero-status-metrics {
        grid-template-columns:
            1fr;
    }


    .local-transaero-status-metric {
        padding:
            16px
            0;
    }


    .local-transaero-status-metric
    +
    .local-transaero-status-metric {
        padding-left:
            0;

        border-top:
            1px solid
            #292929;

        border-left:
            0;
    }


    .local-transaero-status-bottom {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .local-transaero-status-link {
        width:
            100%;
    }
}



/* LOCAL_TRANSAERO_GATE_021 */


.local-transaero-status-gate {
    max-width:
        980px;

    margin:
        24px
        auto
        36px;

    box-shadow:
        0
        16px
        48px
        rgba(
            0,
            0,
            0,
            .08
        );
}


.local-transaero-status-note {
    margin-top:
        22px;

    padding:
        16px
        18px;

    background:
        #141414;

    border:
        1px solid
        #2b2b2b;

    color:
        #bdbdbd;

    font-size:
        .82rem;

    line-height:
        1.55;
}


.local-transaero-status-gate
.local-transaero-status-title {
    font-size:
        clamp(
            2rem,
            3vw,
            2.8rem
        );
}


@media (max-width: 768px) {

    .local-transaero-status-gate {
        margin:
            12px
            auto
            24px;
    }
}



/* LOCAL_TRANSAERO_DPO_FOUNDATION_040 */


.local-transaero-group-row {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px
        10px;

    background:
        #f3f3f3;

    border:
        1px solid
        #dedede;

    font-size:
        .8rem;

    font-weight:
        600;

    line-height:
        1.25;
}


.local-transaero-group-link {
    color:
        #111
        !important;

    text-decoration:
        none
        !important;
}


.local-transaero-group-link:hover {
    text-decoration:
        underline
        !important;
}


.local-transaero-summary th {
    width:
        280px;
}


.local-transaero-summary td {
    vertical-align:
        top;
}



/* ============================================================
   LEARNER_ASSIGNED_TRAINING_DASHBOARD_20260911
   /my/ — current and future official training assignments.
   ============================================================ */

body#page-my-index
.local-transaero-assigned-training {
    margin:
        0
        0
        24px;
    padding:
        24px;
    background:
        #fff;
    border:
        1px
        solid
        #e2e2e2;
    border-radius:
        4px;
}

body#page-my-index
.local-transaero-assigned-header {
    display:
        flex;
    align-items:
        center;
    gap:
        10px;
    margin-bottom:
        6px;
}

body#page-my-index
.local-transaero-assigned-heading {
    margin:
        0;
    font-size:
        1.35rem;
    font-weight:
        650;
    letter-spacing:
        -.02em;
}

body#page-my-index
.local-transaero-assigned-count {
    display:
        inline-flex;
    align-items:
        center;
    justify-content:
        center;
    min-width:
        28px;
    height:
        28px;
    padding:
        0
        8px;
    font-size:
        .82rem;
    font-weight:
        650;
    line-height:
        1;
    background:
        #111;
    color:
        #fff;
    border-radius:
        14px;
}

body#page-my-index
.local-transaero-assigned-intro {
    margin:
        0
        0
        18px;
    color:
        #666;
    font-size:
        .92rem;
}

body#page-my-index
.local-transaero-assigned-grid {
    display:
        grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                min(
                    100%,
                    360px
                ),
                1fr
            )
        );
    gap:
        14px;
}

body#page-my-index
.local-transaero-assignment-card {
    min-width:
        0;
    padding:
        18px;
    background:
        #fafafa;
    border:
        1px
        solid
        #e4e4e4;
    border-radius:
        3px;
}

body#page-my-index
.local-transaero-assignment-card-head {
    display:
        flex;
    flex-wrap:
        wrap;
    align-items:
        center;
    justify-content:
        space-between;
    gap:
        8px
        12px;
    margin-bottom:
        14px;
}

body#page-my-index
.local-transaero-assignment-status {
    display:
        inline-flex;
    align-items:
        center;
    min-height:
        27px;
    padding:
        4px
        9px;
    font-size:
        .77rem;
    font-weight:
        650;
    line-height:
        1.15;
    border:
        1px
        solid
        #d7d7d7;
    background:
        #fff;
}

body#page-my-index
.local-transaero-assignment-status.is-active {
    background:
        #eef7f8;
    border-color:
        #c9e5e8;
}

body#page-my-index
.local-transaero-assignment-status.is-ready,
body#page-my-index
.local-transaero-assignment-status.is-planned {
    background:
        #f5f5f3;
}

body#page-my-index
.local-transaero-assignment-status.is-blocked,
body#page-my-index
.local-transaero-assignment-status.is-expired {
    background:
        #f1f1f1;
    color:
        #666;
}

body#page-my-index
.local-transaero-assignment-time {
    font-size:
        .88rem;
    font-weight:
        650;
    white-space:
        nowrap;
}

body#page-my-index
.local-transaero-assignment-title {
    margin:
        0
        0
        12px;
    font-size:
        1.03rem;
    font-weight:
        650;
    line-height:
        1.35;
}

body#page-my-index
.local-transaero-assignment-meta {
    margin-top:
        5px;
    color:
        #555;
    font-size:
        .86rem;
    line-height:
        1.4;
}

body#page-my-index
.local-transaero-assignment-actions {
    margin-top:
        16px;
}

body#page-my-index
.local-transaero-assignment-actions
.btn {
    min-height:
        38px;
}

@media (max-width: 767.98px) {

    body#page-my-index
    .local-transaero-assigned-training {
        padding:
            18px;
    }

    body#page-my-index
    .local-transaero-assigned-grid {
        grid-template-columns:
            1fr;
    }

    body#page-my-index
    .local-transaero-assignment-card-head {
        align-items:
            flex-start;
        flex-direction:
            column;
    }

    body#page-my-index
    .local-transaero-assignment-time {
        white-space:
            normal;
    }
}


/* ============================================================
   LEARNER_DASHBOARD_CLEANUP_20260911
   Keep the learner dashboard focused on official assigned training.
   Standard Moodle timeline/calendar remain available in edit mode.
   ============================================================ */

body.local-transaero-learner-shell#page-my-index:not(.editing)
.block_timeline,
body.local-transaero-learner-shell#page-my-index:not(.editing)
.block_calendar_month {
    display:
        none
        !important;
}



/* ============================================================
   LEARNER_SHELL_CLEANUP_20260911
   Corporate learner-facing Moodle shell.
   ============================================================ */


/*
 * ------------------------------------------------------------
 * 1. No learner editing/customisation controls.
 * ------------------------------------------------------------
 */

body.local-transaero-learner-shell
.editmode-switch-form,
body.local-transaero-learner-shell
[data-region="edit-mode-switch"] {
    display:
        none
        !important;
}


/*
 * ------------------------------------------------------------
 * 2. Remove the right Moodle block/navigation drawer from
 *    ordinary learner utility pages.
 *
 *    Course pages are intentionally excluded.
 * ------------------------------------------------------------
 */

body.local-transaero-learner-shell:not(.path-course)
.drawer-toggler.drawer-right-toggle,
body.local-transaero-learner-shell:not(.path-course)
#theme_boost-drawers-blocks,
body.local-transaero-learner-shell:not(.path-course)
[data-region="blocks-column"] {
    display:
        none
        !important;
}


/*
 * ------------------------------------------------------------
 * 3. Learner user-menu reduction.
 *
 * Keep:
 *   Profile
 *   Preferences
 *   Logout
 *
 * Hide Moodle utilities that are not part of the current
 * TRANSAERO.PRO learning process.
 * ------------------------------------------------------------
 */

body.local-transaero-learner-shell
.usermenu
a[href*="/grade/report/overview/"],

body.local-transaero-learner-shell
.usermenu
a[href*="/calendar/view.php"],

body.local-transaero-learner-shell
.usermenu
a[href*="/user/files.php"],

body.local-transaero-learner-shell
.usermenu
a[href*="/reportbuilder/"] {
    display:
        none
        !important;
}


/*
 * Same cleanup for user-menu implementations that use
 * dropdown-menu rather than .usermenu as the immediate parent.
 */

body.local-transaero-learner-shell
.dropdown-menu
a[href*="/grade/report/overview/"],

body.local-transaero-learner-shell
.dropdown-menu
a[href*="/calendar/view.php"],

body.local-transaero-learner-shell
.dropdown-menu
a[href*="/user/files.php"],

body.local-transaero-learner-shell
.dropdown-menu
a[href*="/reportbuilder/"] {
    display:
        none
        !important;
}


/*
 * ------------------------------------------------------------
 * 4. Profile cleanup.
 *
 * Remove Moodle-community/service cards which have no function
 * in the corporate training workflow.
 * :has() is supported by current production Chrome/Firefox/Safari.
 * ------------------------------------------------------------
 */

body#page-user-profile.local-transaero-learner-shell
.card:has(a[href*="/blog/"]),

body#page-user-profile.local-transaero-learner-shell
.card:has(a[href*="/grade/report/overview/"]),

body#page-user-profile.local-transaero-learner-shell
.card:has(a[href*="/badges/"]) {
    display:
        none
        !important;
}


/*
 * ------------------------------------------------------------
 * 5. Preferences cleanup.
 *
 * Account/security/language/message/notification settings stay.
 * Moodle Blog and Badge preference cards are irrelevant here.
 * ------------------------------------------------------------
 */

body#page-user-preferences.local-transaero-learner-shell
.card:has(a[href*="/blog/"]),

body#page-user-preferences.local-transaero-learner-shell
.card:has(a[href*="/badges/"]) {
    display:
        none
        !important;
}


/*
 * Hide individual corporate-irrelevant account preferences.
 * We hide links rather than altering Moodle capabilities.
 */

body#page-user-preferences.local-transaero-learner-shell
a[href*="/mod/forum/"],

body#page-user-preferences.local-transaero-learner-shell
a[href*="/contentbank/"],

body#page-user-preferences.local-transaero-learner-shell
a[href*="/calendar/preferences.php"],

body#page-user-preferences.local-transaero-learner-shell
a[href*="/editor/"] {
    display:
        none
        !important;
}


/*
 * ------------------------------------------------------------
 * 6. Assigned Training belongs only to the dashboard.
 *
 * PHP now scopes generation to exact /my/, but keep a defensive
 * CSS rule too in case Moodle changes the pagetype internally.
 * ------------------------------------------------------------
 */

body.page-mycourses
#local-transaero-assigned-training {
    display:
        none
        !important;
}


/*
 * ------------------------------------------------------------
 * 7. Normalise learner utility canvas.
 * ------------------------------------------------------------
 */

@media (min-width: 1200px) {

    body#page-user-profile.local-transaero-learner-shell.limitedwidth
    #page.drawers
    .main-inner,

    body#page-user-preferences.local-transaero-learner-shell.limitedwidth
    #page.drawers
    .main-inner,

    body#page-user-profile.local-transaero-learner-shell
    #page.drawers
    .main-inner,

    body#page-user-preferences.local-transaero-learner-shell
    #page.drawers
    .main-inner {
        width:
            calc(100% - 80px)
            !important;

        max-width:
            1440px
            !important;
    }
}


/*
 * ------------------------------------------------------------
 * 8. Cleaner profile/preferences cards.
 * ------------------------------------------------------------
 */

body.local-transaero-learner-shell#page-user-profile
.card,

body.local-transaero-learner-shell#page-user-preferences
.card {
    box-shadow:
        none;
    border:
        1px
        solid
        #e2e2e2;
}



/* ============================================================
   LEARNER_SHELL_NO_FLASH_20260911

   The local-transaero-learner-shell body class is now attached
   server-side during HEAD generation, so these rules apply on
   the first browser paint instead of after footer JavaScript.
   ============================================================ */


/*
 * Hide Moodle site-home navigation entry immediately.
 *
 * Support absolute and relative Moodle-root URLs, including
 * the redirect query variant.
 */

body.local-transaero-learner-shell
.primary-navigation
li:has(a[href="https://transaero.pro/courses/"]),

body.local-transaero-learner-shell
.primary-navigation
li:has(a[href="https://transaero.pro/courses"]),

body.local-transaero-learner-shell
.primary-navigation
li:has(a[href^="https://transaero.pro/courses/?"]),

body.local-transaero-learner-shell
.primary-navigation
li:has(a[href="/courses/"]),

body.local-transaero-learner-shell
.primary-navigation
li:has(a[href="/courses"]),

body.local-transaero-learner-shell
.primary-navigation
li:has(a[href^="/courses/?"]) {
    display:
        none
        !important;
}


/*
 * Defensive direct-link rule in case Moodle changes the
 * primary-navigation wrapper markup.
 */

body.local-transaero-learner-shell
.primary-navigation
a[href="https://transaero.pro/courses/"],

body.local-transaero-learner-shell
.primary-navigation
a[href="https://transaero.pro/courses"],

body.local-transaero-learner-shell
.primary-navigation
a[href^="https://transaero.pro/courses/?"],

body.local-transaero-learner-shell
.primary-navigation
a[href="/courses/"],

body.local-transaero-learner-shell
.primary-navigation
a[href="/courses"],

body.local-transaero-learner-shell
.primary-navigation
a[href^="/courses/?"] {
    display:
        none
        !important;
}



/* ============================================================
   LEARNER_SHELL_HEAD_SAFE_20260911

   The learner flag is attached synchronously to <html> in HEAD.
   These rules hide generic Moodle learner UI before first paint.

   Footer learner-shell logic remains as a defensive/full cleanup.
   ============================================================ */


/* ------------------------------------------------------------
   Site Home / "В начало".
   ------------------------------------------------------------ */

html.local-transaero-learner-prepaint
body
.primary-navigation
li:has(a[href="https://transaero.pro/courses/"]),

html.local-transaero-learner-prepaint
body
.primary-navigation
li:has(a[href="https://transaero.pro/courses"]),

html.local-transaero-learner-prepaint
body
.primary-navigation
li:has(a[href^="https://transaero.pro/courses/?"]),

html.local-transaero-learner-prepaint
body
.primary-navigation
li:has(a[href="/courses/"]),

html.local-transaero-learner-prepaint
body
.primary-navigation
li:has(a[href="/courses"]),

html.local-transaero-learner-prepaint
body
.primary-navigation
li:has(a[href^="/courses/?"]) {
    display:
        none
        !important;
}


/* ------------------------------------------------------------
   Editing controls.
   ------------------------------------------------------------ */

html.local-transaero-learner-prepaint
body
.editmode-switch-form,

html.local-transaero-learner-prepaint
body
[data-region="edit-mode-switch"] {
    display:
        none
        !important;
}


/* ------------------------------------------------------------
   Right standard Moodle drawer on learner utility pages.
   Course pages remain excluded.
   ------------------------------------------------------------ */

html.local-transaero-learner-prepaint
body:not(.path-course)
.drawer-toggler.drawer-right-toggle,

html.local-transaero-learner-prepaint
body:not(.path-course)
#theme_boost-drawers-blocks,

html.local-transaero-learner-prepaint
body:not(.path-course)
[data-region="blocks-column"] {
    display:
        none
        !important;
}


/* ------------------------------------------------------------
   Dashboard Timeline + Calendar.
   ------------------------------------------------------------ */

html.local-transaero-learner-prepaint
body#page-my-index:not(.editing)
.block_timeline,

html.local-transaero-learner-prepaint
body#page-my-index:not(.editing)
.block_calendar_month {
    display:
        none
        !important;
}



/* ============================================================
   LEARNER_MESSAGING_RESTORE_20260911

   IMPORTANT:
   Moodle message drawer is intentionally NOT hidden.

   Only the standard Boost blocks drawer remains removed from
   learner utility pages.
   ============================================================ */

body.local-transaero-learner-shell
#message-drawer,

body.local-transaero-learner-shell
[data-region="message-drawer"] {
    visibility:
        visible;
}


/* ============================================================
   LEARNER_UC_MANAGER_CHAT_20260911
   Direct learner -> UC manager communication.
   ============================================================ */

body#page-my-index
.local-transaero-assigned-header {
    display:
        flex;
    align-items:
        center;
    justify-content:
        space-between;
    gap:
        12px;
}

body#page-my-index
.local-transaero-assigned-header-title {
    display:
        flex;
    align-items:
        center;
    gap:
        10px;
    min-width:
        0;
}

body#page-my-index
.local-transaero-uc-chat-button {
    flex:
        0
        0
        auto;
    white-space:
        nowrap;
}

@media (max-width: 767.98px) {

    body#page-my-index
    .local-transaero-assigned-header {
        align-items:
            flex-start;
        flex-direction:
            column;
    }

    body#page-my-index
    .local-transaero-uc-chat-button {
        width:
            100%;
        white-space:
            normal;
    }
}



/* ============================================================
   UC_ADMIN_MESSAGING_UI_FIX_20260911

   Admin is deliberately NOT subject to learner dashboard cleanup.
   Full Moodle dashboard remains available to Site Administrator.
   ============================================================ */
