/*
 * City College of El Salvador - brand theme
 * Loaded AFTER vendors_css.css / style.css / skin_color.css so it wins.
 *
 * Bootstrap here is 5.0.0, whose --bs-primary variable is NOT wired into
 * .btn-primary (that only landed in 5.2), so component colours have to be
 * overridden explicitly rather than by redefining a variable.
 */

:root {
    --cces-green: #009030;
    --cces-green-dark: #005030;
    --cces-green-hover: #007a29;
    --cces-tint: #e8f5ec;
    --cces-ring: rgba(0, 144, 48, .25);
}

/* ---------------------------------------------------------------- buttons */
.btn-primary {
    background-color: var(--cces-green) !important;
    border-color: var(--cces-green) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--cces-green-dark) !important;
    border-color: var(--cces-green-dark) !important;
    color: #fff !important;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 .2rem var(--cces-ring) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--cces-green) !important;
    border-color: var(--cces-green) !important;
    opacity: .55;
}

.btn-outline-primary {
    color: var(--cces-green) !important;
    border-color: var(--cces-green) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--cces-green) !important;
    border-color: var(--cces-green) !important;
    color: #fff !important;
}

/* ------------------------------------------------------- text / bg utils */
.text-primary { color: var(--cces-green) !important; }

.bg-primary,
.badge-primary,
.bg-gradient-primary {
    background-color: var(--cces-green) !important;
    color: #fff !important;
}

.border-primary { border-color: var(--cces-green) !important; }

a { color: var(--cces-green); }
a:hover, a:focus { color: var(--cces-green-dark); }

/* ------------------------------------------------------------ form focus */
.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--cces-green) !important;
    box-shadow: 0 0 0 .2rem var(--cces-ring) !important;
}

.form-check-input:checked {
    background-color: var(--cces-green);
    border-color: var(--cces-green);
}

/* select2 chips (job qualification multi-select) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--cces-green) !important;
    border-color: var(--cces-green-dark) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--cces-green) !important;
}

/* --------------------------------------------------------------- modals
   Kept plain: a white header with a hairline rule, rather than a solid
   colour bar. The brand shows through in the buttons and accents instead. */
.modal-header {
    background-color: #fff;
    color: #1a2433;
    border-bottom: 1px solid #eef1f5;
    padding: 16px 22px;
}

.modal-header .modal-title,
.modal-header h1, .modal-header h2, .modal-header h3,
.modal-header h4, .modal-header h5, .modal-header h6 {
    color: #1a2433;
    font-size: 16px;
    font-weight: 600;
}

/* Default dark Bootstrap close icon suits the white header - no inversion. */
.modal-header .btn-close,
.modal-header .close {
    filter: none;
    opacity: .55;
}

.modal-header .btn-close:hover,
.modal-header .close:hover {
    opacity: .9;
}

.modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .16);
}

.modal-footer {
    border-top: 1px solid #eef1f5;
    padding: 14px 22px;
}

/* ------------------------------------------------- nav / tabs / paginate */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--cces-green) !important;
    color: #fff !important;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--cces-green) !important;
    color: var(--cces-green) !important;
}

.page-item.active .page-link {
    background-color: var(--cces-green) !important;
    border-color: var(--cces-green) !important;
    color: #fff !important;
}

.page-link { color: var(--cces-green); }
.page-link:hover { color: var(--cces-green-dark); }

/* DataTables buttons/pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--cces-green) !important;
    border-color: var(--cces-green) !important;
    color: #fff !important;
}

/* -------------------------------------------------------- auth (login /
   sign-up) pages ------------------------------------------------------- */
.cces-auth-bg {
    background: linear-gradient(135deg, rgba(0, 80, 48, .93), rgba(0, 144, 48, .88));
    background-attachment: fixed;
    min-height: 100vh;
}

.cces-auth-card {
    border-radius: 14px;
    overflow: hidden;
    border-top: 5px solid var(--cces-green);
}

.cces-auth-head {
    text-align: center;
    padding: 28px 24px 8px;
}

