/* EMERGENCY FIX for course menu dropdown - Load this with highest priority */
/* ВАЖНО: Эти стили применяются ТОЛЬКО к главной странице, НЕ к режиму редактирования */
body .dashboard-card,
body .dashboard-card > *,
body .coursebox,
body .coursebox > *,
body .course-listitem,
body #page-my-index .dashboard-card-deck,
body #page-my-index #region-main,
body .path-my .dashboard-card-deck,
body .path-my #region-main {
    overflow: visible !important;
    -webkit-overflow: visible !important;
}

body #page-my-index .dashboard-card:hover,
body .path-my .dashboard-card:hover,
body .coursebox:hover {
    z-index: 10000 !important;
    position: relative !important;
}

/* ИСПРАВЛЕНО: Применяем стили ТОЛЬКО к меню на главной странице, НЕ в режиме редактирования */
/* Это предотвращает выход меню за границы блоков в режиме редактирования курса */
body #page-my-index .dropdown-menu,
body #page-my-index .moodle-actionmenu,
body #page-my-index .moodle-actionmenu .menu,
body #page-my-index .action-menu,
body .path-my .dropdown-menu,
body .path-my .moodle-actionmenu,
body .path-my .moodle-actionmenu .menu,
body .path-my .action-menu,
body .dashboard-card .dropdown-menu,
body .dashboard-card .moodle-actionmenu,
body .dashboard-card .action-menu,
body .coursebox .dropdown-menu,
body .coursebox .moodle-actionmenu,
body .coursebox .action-menu {
    z-index: 100000 !important;
    position: absolute !important;
}

/* Sticky footer fix */
html {
    height: 100% !important;
}

body:not(.pagelayout-login) {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body:not(.pagelayout-login) #page {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

body:not(.pagelayout-login) #page-content {
    flex: 1 !important;
}

body:not(.pagelayout-login) #page-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* Единообразное расстояние между кнопками навигации - убираем многоточия */
body .secondary-navigation .moremenu .nav-tabs {
    gap: 0 !important;
}

/* Выравнивание всех элементов навигации по центру */
body .secondary-navigation {
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
}

body .secondary-navigation .moremenu {
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
}

body .secondary-navigation .moremenu .nav-tabs {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

body .secondary-navigation .moremenu .nav-tabs .nav-link {
    margin: 0 !important;
    padding: 8px 16px !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

body .secondary-navigation [role="tablist"] {
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
}

body .secondary-navigation [role="tablist"] [role="tab"].nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

/* Выравнивание primary navigation */
body .navbar .primary-navigation .navigation {
    display: flex !important;
    align-items: center !important;
}

body .navbar .primary-navigation .navigation .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 📱 Мобильные устройства - secondary navigation с горизонтальным скроллом */
@media (max-width: 767.98px) {
    body .secondary-navigation {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body .secondary-navigation .moremenu {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body .secondary-navigation .moremenu .nav-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        min-width: max-content !important;
    }

    body .secondary-navigation .moremenu .nav-tabs .nav-link {
        flex-shrink: 0 !important;
        min-width: auto !important;
        max-width: none !important;
    }

    body .secondary-navigation [role="tablist"] {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        min-width: max-content !important;
    }

    body .secondary-navigation [role="tablist"] [role="tab"].nav-link {
        flex-shrink: 0 !important;
        min-width: auto !important;
        max-width: none !important;
    }
}

/* ============================================================
   Страница проверки возраста + страница регистрации:
   карточный вид как у страницы входа (#page-login-index)
   ============================================================ */

/* --- Общий контейнер: та же белая карточка что на /login/index.php --- */
body#page-login-verify_age_location .login-container,
body#page-login-signup .login-container {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body#page-login-verify_age_location .verifyage {
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

body#page-login-verify_age_location .verifyage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f47ad 0%, #4d7fd4 100%);
}

/* --- Заголовок карточки --- */
body#page-login-verify_age_location .verifyage .card-title h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f47ad;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* --- Поля mform: вертикальный стек вместо горизонтальной сетки --- */
body#page-login-verify_age_location .mform .fitem.row {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 1.25rem;
}

body#page-login-verify_age_location .mform .fitem.row .col-md-3,
body#page-login-verify_age_location .mform .fitem.row .col-md-9,
body#page-login-verify_age_location .mform .fitem.row [class*="col-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body#page-login-verify_age_location .mform .fitem.row .col-form-label {
    font-weight: 500;
    color: #333;
    padding-bottom: 0.3rem;
    padding-top: 0;
}

