/* ===== Career Guidance: Общие стили модуля ===== */

/*
 * Единый отступ от хлебных крошек до контента страницы.
 * Применяется ко всем страницам модуля через layout.
 */
.cg-content {
    --cg-breadcrumbs-to-title-gap: 0px;
    padding-top: 0px;
}

.cg-content textarea,
.cg-content textarea.form-control,
.cg-admin-content textarea,
.cg-admin-content textarea.form-control {
    min-height: 120px !important;
    max-height: 240px !important;
    resize: vertical !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ---------- Select: симметричный отступ стрелки ---------- */
.cg-content select.form-control,
.cg-admin-content select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

/* ---------- Красная звёздочка у обязательных полей ---------- */
.cg-content .form-group.required label::after,
.cg-admin-content .form-group.required label::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

/* ---------- Admin nav (быстрые ссылки в админку) ---------- */
.cg-admin-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cg-admin-nav a {
    color: #2c3e50;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.2s;
}

.cg-admin-nav a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
    text-decoration: none;
}

.cg-admin-nav a {
    -webkit-tap-highlight-color: transparent;
}

.cg-admin-nav a:focus,
.cg-admin-nav a:focus-visible,
.cg-admin-nav a:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.cg-module-layout #main-menu .navbar-nav > li > a,
.cg-module-layout #main-menu .navbar-brand,
.cg-module-layout .breadcrumb > li > a {
    -webkit-tap-highlight-color: transparent;
}

.cg-module-layout #main-menu .navbar-nav > li > a:focus,
.cg-module-layout #main-menu .navbar-nav > li > a:focus-visible,
.cg-module-layout #main-menu .navbar-nav > li > a:active,
.cg-module-layout #main-menu .navbar-brand:focus,
.cg-module-layout #main-menu .navbar-brand:focus-visible,
.cg-module-layout #main-menu .navbar-brand:active,
.cg-module-layout .breadcrumb > li > a:focus,
.cg-module-layout .breadcrumb > li > a:focus-visible,
.cg-module-layout .breadcrumb > li > a:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* ---------- Frontend buttons: no underline in interactive states ---------- */
.cg-content button,
.cg-content [role="button"],
.cg-content a[class*="btn"],
.cg-content a[class*="button"] {
    text-decoration: none;
}

.cg-content button:hover,
.cg-content button:focus,
.cg-content button:focus-visible,
.cg-content button:active,
.cg-content [role="button"]:hover,
.cg-content [role="button"]:focus,
.cg-content [role="button"]:focus-visible,
.cg-content [role="button"]:active,
.cg-content a[class*="btn"]:hover,
.cg-content a[class*="btn"]:focus,
.cg-content a[class*="btn"]:focus-visible,
.cg-content a[class*="btn"]:active,
.cg-content a[class*="button"]:hover,
.cg-content a[class*="button"]:focus,
.cg-content a[class*="button"]:focus-visible,
.cg-content a[class*="button"]:active {
    text-decoration: none;
}

.cg-content a,
.cg-content button,
.cg-content [role="button"],
.cg-content input[type="button"],
.cg-content input[type="submit"],
.cg-content input[type="reset"],
.cg-admin-content a,
.cg-admin-content button,
.cg-admin-content [role="button"],
.cg-admin-content input[type="button"],
.cg-admin-content input[type="submit"],
.cg-admin-content input[type="reset"] {
    -webkit-tap-highlight-color: transparent;
}

.cg-content a:focus,
.cg-content a:focus-visible,
.cg-content a:active,
.cg-content button:focus,
.cg-content button:focus-visible,
.cg-content button:active,
.cg-content [role="button"]:focus,
.cg-content [role="button"]:focus-visible,
.cg-content [role="button"]:active,
.cg-content input[type="button"]:focus,
.cg-content input[type="button"]:focus-visible,
.cg-content input[type="button"]:active,
.cg-content input[type="submit"]:focus,
.cg-content input[type="submit"]:focus-visible,
.cg-content input[type="submit"]:active,
.cg-content input[type="reset"]:focus,
.cg-content input[type="reset"]:focus-visible,
.cg-content input[type="reset"]:active,
.cg-admin-content a:focus,
.cg-admin-content a:focus-visible,
.cg-admin-content a:active,
.cg-admin-content button:focus,
.cg-admin-content button:focus-visible,
.cg-admin-content button:active,
.cg-admin-content [role="button"]:focus,
.cg-admin-content [role="button"]:focus-visible,
.cg-admin-content [role="button"]:active,
.cg-admin-content input[type="button"]:focus,
.cg-admin-content input[type="button"]:focus-visible,
.cg-admin-content input[type="button"]:active,
.cg-admin-content input[type="submit"]:focus,
.cg-admin-content input[type="submit"]:focus-visible,
.cg-admin-content input[type="submit"]:active,
.cg-admin-content input[type="reset"]:focus,
.cg-admin-content input[type="reset"]:focus-visible,
.cg-admin-content input[type="reset"]:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