.cces-logo {
    width: 104px;
    height: 104px;
    object-fit: contain;
    margin-bottom: 14px;
}

.cces-auth-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cces-green-dark);
    margin: 0 0 4px;
    line-height: 1.25;
}

.cces-auth-head .cces-sub {
    font-size: 13px;
    color: #6b7a8d;
    margin: 0;
}

.cces-auth-head .cces-portal {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--cces-green-dark);
    background: var(--cces-tint);
    border-radius: 999px;
}

.cces-auth-card .input-group-text {
    color: var(--cces-green);
}

.cces-btn-block {
    min-width: 170px;
    font-weight: 600;
    letter-spacing: .04em;
}

/* the auth pages keep .text-warning on the secondary link - make it brand */
.cces-auth-card .text-warning {
    color: var(--cces-green) !important;
    font-weight: 600;
}

.cces-auth-card .hover-warning:hover {
    color: var(--cces-green-dark) !important;
}

@media (max-width: 575.98px) {
    .cces-logo { width: 84px; height: 84px; }
    .cces-auth-head h2 { font-size: 17px; }
}

/* ================================================================
   Job board (peso/job-list, alumni/job)
   ================================================================ */
.jb-toolbar {
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 16px 18px 10px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.jb-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.jb-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 220px;
}

.jb-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b1;
    pointer-events: none;
}

.jb-search .form-control {
    padding-left: 36px;
}

.jb-filter {
    flex: 0 1 190px;
    min-width: 150px;
}

.jb-count {
    margin: 10px 2px 0;
    font-size: 12.5px;
    color: #7b8794;
}

/* ------------------------------------------------------------ cards */
.jb-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jb-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 18px 20px;
    transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}

.jb-card:hover {
    border-color: var(--cces-green);
    box-shadow: 0 6px 18px rgba(0, 144, 48, .10);
    transform: translateY(-1px);
}

.jb-card-logo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 10px;
    border: 1px solid #eef1f5;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jb-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jb-logo-fallback {
    font-size: 22px;
    font-weight: 700;
    color: var(--cces-green);
}

.jb-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.jb-card-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: #1a2433 !important;
    line-height: 1.3;
    margin-bottom: 2px;
}

.jb-card-title:hover {
    color: var(--cces-green) !important;
}

.jb-card-company {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #667484 !important;
    margin-bottom: 10px;
}

.jb-card-company:hover { color: var(--cces-green) !important; }

.jb-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 10px;
}

.jb-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    background: var(--cces-tint);
    color: var(--cces-green-dark);
}

.jb-salary {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--cces-green-dark);
}

.jb-meta-item {
    font-size: 12.5px;
    color: #7b8794;
}

.jb-meta-item i { margin-right: 4px; }

.jb-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #5c6b7a;
    margin: 0 0 12px;
}

.jb-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f3f6;
    padding-top: 11px;
}

.jb-posted {
    font-size: 12px;
    color: #9aa5b1;
}

.jb-posted i { margin-right: 5px; }

.jb-card-actions {
    display: inline-flex;
    gap: 8px;
}

.jb-btn {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
    white-space: nowrap;
}

.jb-btn-ghost {
    border-color: #d8dee6;
    color: #4a5764 !important;
    background: #fff;
}

.jb-btn-ghost:hover {
    border-color: var(--cces-green);
    color: var(--cces-green-dark) !important;
    background: var(--cces-tint);
}

.jb-btn-primary {
    background: var(--cces-green);
    color: #fff !important;
}

.jb-btn-primary:hover {
    background: var(--cces-green-dark);
    color: #fff !important;
}

/* ------------------------------------------------------- empty state */
.jb-empty {
    text-align: center;
    padding: 54px 20px;
    background: #fff;
    border: 1px dashed #d8dee6;
    border-radius: 12px;
    color: #7b8794;
}

.jb-empty i {
    font-size: 30px;
    color: #c3ccd6;
    margin-bottom: 12px;
    display: block;
}

.jb-empty h4 {
    font-size: 16px;
    font-weight: 600;
    color: #4a5764;
    margin: 0 0 5px;
}

