@media (min-width: 577px) {
    .area {
        position: static;
        height: calc(100vh - 3rem);
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }
}

.area {
    margin: 0;
    padding: 15px;
}

#ajax-loader {
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1999;
    text-align: center;
    display: none;
}

.loader {
    position: absolute;
    top: 35%;
    left: 45%;
    padding: 2px;
    z-index: 9999;
    opacity: 1;
    border: 10px solid #f3f3f3; /* Light grey */
    border-top: 10px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

.snackbar {
    visibility: hidden;
    min-width: 250px;
    position: fixed;
    z-index: 99999999;
    right: 10px;
    top: 65px;
    font-size: 17px;
}

.snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 65px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 65px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        top: 65px;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        top: 65px;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

input[type=radio] {
    margin-right: 7px;
    margin-left: 7px;
}

a {
    text-decoration: none;
}

.score-module-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: .35rem;
    vertical-align: middle;
}

.score-module-info {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--bs-secondary-color);
    border-radius: 50%;
    color: var(--bs-secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    line-height: 1;
    cursor: help;
}

.score-module-tooltip-content {
    position: absolute;
    left: 50%;
    top: calc(100% + .35rem);
    z-index: 1080;
    min-width: 8rem;
    max-width: 16rem;
    padding: .35rem .45rem;
    border-radius: .25rem;
    background: var(--bs-dark);
    color: #fff;
    font-size: .62rem;
    line-height: 1.15;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity .12s ease-in-out;
}

.score-module-tooltip:hover .score-module-tooltip-content,
.score-module-tooltip:focus-within .score-module-tooltip-content {
    visibility: visible;
    opacity: 1;
}

.citation-info {
    cursor: help;
    vertical-align: middle;
}

.citation-tooltip .tooltip-inner {
    text-align: left;
    white-space: pre-line;
}

.calendarDay {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip {
    display: inline-block;
    margin: 5px;
    padding: 5px 12px 5px 12px;
    background-color: #f1f1f1;
    border-radius: 25px;
}

.close-btn {
    cursor: pointer;
    margin-left: 10px;
    color: #ff0000;
    font-weight: bold;
    font-size: 16px;
}

#wrapper {
    height: 100%;
    width: 100%;
    text-align: center;
    display: table;
    position: absolute;
}


#wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

#canvas {
    z-index: 1;
}

#canvasbg {
    z-index: -10;
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    -o-filter: blur(3px);
    filter: blur(3px);
    opacity: 0.6;
}

:root, [data-bs-theme=light] {
    --bg1: #343a40;
    --br1: rgb(34, 31, 34);
    --bgh: #495057;
    --bgp: #8c8c8c;
    --bgs: #0d6efd;
}

[data-bs-theme=dark] {
    --bg1: #343a40;
    --br1: rgb(34, 31, 34);
    --bgh: #495057;
    --bgp: #8c8c8c;
    --bgs: #0d6efd;
}

.app-chat-widget {
    position: fixed;
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 9998;
}

.app-chat-widget__toggle {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bs-box-shadow);
    touch-action: manipulation;
}

.app-chat-widget__window {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 360px;
    max-width: calc(100vw - 2rem);
    height: 480px;
    max-height: calc(100vh - 8rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--bs-box-shadow-lg);
}

.app-chat-widget__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    background: var(--bs-body-bg);
}

.app-chat-bubble {
    background: rgba(0, 0, 0, 0.06);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme=dark] .app-chat-bubble {
    background: rgba(255, 255, 255, 0.10);
    color: var(--bs-body-color);
    border-color: rgba(255, 255, 255, 0.12);
}