body#page-login-verify_age_location .mform .fitem.row .felement .form-control,
body#page-login-verify_age_location .mform .fitem.row .felement .form-select {
    width: 100% !important;
    padding: 0.65rem 0.85rem;
    border: 2px solid #dde2ea;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body#page-login-verify_age_location .mform .fitem.row .felement .form-control:focus,
body#page-login-verify_age_location .mform .fitem.row .felement .form-select:focus {
    border-color: #0f47ad;
    box-shadow: 0 0 0 3px rgba(15, 71, 173, 0.12);
    outline: none;
    background-color: #fff;
}

/* --- Кнопки --- */
body#page-login-verify_age_location #fgroup_id_buttonar .felement .d-flex {
    display: flex !important;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

body#page-login-verify_age_location #fgroup_id_buttonar .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* --- Сноска об обязательных полях --- */
body#page-login-verify_age_location .fdescription.required {
    font-size: 0.82rem;
    color: #777;
    margin-top: 0.5rem;
}

/* --- Блок "Зачем это нужно?" --- */
body#page-login-verify_age_location .verifyage .mt-1 {
    background: #f4f6fb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem !important;
    border-left: 3px solid #0f47ad;
    font-size: 0.92rem;
    color: #444;
}

/* --- Mobile: полный сброс layout overflow --- */
@media (max-width: 767.98px) {
    body#page-login-verify_age_location #page,
    body#page-login-verify_age_location #page-content,
    body#page-login-verify_age_location #region-main-box,
    body#page-login-verify_age_location #region-main,
    body#page-login-signup #page,
    body#page-login-signup #page-content,
    body#page-login-signup #region-main-box,
    body#page-login-signup #region-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    body#page-login-verify_age_location .container,
    body#page-login-verify_age_location .container-fluid,
    body#page-login-signup .container,
    body#page-login-signup .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    body#page-login-verify_age_location .row,
    body#page-login-signup .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body#page-login-verify_age_location [class*="col-"],
    body#page-login-signup [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body#page-login-verify_age_location .verifyage {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }

    body#page-login-verify_age_location #fgroup_id_buttonar .felement .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    body#page-login-verify_age_location #fgroup_id_buttonar .btn {
        width: 100% !important;
        flex: none;
    }
}

/* Компактное отображение курсов на главной странице - только название, картинка и категория */
/* Скрыть описание курсов - используется класс .course-summary в шаблоне coursecard.mustache */
body.pagelayout-frontpage .course-summary,
body#page-site-index .course-summary,
body.pagelayout-frontpage .dashboard-card .course-summary,
body#page-site-index .dashboard-card .course-summary,
body.pagelayout-frontpage .card .course-summary,
body#page-site-index .card .course-summary,
body.pagelayout-frontpage .coursebox .summary,
body#page-site-index .coursebox .summary,
body.pagelayout-frontpage .coursebox .course-summary,
body#page-site-index .coursebox .course-summary {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Скрыть преподавателей на главной странице */
body.pagelayout-frontpage .course-contacts,
body#page-site-index .course-contacts,
body.pagelayout-frontpage .dashboard-card .course-contacts,
body#page-site-index .dashboard-card .course-contacts,
body.pagelayout-frontpage .coursebox .course-contacts,
body#page-site-index .coursebox .course-contacts,
body.pagelayout-frontpage .coursebox .teachers,
body#page-site-index .coursebox .teachers {
    display: none !important;
    visibility: hidden !important;
}

/* Скрыть дополнительные поля на главной странице */
body.pagelayout-frontpage .customfields,
body#page-site-index .customfields,
body.pagelayout-frontpage .dashboard-card .customfields,
body#page-site-index .dashboard-card .customfields,
body.pagelayout-frontpage .coursebox .customfields,
body#page-site-index .coursebox .customfields {
    display: none !important;
    visibility: hidden !important;
}

/* Скрыть в подвале: «Очистить все кэши» и блок «Реагирующие экземпляры» */
#page-footer .footer-content-debugging,
#page-footer .footer-dark-inner {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}
#page-footer .standard-footer-content a[href*="purgecaches"],
#page-footer .standard-footer-content a[href*="purge_caches"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Admin-only corporate leaderboard (rendered before course cards). */
.ncsm-leaderboard-widget {
    position: relative;
    border-radius: 18px;
    border: 1px solid #dce6f5;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 14px 30px rgba(15, 48, 87, 0.08);
    padding: 22px 22px 18px;
    overflow: hidden;
}

.ncsm-leaderboard-widget::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0f4db3 0%, #2d7ef7 55%, #6ba2ff 100%);
}