.jb-empty p { margin: 0; font-size: 13px; }

/* ------------------------------------ section headings on alumni page */
.jb-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2433;
    margin: 26px 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.jb-section-title:first-child { margin-top: 0; }

.jb-section-title .jb-badge { font-size: 11px; }

/* rich text coming out of CKEditor inside the details modal */
.jb-desc-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: #44515f;
    margin-top: -6px;
    margin-bottom: 14px;
}

.jb-desc-body ul,
.jb-desc-body ol { padding-left: 20px; margin-bottom: 10px; }

.jb-desc-body p { margin-bottom: 8px; }

@media (max-width: 575.98px) {
    .jb-card { flex-direction: column; gap: 12px; }
    .jb-card-logo { flex: 0 0 48px; width: 48px; height: 48px; }
    .jb-card-foot { flex-direction: column; align-items: flex-start; }
}

.jb-badge-rec {
    background: var(--cces-green);
    color: #fff;
}

.jb-badge-rec i { margin-right: 4px; }

/* ---------------------------------------------- job details modal */
.jb-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.jb-modal-body { padding: 22px 26px 8px; }

.jb-modal-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef1f5;
}

.jb-modal-logo {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jb-modal-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jb-modal-logo .jb-logo-fallback { font-size: 26px; }

.jb-modal-headings { min-width: 0; flex: 1 1 auto; }

.jb-modal-company {
    font-size: 13px;
    font-weight: 600;
    color: #7b8794;
    margin: 0 0 2px;
}

.jb-modal-title {
    font-size: 21px;
    font-weight: 700;
    color: #1a2433;
    margin: 0 0 10px;
    line-height: 1.25;
}

.jb-modal-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.jb-modal-salary {
    font-size: 16px;
    font-weight: 700;
    color: var(--cces-green-dark);
}

.jb-modal-section { padding: 16px 0 4px; }

.jb-modal-section h6 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9aa5b1;
    margin: 0 0 9px;
}

.jb-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.jb-chip {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--cces-tint);
    color: var(--cces-green-dark);
}

.jb-chip-muted { background: #f1f3f6; color: #8794a1; }

.jb-contact-list { list-style: none; margin: 0; padding: 0; }

.jb-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #44515f;
    padding: 5px 0;
}

.jb-contact-list i {
    color: var(--cces-green);
    width: 16px;
    margin-top: 3px;
    flex: 0 0 16px;
}

.jb-modal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eef1f5;
    padding: 14px 26px;
}

@media (max-width: 575.98px) {
    .jb-modal-body { padding: 18px 16px 6px; }
    .jb-modal-head { flex-direction: column; }
    .jb-modal-title { font-size: 18px; }
    .jb-modal-foot { flex-direction: column; gap: 10px; align-items: stretch; padding: 14px 16px; }
}


.jb-btn-danger {
    background: #fff;
    border-color: #f1c9c9;
    color: #c0392b !important;
    cursor: pointer;
}

.jb-btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff !important;
}

.jb-modal-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* ================================================================
   Branded page loader
   ----------------------------------------------------------------
   style.css set #loader to a GIF at ../../images/preloaders/1.gif,
   which resolves outside the app (htdocs/images/...) and 404s, so the
   overlay was a blank white screen. That background is replaced here
   with a themed loader built from the college mark.

   #preloader / #main-wrapper.show are dead markup from the stock
   template - nothing styles them - so #preloader stays hidden.
   ================================================================ */
#loader {
    background: #ffffff !important;
    background-image: radial-gradient(circle at 50% 42%, #f2faf5 0%, #ffffff 62%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    /* template.js fades this inline on DOMContentLoaded and then sets
       display:none. Both are overridden here so the loader is controlled
       only by the two classes below -- otherwise the two fight and the
       overlay flickers. */
    opacity: 1 !important;
    transition: opacity .35s ease;
}

/* Fading out: stop intercepting clicks immediately. */
#loader.cces-loader-hide {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fully gone. Higher specificity than #loader, so this display wins.
   Without this the overlay stayed in the layout and swallowed every
   click - the sidebar became unclickable. */