.app-chat-bubble--mine {
    background: var(--bs-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    color: #fff;
}

.app-chat-meta {
    color: var(--bs-secondary-color);
}

[data-bs-theme=dark] .app-chat-meta {
    color: rgba(255, 255, 255, 0.70);
}

@media (max-width: 576px) {
    .app-chat-widget__window {
        position: fixed;
        left: calc(1rem + env(safe-area-inset-left));
        right: calc(1rem + env(safe-area-inset-right));
        top: calc(1rem + env(safe-area-inset-top));
        bottom: calc(1rem + env(safe-area-inset-bottom) + 72px);
        width: auto;
        height: auto;
        max-height: none;
    }

    .app-chat-widget__toggle {
        width: 52px;
        height: 52px;
    }
}

.breadcrumb-step {
    font: 1em sans-serif;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-step li {
    margin-right: 5px;
}

.breadcrumb-step li a, .breadcrumb-step li span {
    background-color: var(--bg1);
    box-sizing: border-box;
    color: #ffffff;
    display: block;
    max-height: 2em;
    padding: 0.5em 3em 0.5em 3em;
    position: relative;
    text-decoration: none;
    transition: 0.25s;
    text-align: center;
}

.breadcrumb-step li a:before, .breadcrumb-step li span:before {
    border-top: 1em solid transparent;
    border-bottom: 1em solid transparent;
    border-left: 1em solid var(--br1);
    content: "";
    position: absolute;
    top: 0;
    right: -1.25em;
    z-index: 1;
}

.breadcrumb-step li a:after, .breadcrumb-step li span:after {
    border-top: 1em solid transparent;
    border-bottom: 1em solid transparent;
    border-left: 1em solid var(--bg1);
    content: "";
    position: absolute;
    top: 0;
    right: -1em;
    transition: 0.25s;
    z-index: 1;
}

.breadcrumb-step li a:hover, .breadcrumb-step li span:hover {
    background-color: var(--bgh);
}

.breadcrumb-step li a:hover:after, .breadcrumb-step li span:hover:after {
    border-left-color: var(--bgh);
}

.breadcrumb-step li a.selected, .breadcrumb-step li span.selected {
    background-color: var(--bgs);
}

.breadcrumb-step li a.selected:after, .breadcrumb-step li span.selected:after {
    border-left-color: var(--bgs);
}

.breadcrumb-step li a.passive, .breadcrumb-step li span.passive {
    background-color: var(--bgp);
}

.breadcrumb-step li a.passive:after, .breadcrumb-step li span.passive:after {
    border-left-color: var(--bgp);
}

.offcanvas-custom {
    width: 250px !important;
}

.pulse-btn {
    animation: pulseGreenBtn 1.5s infinite;
}

@keyframes pulseGreenBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.score-module-checkbox-grid {
    width: 100%;
}

.score-module-checkbox-grid tbody {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem 1rem;
}

.score-module-checkbox-grid tr,
.score-module-checkbox-grid td {
    display: block;
}

.score-module-checkbox-grid td {
    padding: 0;
}

.score-module-checkbox-grid label {
    margin-left: 0.35rem;
}

@media (min-width: 768px) {
    .score-module-checkbox-grid tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .score-module-checkbox-grid tbody {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Research groups */
:root {
    --research-group-brand: #0c6a80;
    --research-group-brand-dark: #084b5c;
    --research-group-accent: #f5a800;
}

.research-group-dashboard {
    --research-group-brand: #0c6a80;
    --research-group-brand-dark: #084b5c;
    --research-group-accent: #f5a800;
    min-height: calc(100vh - 9rem);
}

.research-group-dashboard .bg-primary {
    background: linear-gradient(120deg, var(--research-group-brand-dark), var(--research-group-brand)) !important;
}

.research-group-dashboard .btn-primary,
.research-group-btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--research-group-brand);
    --bs-btn-border-color: var(--research-group-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--research-group-brand-dark);
    --bs-btn-hover-border-color: var(--research-group-brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--research-group-brand-dark);
    --bs-btn-active-border-color: var(--research-group-brand-dark);
    color: #fff;
    background-color: var(--research-group-brand);
    border-color: var(--research-group-brand);
}

.research-group-dashboard .btn-outline-primary {
    --bs-btn-color: var(--research-group-brand);
    --bs-btn-border-color: var(--research-group-brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--research-group-brand);
    --bs-btn-hover-border-color: var(--research-group-brand);
}

.research-group-dashboard .text-primary,
.research-group-brand-link {
    color: var(--research-group-brand) !important;
}

.research-group-dashboard .text-bg-primary,
.research-group-badge-brand {
    color: #fff !important;
    background-color: var(--research-group-brand) !important;
}

.research-group-badge-accent {
    color: #2b250d;
    background-color: var(--research-group-accent);
}

.research-group-alert-brand {
    color: var(--research-group-brand-dark);
    background: rgba(12, 106, 128, .08);
    border: 1px solid rgba(12, 106, 128, .24);
}

.research-group-search-card {
    border-top: 4px solid var(--research-group-accent) !important;
}

.research-group-academician-search .form-control:focus {
    border-color: var(--research-group-brand);
    box-shadow: 0 0 0 .25rem rgba(12, 106, 128, .16);
}

.research-group-dashboard .list-group-item.active,
.research-group-dashboard .nav-pills .nav-link.active {
    color: #fff;
    background-color: var(--research-group-brand);
    border-color: var(--research-group-brand);
}

.research-group-tabs {
    overflow-x: auto;
}

.research-group-tab {
    color: var(--bs-secondary-color);
    padding: 1rem 1.25rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.research-group-tab:hover,
.research-group-tab.is-active {
    color: var(--research-group-brand);
    border-bottom-color: var(--research-group-accent);
}

.research-group-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.research-group-card:hover {
    transform: translateY(-3px);
}

.research-group-manage-card,
.research-group-manage-menu-item {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.research-group-manage-card:hover,
.research-group-manage-card:focus-visible,
.research-group-manage-menu-item:hover,
.research-group-manage-menu-item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem rgba(8, 75, 92, .14) !important;
}

.research-group-manage-menu-item {
    border: 1px solid transparent !important;
}

.research-group-manage-menu-item:hover,
.research-group-manage-menu-item:focus-visible {
    border-color: rgba(12, 106, 128, .28) !important;
}

.research-group-menu-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    color: var(--research-group-brand);
    background: rgba(12, 106, 128, .1);
    border-radius: .85rem;
    font-size: 1.2rem;
}

.research-group-mark {
    width: 3rem;
    height: 3rem;
    display: inline-grid;
    place-items: center;
    color: var(--research-group-brand);
    background: rgba(245, 168, 0, .16);
    border-radius: 1rem;
    font-size: 1.3rem;
}

.research-group-cms-list {
    max-height: 32rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.research-group-cms-grid .card {
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .research-group-cms-list {
        max-height: none;
        overflow: visible;
    }
}

/* Mandatory requirements */
.mandatory-requirement-page {
    --mandatory-accent: #0b7189;
    --mandatory-accent-soft: rgba(11, 113, 137, .1);
    --mandatory-success: #16835d;
    min-height: calc(100vh - 5rem);
    max-width: 1440px;
}

.mandatory-page-alert {
    max-width: 48rem;
}

.mandatory-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1.15rem;
    background: linear-gradient(135deg, var(--bs-body-bg), var(--mandatory-accent-soft));
}

.mandatory-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--mandatory-accent);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mandatory-page-header h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 720;
}