.ncsm-leaderboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.ncsm-leaderboard-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ncsm-leaderboard-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f2b6d;
}

.ncsm-leaderboard-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0a2c78;
    border: 1px solid rgba(17, 86, 204, 0.2);
    background: rgba(17, 86, 204, 0.08);
}

.ncsm-leaderboard-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.85rem;
    color: #607287;
}

.ncsm-leaderboard-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 12px;
}

.ncsm-period-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ncsm-period-btn {
    border: 1px solid #d0d9e8;
    background: #fff;
    color: #28456e;
    border-radius: 999px;
    height: 30px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.ncsm-period-btn:hover {
    border-color: #7ea5e6;
    background: #f5f9ff;
}

.ncsm-period-btn.is-active {
    border-color: #0f4db3;
    background: #0f4db3;
    color: #fff;
}

.ncsm-leaderboard-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #5f6c7b;
    font-size: 0.78rem;
}

.ncsm-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ncsm-leaderboard-podium-wrap {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(16, 84, 190, 0.06) 0%, rgba(16, 84, 190, 0.02) 100%);
    border: 1px solid #e5ecf8;
    padding: 14px 12px 8px;
}

.ncsm-leaderboard-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 2px;
}

.ncsm-leader-card {
    border-radius: 12px;
    padding: 12px 12px 10px;
    border: 1px solid #e0e6f2;
    background: #fff;
    box-shadow: 0 8px 14px rgba(16, 42, 67, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.ncsm-leader-card.rank-1 {
    border-color: #e0c24f;
    background: linear-gradient(180deg, #fffdf2 0%, #fff8dc 100%);
    min-height: 208px;
}

.ncsm-leader-card.rank-1 {
    order: 2;
}

.ncsm-leader-card.rank-2 {
    order: 1;
}

.ncsm-leader-card.rank-3 {
    order: 3;
}

.ncsm-leader-card.rank-2 {
    border-color: #c4cedb;
    background: linear-gradient(180deg, #fbfcff 0%, #f1f5fb 100%);
    min-height: 188px;
}

.ncsm-leader-card.rank-3 {
    border-color: #d6ad89;
    background: linear-gradient(180deg, #fffaf5 0%, #fdf1e6 100%);
    min-height: 176px;
}

.ncsm-leader-rank-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ncsm-leader-rank-badge {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f3e96;
    font-weight: 700;
}

.ncsm-leader-rank-text {
    font-size: 0.8rem;
    color: #4b5563;
    font-weight: 600;
}

.ncsm-leader-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #0f4db3;
    color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 6px 10px rgba(15, 77, 179, 0.22);
}

.ncsm-leader-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.ncsm-leader-count {
    color: #5f6c7b;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ncsm-podium-bar {
    margin-top: auto;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 77, 179, 0.12);
}

.ncsm-leader-card.rank-1 .ncsm-podium-bar {
    height: 24px;
    background: linear-gradient(90deg, #f0cf59 0%, #e8b92f 100%);
}

.ncsm-leader-card.rank-2 .ncsm-podium-bar {
    height: 18px;
    background: linear-gradient(90deg, #cfd6df 0%, #aeb8c4 100%);
}

.ncsm-leader-card.rank-3 .ncsm-podium-bar {
    height: 14px;
    background: linear-gradient(90deg, #ddb58f 0%, #c79062 100%);
}

.ncsm-leaderboard-rest {
    margin-top: 12px;
    border: 1px solid #e5ecf8;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.ncsm-leaderboard-rest-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5f6c7b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ncsm-leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ncsm-leader-list-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.ncsm-leader-list-item:nth-child(odd) {
    background: rgba(17, 86, 204, 0.03);
}

.ncsm-leader-list-item:hover {
    border-color: rgba(17, 86, 204, 0.2);
    background: rgba(17, 86, 204, 0.06);
}

.ncsm-rest-extra {
    display: none;
}

.ncsm-rest-expanded .ncsm-rest-extra {
    display: grid;
}

.ncsm-rest-toggle {
    margin-top: 10px;
    width: 100%;
    border: 1px dashed #c4d3ee;
    background: #f7faff;
    color: #254f90;
    border-radius: 8px;
    height: 34px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.ncsm-rest-toggle:hover {
    background: #eef4ff;
    border-color: #9db9ea;
}

.ncsm-leader-list-rank {
    font-weight: 700;
    color: #0f4db3;
}

.ncsm-leader-list-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ncsm-leader-list-count {
    text-align: right;
    font-weight: 600;
    color: #334155;
}

.ncsm-leader-list-trend {
    display: inline-flex;
    justify-content: flex-end;
}

.ncsm-trend {
    display: inline-flex;
    min-width: 42px;
    height: 24px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.ncsm-trend-up {
    color: #0a7a33;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.3);
}

.ncsm-trend-down {
    color: #b42318;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
}

.ncsm-trend-new {
    color: #0f4db3;
    background: rgba(17, 86, 204, 0.11);
    border-color: rgba(17, 86, 204, 0.24);
    text-transform: uppercase;
}

.ncsm-trend-same {
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.22);
}

.ncsm-leader-empty {
    color: #5f6c7b;
    font-style: italic;
}

@media (max-width: 767.98px) {
    .ncsm-leaderboard-podium {
        grid-template-columns: 1fr;
    }

    .ncsm-leaderboard-title {
        font-size: 1.1rem;
    }

    .ncsm-leaderboard-meta {
        align-items: flex-start;
    }

    .ncsm-leaderboard-tools {
        align-items: flex-start;
    }

    .ncsm-leaderboard-legend {
        width: 100%;
        font-size: 0.75rem;
    }

    .ncsm-leader-card,
    .ncsm-leader-card.rank-1,
    .ncsm-leader-card.rank-2,
    .ncsm-leader-card.rank-3 {
        min-height: 0;
    }

    .ncsm-leader-card.rank-1 {
        order: 1;
    }

    .ncsm-leader-card.rank-2 {
        order: 2;
    }

    .ncsm-leader-card.rank-3 {
        order: 3;
    }

    .ncsm-leader-list-item {
        grid-template-columns: 50px 1fr;
        grid-template-areas:
            "rank name"
            "count trend";
        row-gap: 4px;
    }

    .ncsm-leader-list-rank {
        grid-area: rank;
    }

    .ncsm-leader-list-name {
        grid-area: name;
    }

    .ncsm-leader-list-count {
        grid-area: count;
        text-align: left;
        padding-left: 50px;
        font-size: 0.85rem;
    }

    .ncsm-leader-list-trend {
        grid-area: trend;
        justify-content: flex-start;
    }
}

/* Policy consent page polish (signup flow). */
body#page-admin-tool-policy-index #region-main {
    background: transparent;
    border: 0;
    padding: 0.75rem 0.5rem 1.25rem;
}

body#page-admin-tool-policy-index #agreedocsform {
    max-width: 860px;
    margin: 0 auto;
}

body#page-admin-tool-policy-index .agreedoc-policy {
    background: #fff;
    border: 1px solid #dbe3f2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 71, 173, 0.08);
    padding: 1rem 1.1rem;
}

body#page-admin-tool-policy-index .agreedoc-policy h3 {
    color: #0f47ad;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.65rem;
}

body#page-admin-tool-policy-index .agreedoc-content,
body#page-admin-tool-policy-index .agreedoc-summary,
body#page-admin-tool-policy-index .agreedoc-msg,
body#page-admin-tool-policy-index .policy_document,
body#page-admin-tool-policy-index .policy_document_content {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #243244;
}

body#page-admin-tool-policy-index .agreedoc-content p,
body#page-admin-tool-policy-index .agreedoc-content li {
    margin-bottom: 0.55rem;
}

body#page-admin-tool-policy-index .agreedoc-msg {
    background: #f4f7ff;
    border-left: 3px solid #0f47ad;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    margin-top: 0.75rem;
}

body#page-admin-tool-policy-index .agreedoc-checkbox {
    margin-top: 0.9rem;
    background: #f8fbff;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
}

body#page-admin-tool-policy-index .agreedoc-checkbox label {
    font-weight: 600;
    color: #12253f;
}

body#page-admin-tool-policy-index .agreedoc-checkbox input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
}

body#page-admin-tool-policy-index #agreedocsform > .btn {
    min-width: 170px;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
}

@media (max-width: 767.98px) {
    body#page-admin-tool-policy-index #page {
        padding-left: 0;
        padding-right: 0;
    }

    body#page-admin-tool-policy-index #page-content,
    body#page-admin-tool-policy-index #region-main-box,
    body#page-admin-tool-policy-index #region-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body#page-admin-tool-policy-index #agreedocsform {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    body#page-admin-tool-policy-index .agreedoc-policy {
        border-radius: 12px;
        padding: 0.9rem 0.85rem;
    }

    body#page-admin-tool-policy-index .agreedoc-content,
    body#page-admin-tool-policy-index .agreedoc-summary,
    body#page-admin-tool-policy-index .agreedoc-msg {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    body#page-admin-tool-policy-index #agreedocsform > .btn {
        width: 100%;
        margin-bottom: 0.55rem;
    }
}