#loader.cces-loader-gone {
    display: none !important;
}

#preloader { display: none !important; }

.cces-loader {
    text-align: center;
    padding: 20px;
    animation: cces-loader-in .4s ease both;
}

.cces-loader-mark {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cces-loader-mark img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    animation: cces-loader-pulse 1.8s ease-in-out infinite;
}

/* Green arc that orbits the seal */
.cces-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(0, 144, 48, .15);
    border-top-color: var(--cces-green);
    border-right-color: var(--cces-green);
    animation: cces-loader-spin .9s linear infinite;
}

.cces-loader-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cces-green-dark);
    letter-spacing: .01em;
    margin: 0 0 5px;
}

.cces-loader-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #8b97a4;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0;
}

.cces-dot {
    opacity: .25;
    animation: cces-loader-dot 1.2s infinite;
}

.cces-dot:nth-child(2) { animation-delay: .2s; }
.cces-dot:nth-child(3) { animation-delay: .4s; }

@keyframes cces-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes cces-loader-pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(.93);  opacity: .78; }
}

@keyframes cces-loader-dot {
    0%, 100% { opacity: .25; }
    40%      { opacity: 1; }
}

@keyframes cces-loader-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    .cces-loader-ring,
    .cces-loader-mark img,
    .cces-dot,
    .cces-loader {
        animation: none !important;
    }
    .cces-loader-ring { border-top-color: var(--cces-green); }
}

@media (max-width: 575.98px) {
    .cces-loader-mark { width: 96px; height: 96px; margin-bottom: 18px; }
    .cces-loader-mark img { width: 60px; height: 60px; }
    .cces-loader-title { font-size: 13px; }
}

/* ================================================================
   Notifications (header bell + /notifications page)
   ================================================================ */
.cces-bell { position: relative; }

.cces-bell-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.cces-notif-menu { min-width: 340px; }

.cces-notif-menu .menu { max-height: 360px; overflow-y: auto; }

.cces-mark-all { font-size: 12px; font-weight: 600; color: var(--cces-green) !important; }

.cces-notif-item {
    display: flex !important;
    gap: 11px;
    align-items: flex-start;
    padding: 11px 16px !important;
    border-bottom: 1px solid #f2f5f8;
    white-space: normal !important;
}

.cces-notif-item.is-unread { background: var(--cces-tint); }

.cces-notif-item > i {
    color: var(--cces-green);
    margin-top: 3px;
    flex: 0 0 16px;
    text-align: center;
}

.cces-notif-text { display: flex; flex-direction: column; min-width: 0; }

.cces-notif-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2433;
    line-height: 1.35;
}

.cces-notif-body {
    font-size: 12px;
    color: #6b7a8d;
    line-height: 1.4;
    margin-top: 1px;
}