.mandatory-page-header p,
.mandatory-section-heading p {
    margin: .35rem 0 0;
    color: var(--bs-secondary-color);
    font-size: .88rem;
}

.mandatory-completion-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .75rem;
    color: #8a5a00;
    background: rgba(255, 193, 7, .15);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.mandatory-completion-badge.is-complete {
    color: var(--mandatory-success);
    background: rgba(22, 131, 93, .13);
}

.mandatory-module-library,
.mandatory-publication-library,
.mandatory-requirement-card,
.mandatory-empty-state {
    border: 1px solid var(--bs-border-color);
    border-radius: 1.1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .4rem 1.3rem rgba(21, 34, 50, .045);
}

.mandatory-module-library,
.mandatory-publication-library {
    position: sticky;
    top: 1rem;
    padding: 1rem;
}

.mandatory-module-heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 720;
}

.mandatory-module-nav {
    display: grid;
    gap: .35rem;
    max-height: calc(100vh - 13rem);
    margin-top: .85rem;
    padding-right: .15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mandatory-module-nav .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    padding: .48rem .55rem;
    color: var(--bs-secondary-color);
    border: 1px solid transparent;
    border-radius: .65rem;
    font-size: .7rem;
    text-align: left;
}

.mandatory-module-nav .btn:hover {
    color: var(--mandatory-accent);
    background: var(--mandatory-accent-soft);
}

.mandatory-module-nav .btn.active {
    color: #fff;
    background: var(--mandatory-accent);
    border-color: var(--mandatory-accent);
}

.mandatory-module-nav .btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mandatory-module-nav .btn strong {
    display: inline-grid;
    flex: 0 0 auto;
    min-width: 1.35rem;
    min-height: 1.35rem;
    place-items: center;
    padding: 0 .25rem;
    color: inherit;
    background: rgba(127, 127, 127, .12);
    border-radius: 999px;
    font-size: .62rem;
}

.mandatory-section-heading,
.mandatory-requirement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mandatory-section-heading h2,
.mandatory-requirement-head h2,
.mandatory-empty-state h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 720;
}

.mandatory-publication-list {
    display: grid;
    gap: .65rem;
    max-height: calc(100vh - 18rem);
    padding-right: .15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mandatory-publication-card {
    padding: .8rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    background: var(--bs-tertiary-bg);
    cursor: grab;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mandatory-publication-card:hover,
.mandatory-publication-card:focus-visible,
.mandatory-publication-card.is-selected {
    border-color: var(--mandatory-accent);
    box-shadow: 0 0 0 .2rem var(--mandatory-accent-soft);
    outline: 0;
    transform: translateY(-1px);
}

.mandatory-publication-card.is-selected {
    background: var(--mandatory-accent-soft);
}

.mandatory-publication-card:active {
    cursor: grabbing;
}

.mandatory-publication-type,
.mandatory-requirement-types {
    color: var(--mandatory-accent);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.mandatory-publication-card h3 {
    margin: .25rem 0;
    font-size: .88rem;
    font-weight: 680;
    line-height: 1.35;
}

.mandatory-publication-meta,
.mandatory-assigned-publication small {
    color: var(--bs-secondary-color);
    font-size: .73rem;
    line-height: 1.35;
}

.mandatory-card-action {
    display: block;
    margin-top: .45rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.mandatory-library-empty,
.mandatory-empty-state {
    display: grid;
    place-items: center;
    gap: .55rem;
    padding: 2rem 1rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

.mandatory-library-empty .bi,
.mandatory-empty-state .bi {
    color: var(--mandatory-accent);
    font-size: 1.8rem;
}

.mandatory-empty-state p {
    margin: 0;
    font-size: .85rem;
}

.mandatory-requirement-stack {
    display: grid;
    gap: .9rem;
}

.mandatory-requirement-card {
    padding: 1rem;
    overflow: hidden;
}

.mandatory-requirement-card.is-complete {
    border-color: rgba(22, 131, 93, .38);
}

.mandatory-requirement-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: .2rem .48rem;
    color: var(--mandatory-accent);
    background: var(--mandatory-accent-soft);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
}

.mandatory-requirement-description {
    margin-top: .4rem;
    color: var(--bs-secondary-color);
    font-size: .82rem;
    white-space: pre-line;
}

.mandatory-status-icon {
    color: var(--bs-border-color);
    font-size: 1.25rem;
}

.is-complete .mandatory-status-icon {
    color: var(--mandatory-success);
}

.mandatory-progress {
    height: .28rem;
    margin: .9rem 0;
    background: var(--bs-tertiary-bg);
}

.mandatory-progress .progress-bar {
    background: var(--mandatory-accent);
}

.is-complete .mandatory-progress .progress-bar {
    background: var(--mandatory-success);
}

.mandatory-drop-zone {
    min-height: 5rem;
    padding: .65rem;
    border: 1px dashed rgba(11, 113, 137, .55);
    border-color: color-mix(in srgb, var(--mandatory-accent) 55%, var(--bs-border-color));
    border-radius: .85rem;
    background: var(--mandatory-accent-soft);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.mandatory-drop-zone.is-drag-over,
.mandatory-drop-zone:focus-visible {
    border-color: var(--mandatory-accent);
    background: rgba(11, 113, 137, .17);
    outline: 0;
    transform: scale(1.005);
}

.mandatory-drop-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .3rem;
    color: var(--mandatory-accent);
    font-size: .74rem;
    font-weight: 650;
}

.mandatory-assigned-publication {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-top: .5rem;
    padding: .65rem .7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .7rem;
    background: var(--bs-body-bg);
    cursor: grab;
}

.mandatory-assigned-publication > div {
    display: grid;
    min-width: 0;
}

.mandatory-assigned-publication span {
    color: var(--mandatory-accent);
    font-size: .64rem;
    font-weight: 750;
}

.mandatory-assigned-publication strong {
    overflow: hidden;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .mandatory-module-library,
    .mandatory-publication-library {
        position: static;
    }

    .mandatory-module-nav {
        display: flex;
        max-height: none;
        padding: 0 0 .25rem;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .mandatory-module-nav .btn {
        flex: 0 0 auto;
        width: auto;
        max-width: 13rem;
    }

    .mandatory-publication-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 24rem;
    }
}

@media (max-width: 575.98px) {
    .mandatory-page-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .mandatory-publication-list {
        grid-template-columns: 1fr;
        max-height: 22rem;
    }

    .mandatory-requirement-head {
        gap: .55rem;
    }
}

/* Read-only mandatory requirement summary in application preview */
.preview-mandatory-requirements {
    --mandatory-accent: #0b7189;
    --mandatory-accent-soft: rgba(11, 113, 137, .1);
    --mandatory-success: #16835d;
    min-height: 32rem;
}

.preview-mandatory-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.preview-mandatory-header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 720;
}

.preview-mandatory-header p {
    margin: .35rem 0 0;
    color: var(--bs-secondary-color);
    font-size: .82rem;
}

.preview-mandatory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.preview-mandatory-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 .35rem 1rem rgba(21, 34, 50, .045);
}

.preview-mandatory-card.is-complete {
    border-color: rgba(22, 131, 93, .38);
}

.preview-mandatory-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.preview-mandatory-card h3 {
    margin: 0;
    font-size: .98rem;
    font-weight: 720;
    line-height: 1.35;
}

.preview-mandatory-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .5rem;
    color: #9a6200;
    background: rgba(255, 193, 7, .14);
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 700;
}

.preview-mandatory-status.is-complete {
    color: var(--mandatory-success, #16835d);
    background: rgba(22, 131, 93, .12);
}

.preview-mandatory-selection-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .85rem 0 .55rem;
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.preview-mandatory-publications {
    display: grid;
    gap: .5rem;
}

.preview-mandatory-publication {
    position: relative;
    display: grid;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .7rem;
    background: var(--bs-tertiary-bg);
}

.preview-mandatory-publication-type {
    color: var(--mandatory-accent, #0b7189);
    font-size: .62rem;
    font-weight: 750;
    text-transform: uppercase;
}

.preview-mandatory-publication strong {
    padding-right: 4.5rem;
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-mandatory-publication small {
    padding-right: 4.5rem;
    color: var(--bs-secondary-color);
    font-size: .68rem;
}

.preview-mandatory-score {
    position: absolute;
    top: .65rem;
    right: .7rem;
    color: var(--bs-secondary-color);
    font-size: .67rem;
    font-weight: 700;
}

.preview-mandatory-title-link {
    color: var(--bs-heading-color, inherit);
    text-decoration: none;
    transition: color .15s ease;
}

.preview-mandatory-title-link:hover {
    color: var(--mandatory-accent, #0b7189);
    text-decoration: underline;
}

.preview-mandatory-title-link .preview-mandatory-link-icon {
    font-size: .75em;
    opacity: .65;
    transition: opacity .15s ease;
}

.preview-mandatory-title-link:hover .preview-mandatory-link-icon {
    opacity: 1;
}

.preview-mandatory-links .badge {
    font-size: .68rem;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.preview-mandatory-links .badge:hover {
    background-color: var(--mandatory-accent-soft, rgba(11, 113, 137, .1)) !important;
    border-color: var(--mandatory-accent, #0b7189) !important;
    color: var(--mandatory-accent, #0b7189) !important;
}

.preview-mandatory-publication.has-link {
    transition: border-color .18s ease;
}

.preview-mandatory-publication.has-link:hover {
    border-color: color-mix(in srgb, var(--mandatory-accent, #0b7189) 50%, var(--bs-border-color));
}

.preview-mandatory-no-selection {
    padding: .7rem;
    color: var(--bs-secondary-color);
    border: 1px dashed var(--bs-border-color);
    border-radius: .7rem;
    font-size: .73rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .preview-mandatory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .preview-mandatory-card-head {
        flex-direction: column;
    }

    .preview-mandatory-publication strong,
    .preview-mandatory-publication small {
        padding-right: 0;
        white-space: normal;
    }

    .preview-mandatory-score {
        position: static;
        margin-top: .25rem;
        transform: none;
    }
}

.evaluation-report-preview {
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.evaluation-report-letterhead {
    display: grid;
    grid-template-columns: 2.3fr 3.3fr 3fr;
    border: 1px solid var(--bs-border-color);
}

.evaluation-report-logo,
.evaluation-report-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    text-align: center;
    border-right: 1px solid var(--bs-border-color);
}

.evaluation-report-logo img {
    width: 100%;
    max-width: 150px;
    height: 78px;
    object-fit: contain;
}

.evaluation-report-title {
    font-weight: 700;
}

.evaluation-report-metadata {
    width: 100%;
    border-collapse: collapse;
    font-size: .65rem;
}

.evaluation-report-metadata th,
.evaluation-report-metadata td {
    padding: .2rem .3rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 400;
}

.evaluation-report-metadata th {
    border-right: 1px solid var(--bs-border-color);
}

.evaluation-report-metadata td {
    text-align: center;
}

.evaluation-report-metadata tr:last-child > * {
    border-bottom: 0;
}

.evaluation-report-paragraph {
    text-align: justify;
}

.evaluation-report-candidate-info {
    line-height: 1.6;
    font-size: .95rem;
}

.evaluation-report-signer {
    width: 44%;
}

@media (max-width: 575.98px) {
    .evaluation-report-letterhead {
        grid-template-columns: 1fr 1.4fr;
    }

    .evaluation-report-title {
        border-right: 0;
    }

    .evaluation-report-metadata {
        grid-column: 1 / -1;
        border-top: 1px solid var(--bs-border-color);
    }

    .evaluation-report-signer {
        width: 100%;
    }
}

/* ── Custom Evaluation Editor ── */
.eval-editor-wrap {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .375rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
}

.eval-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    flex-wrap: wrap;
}

.eval-tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: .25rem;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--bs-body-color, #212529);
    position: relative;
}

.eval-tb-btn:hover {
    background: var(--bs-secondary-bg, #e9ecef);
    border-color: var(--bs-border-color, #dee2e6);
}

.eval-tb-sep {
    width: 1px;
    height: 20px;
    background: var(--bs-border-color, #dee2e6);
}

.eval-tb-label {
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    user-select: none;
    margin-left: 4px;
}

.eval-tb-select {
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .25rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}

.eval-editor-area {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
    outline: none;
    color: var(--bs-body-color, #212529);
}

.eval-editor-area:focus {
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, .25);
}

.eval-editor-area:empty::before {
    content: 'Rapor yazın veya Word/Excel\'den tablo yapıştırın...';
    color: var(--bs-secondary-color, #6c757d);
    pointer-events: none;
}

.eval-editor-area[data-placeholder]:empty::before {
    content: attr(data-placeholder);
}

.eval-editor-area table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.eval-editor-area td,
.eval-editor-area th {
    border: 1px solid #999;
    padding: 4px 6px;
    min-width: 40px;
}

.rich-report-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rich-report-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rich-report-content th,
.rich-report-content td {
    border: 1px solid #999;
    padding: .25rem .375rem;
    vertical-align: top;
}

.eval-editor-area th {
    background: var(--bs-tertiary-bg, #f8f9fa);
    font-weight: 700;
}

/* ── Evaluation Decision (Uygun / Uygun Değil) ── */
.eval-decision-group {
    display: flex !important;
    gap: 12px;
    border: none !important;
}

.eval-decision-group table,
.eval-decision-group tbody,
.eval-decision-group tr {
    display: contents !important;
}

.eval-decision-group td {
    display: block !important;
    flex: 1;
    padding: 0 !important;
    border: none !important;
}

.eval-decision-group td label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-radius: .5rem;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    user-select: none;
    text-align: center;
}

.eval-decision-group td label:hover {
    border-color: var(--bs-secondary-color, #adb5bd);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.eval-decision-group td input[type="radio"] {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Seçili: Uygun (ilk td) */
.eval-decision-group td:first-child input[type="radio"]:checked + label {
    border-color: #198754;
    background: #d1e7dd;
    color: #0f5132;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .2);
}

.eval-decision-group td:first-child input[type="radio"]:checked + label::before {
    content: '✓';
    font-size: 18px;
    font-weight: 900;
    color: #198754;
}

/* Seçili: Uygun Değil (ikinci td) */
.eval-decision-group td:last-child input[type="radio"]:checked + label {
    border-color: #dc3545;
    background: #f8d7da;
    color: #842029;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .2);
}

.eval-decision-group td:last-child input[type="radio"]:checked + label::before {
    content: '✗';
    font-size: 18px;
    font-weight: 900;
    color: #dc3545;
}

/* Seçilmemiş olanlar – soluk */
.eval-decision-group td input[type="radio"]:not(:checked) + label {
    opacity: .7;
}

.eval-decision-group td input[type="radio"]:not(:checked) + label::before {
    content: '○';
    font-size: 16px;
    color: var(--bs-secondary-color, #adb5bd);
}
.group-post-upload {
    background: var(--bs-tertiary-bg);
    border-style: dashed !important;
}

.group-post-preview-item,
.group-post-existing-media {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
}

.group-post-preview-visual,
.group-post-existing-media > img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.group-post-preview-document {
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: var(--bs-danger);
}

.group-post-preview-remove,
.group-post-remove-existing {
    position: absolute;
    top: .4rem;
    right: .4rem;
    z-index: 2;
    border-radius: 50%;
}

.group-post-existing-media.is-removed {
    opacity: .45;
}

.group-post-existing-media.is-removed::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    content: attr(data-remove-label);
    color: #fff;
    font-weight: 700;
    background: rgba(0, 0, 0, .5);
}

.group-post-admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: .5rem;
}

.group-post-admin-content {
    min-width: 240px;
    max-width: 420px;
    white-space: normal;
}

.group-post-admin-table th {
    white-space: nowrap;
}