.cces-notif-time { font-size: 11px; color: #9aa5b1; margin-top: 3px; }

.cces-notif-empty { text-align: center; padding: 32px 16px; color: #9aa5b1; }
.cces-notif-empty i { font-size: 26px; display: block; margin-bottom: 8px; color: #c3ccd6; }
.cces-notif-empty p { margin: 0; font-size: 13px; }

/* --- full page list --- */
.cces-notif-list { display: flex; flex-direction: column; gap: 10px; }

.cces-notif-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 11px;
    padding: 15px 18px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cces-notif-row:hover {
    border-color: var(--cces-green);
    box-shadow: 0 4px 14px rgba(0, 144, 48, .09);
}

.cces-notif-row.is-unread { background: var(--cces-tint); border-color: #cfe9d8; }

.cces-notif-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cces-tint);
    color: var(--cces-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cces-notif-row.is-unread .cces-notif-icon { background: #fff; }

.cces-notif-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cces-notif-row-title { font-size: 14px; font-weight: 600; color: #1a2433; }
.cces-notif-row-body { font-size: 13px; color: #5c6b7a; margin-top: 2px; line-height: 1.5; }
.cces-notif-row-time { font-size: 11.5px; color: #9aa5b1; margin-top: 5px; }

.cces-notif-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cces-green);
    margin-top: 6px;
}

/* ================================================================
   Dashboard
   ================================================================ */
.cces-dash-head { margin-bottom: 18px; }

.cces-page-title { font-size: 20px; font-weight: 700; color: #1a2433; margin: 0 0 3px; }
.cces-page-sub { font-size: 13px; color: #7b8794; margin: 0; }

.cces-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cces-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cces-stat:hover {
    border-color: var(--cces-green);
    box-shadow: 0 6px 18px rgba(0, 144, 48, .10);
    transform: translateY(-1px);
}

.cces-stat.is-attention { border-color: #f3d9a4; background: #fffdf6; }

.cces-stat-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--cces-tint);
    color: var(--cces-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.cces-stat.is-attention .cces-stat-icon { background: #fdf3dc; color: #a97d18; }

.cces-stat-body { display: flex; flex-direction: column; min-width: 0; }
.cces-stat-value { font-size: 25px; font-weight: 700; color: #1a2433; line-height: 1.1; }
.cces-stat-label { font-size: 12.5px; color: #7b8794; margin-top: 3px; }

.cces-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cces-panel {
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 18px 20px;
}

.cces-panel-wide { grid-column: 1 / -1; }

.cces-panel-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2433;
    margin: 0 0 14px;
}

.cces-chart-box { position: relative; height: 270px; }

.cces-panel-empty {
    font-size: 13px;
    color: #9aa5b1;
    text-align: center;
    padding: 34px 10px;
    margin: 0;
}

.cces-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f2f5f8;
}

.cces-list-row:last-child { border-bottom: 0; }

.cces-list-main { display: flex; flex-direction: column; min-width: 0; }
.cces-list-title { font-size: 13.5px; font-weight: 600; color: #1a2433; }
.cces-list-sub { font-size: 12px; color: #7b8794; margin-top: 2px; }

.cces-pill {
    flex: 0 0 auto;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.cces-pill-approved { background: var(--cces-tint); color: var(--cces-green-dark); }
.cces-pill-pending  { background: #fdf3dc; color: #a97d18; }
.cces-pill-declined { background: #fbe9e7; color: #c0392b; }
.cces-pill-type     { background: var(--cces-tint); color: var(--cces-green-dark); }

/* Text values (course name, employment status) in a stat tile: smaller than
   the numeric figures and allowed to wrap. */
.cces-stat-value.cces-stat-text { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }

.cces-panel-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f2f5f8;
    font-size: 12.5px;
    font-weight: 600;
    text-align: right;
}

.cces-panel-foot a { color: var(--cces-green-dark); }

/* Prompt banner above the dashboard, e.g. "add your employment status". */
.cces-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 18px;
    border-color: #f3d9a4;
    background: #fffdf6;
    color: #5c4a1a;
    font-size: 13.5px;
}

a.cces-callout:hover { border-color: #e0a800; color: #5c4a1a; }
.cces-callout-cta { margin-left: auto; font-weight: 700; color: #a97d18; white-space: nowrap; }

.cces-stat-sub { font-size: 11.5px; color: #9aa5b1; margin-top: 2px; }
.cces-panel-note { font-size: 11.5px; font-weight: 400; color: #9aa5b1; margin-left: 4px; }

@media (max-width: 575.98px) {
    .cces-chart-box { height: 230px; }
    .cces-notif-menu { min-width: 280px; }
}

/* ================================================================
   Company + event cards
   ================================================================ */
.cces-head-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.cces-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 14px;
}

.cces-card-grid .jb-empty { grid-column: 1 / -1; }

/* ------------------------------------------------------- company */
.cces-company-card,
.cces-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cces-company-card:hover,
.cces-event-card:hover {
    border-color: var(--cces-green);
    box-shadow: 0 6px 18px rgba(0, 144, 48, .10);
    transform: translateY(-1px);
}

.cces-company-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }

.cces-company-logo {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #eef1f5;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cces-company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cces-company-head { min-width: 0; display: flex; flex-direction: column; }

.cces-company-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a2433 !important;
    line-height: 1.3;
}

.cces-company-name:hover { color: var(--cces-green) !important; }

.cces-company-jobs { font-size: 12px; color: var(--cces-green-dark); font-weight: 600; margin-top: 3px; }
.cces-company-jobs i { margin-right: 4px; }

.cces-company-overview {
    font-size: 13px;
    line-height: 1.55;
    color: #5c6b7a;
    margin: 0 0 12px;
}

.cces-company-meta { list-style: none; margin: 0 0 14px; padding: 0; }

.cces-company-meta li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12.5px;
    color: #6b7a8d;
    padding: 3px 0;
}

.cces-company-meta i { color: var(--cces-green); width: 15px; flex: 0 0 15px; margin-top: 2px; }
.cces-company-meta span { min-width: 0; word-break: break-word; }

.cces-company-foot,
.cces-event-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f3f6;
    padding-top: 12px;
    margin-top: auto;
}

/* --------------------------------------------------------- event */
.cces-event-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }

.cces-event-date {
    flex: 0 0 62px;
    width: 62px;
    border-radius: 10px;
    background: var(--cces-tint);
    padding: 8px 0 7px;
    text-align: center;
    line-height: 1.1;
}

.cces-event-month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cces-green-dark);
}

.cces-event-day { display: block; font-size: 23px; font-weight: 700; color: #1a2433; margin: 1px 0; }
.cces-event-year { display: block; font-size: 10.5px; color: #8b97a4; }

.cces-event-head { flex: 1 1 auto; min-width: 0; }

.cces-event-when {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8b97a4;
    margin-bottom: 3px;
}

.cces-event-when.is-today { color: #c0392b; }
.cces-event-when.is-soon  { color: #a97d18; }

.cces-event-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #1a2433;
    margin: 0 0 3px;
    line-height: 1.3;
}

.cces-event-weekday { font-size: 12px; color: #7b8794; }

.cces-event-edit {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e6eaef;
    color: #6b7a8d !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cces-event-edit:hover {
    border-color: var(--cces-green);
    color: var(--cces-green) !important;
    background: var(--cces-tint);
}

.cces-event-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #5c6b7a;
    margin: 0 0 14px;
}

.cces-event-by { font-size: 12px; color: #8b97a4; }
.cces-event-by i { margin-right: 5px; }

@media (max-width: 575.98px) {
    .cces-card-grid { grid-template-columns: 1fr; }
    .cces-head-row { align-items: flex-start; flex-direction: column; }
}

/* ---------------------------------------------------- reports hub */
.cces-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 13px;
}

.cces-report-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cces-report-card:hover {
    border-color: var(--cces-green);
    box-shadow: 0 6px 18px rgba(0, 144, 48, .10);
    transform: translateY(-1px);
}

.cces-report-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--cces-tint);
    color: var(--cces-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cces-report-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cces-report-title { font-size: 14px; font-weight: 700; color: #1a2433; }
.cces-report-desc { font-size: 12.5px; color: #7b8794; margin-top: 2px; line-height: 1.45; }

.cces-report-go {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cces-green-dark);
    background: var(--cces-tint);
    border-radius: 999px;
    padding: 5px 12px;
}

.cces-report-card:hover .cces-report-go { background: var(--cces-green); color: #fff; }

/* ------------------------------------------------- report view page */
.cces-back {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: #7b8794 !important;
    margin-bottom: 6px;
}

.cces-back:hover { color: var(--cces-green) !important; }
.cces-back i { margin-right: 4px; }

.cces-report-actions { display: flex; gap: 8px; align-items: center; }

.cces-filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }

.cces-filter-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9aa5b1;
    margin: 0;
}

.cces-filter-actions { justify-content: flex-end; flex-direction: row; gap: 8px; align-items: flex-end; }

.cces-stat-compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cces-stat-compact .cces-stat { padding: 13px 16px; }
.cces-stat-compact .cces-stat-value { font-size: 21px; }

.cces-report-table { margin: 0; }
.cces-report-table thead th {
    background: #f6f9f7;
    border-bottom: 2px solid #d8e6dd !important;
    font-size: 12px;
    font-weight: 700;
    color: #1a2433;
    white-space: nowrap;
}
.cces-report-table tbody td { font-size: 13px; color: #44515f; vertical-align: middle; }
.cces-report-table tbody tr:nth-child(even) td { background: #fbfcfb; }
.cces-report-table tfoot th { background: #eef1f5; font-size: 12.5px; }

/* ------------------------------------------------------------ print */
.print-only { display: none; }

@media print {
    .no-print,
    .main-header, .main-sidebar, .main-footer,
    #loader, #preloader, .control-sidebar { display: none !important; }

    .print-only { display: block; }

    body, .content-wrapper, .container-full, .content {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cces-panel, .cces-stat {
        border: 1px solid #bbb !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .cces-print-head { text-align: center; margin-bottom: 16px; }
    .cces-print-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
    .cces-print-head h4 { font-size: 17px; font-weight: 700; margin: 12px 0 2px; }
    .cces-print-head p  { font-size: 12px; margin: 2px 0; color: #444; }
    .cces-print-meta    { font-size: 11px !important; color: #777 !important; }

    .cces-report-table { font-size: 11px; }
    .cces-report-table thead { display: table-header-group; }
    .cces-report-table tr { break-inside: avoid; }

    a[href]:after { content: none !important; }
}

/* ------------------------------------------------ event carousel */
.cces-carousel {
    position: relative;
    margin: -18px -20px 14px;
    overflow: hidden;
    background: #eef1f5;
    border-radius: 12px 12px 0 0;
}

.cces-carousel-track {
    display: flex;
    transition: transform .35s ease;
}

.cces-slide {
    flex: 0 0 100%;
    height: 190px;
}

.cces-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cces-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #1a2433;
    cursor: pointer;
    opacity: 0;
    transition: opacity .16s ease, background .16s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cces-carousel:hover .cces-carousel-nav { opacity: 1; }
.cces-carousel-nav:hover { background: #fff; color: var(--cces-green-dark); }
.cces-carousel-nav.prev { left: 9px; }
.cces-carousel-nav.next { right: 9px; }

.cces-carousel-dots {
    position: absolute;
    bottom: 9px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.cces-dot-nav {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 2px rgba(0, 0, 0, .4);
    transition: background .16s ease, width .16s ease;
}

.cces-dot-nav.is-active { background: #fff; width: 16px; border-radius: 3px; }

/* event meta list */
.cces-event-meta { list-style: none; margin: 0 0 12px; padding: 0; }

.cces-event-meta li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12.5px;
    color: #5c6b7a;
    padding: 2px 0;
}

.cces-event-meta i { color: var(--cces-green); width: 15px; flex: 0 0 15px; margin-top: 2px; }

/* photo manager inside the event modal */
.cces-img-manage { margin-top: 12px; }

.cces-img-manage-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9aa5b1;
    margin: 0 0 7px;
}

.cces-img-row { display: flex; flex-wrap: wrap; gap: 8px; }

.cces-img-thumb {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #e6eaef;
}

.cces-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cces-img-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 19px;
    height: 19px;
    border: 0;
    border-radius: 50%;
    background: rgba(192, 57, 43, .92);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cces-img-remove:hover { background: #c0392b; }

@media print {
    .cces-carousel, .cces-carousel-nav { display: none !important; }
}

/* ------------------------------------------- detail modals (company / user) */
.cd-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #44515f;
    margin: 0;
    white-space: pre-line;
}

/* Initials avatar, shown where a company modal shows its logo. */
.cces-avatar {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--cces-tint);
    color: var(--cces-green-dark);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cces-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.cces-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #d8dee6;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5764 !important;
    background: #fff;
}

.cces-social-link:hover {
    border-color: var(--cces-green);
    color: var(--cces-green-dark) !important;
    background: var(--cces-tint);
}

/* the modal footer holds a link plus the Close button */
.jb-modal-foot .jb-btn { margin-right: auto; }
