/* ============================================================================
   job-applicant-rail.css — the job-applicant side menu as a narrow rail
   (2026-09-30). Ported from the admissions portal's applicant "rail" theme
   (DEV-IITDAD-ADMISSIONS public/dashboard/css/portal/applicant-portal.css §1).

   Wide screens (xl and up): a 6.75rem column, the photo at the top, each item
   an icon with its label underneath, the section header as a hairline and a
   small word, and "Raise a request" as a small crimson tile at the foot.

   Below xl the vendor's off-canvas drawer is kept exactly as it was: the same
   markup reads there as an ordinary light menu, with the name and address
   beside the photo and a full-width request button.

   Only the job-applicant layout carries .ja-rail, so the student portal —
   which shares portal-skin.css — is untouched. Colours are the palette in
   theme/portal-job-applicant.css; nothing here names a hex value it defines.

   Also here (last section): the top bar beside the rail — its frame and the
   "Recruitment Portal · Hello, name" greeting.
   ========================================================================= */

/* ---- Who is signed in ---------------------------------------------------- */
.ja-rail .ja-who {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 4px 12px 6px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line);
}

.ja-rail .ja-who-photo {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-soft);
    box-shadow: 0 0 0 2px var(--brand-line);
}

/* The initials stand in for a photo the applicant has not uploaded. */
.ja-rail .ja-who-inits {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .02em;
}

.ja-rail .ja-who-text { min-width: 0; }

.ja-rail .ja-who-name,
.ja-rail .ja-who-mail {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ja-rail .ja-who-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ja-rail .ja-who-mail { margin-top: 2px; font-size: 11.5px; color: var(--ink-mute); }

/* ---- Foot: the one way to reach a person -------------------------------- */
.ja-rail .ja-menu-foot {
    margin: auto 12px 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.ja-rail .ja-menu-foot a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ja-rail .ja-menu-foot a:hover { background: var(--brand-dark); color: #ffffff; }
.ja-rail .ja-menu-foot a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- The rail itself (xl and up) ----------------------------------------
   The vendor sizes every item for its 16.25rem menu (a 16.25rem item and a
   1rem side margin on the link), which inside 6.75rem pushed the centred icon
   and label out of view; both are reset before anything is laid out. */
@media (min-width: 1200px) {
    .layout-menu.ja-rail { width: 6.75rem !important; }
    .layout-menu-fixed .layout-menu.ja-rail ~ .layout-page { padding-left: 6.75rem !important; }
    [dir="rtl"] .layout-menu-fixed .layout-menu.ja-rail ~ .layout-page { padding-left: 0 !important; padding-right: 6.75rem !important; }

    .ja-rail .app-brand { padding: 14px 8px 12px; justify-content: center; margin-bottom: 0 !important; height: auto; }
    .ja-rail .app-brand-link { padding: 4px; }
    .ja-rail .app-brand-link img { max-height: 40px; height: auto !important; max-width: 100%; margin: 0 !important; }

    .ja-rail .ja-who { flex-direction: column; margin: 10px 8px 2px; padding: 6px 4px; gap: 4px; background: transparent; box-shadow: none; }
    .ja-rail .ja-who-photo { width: 44px; height: 44px; }
    .ja-rail .ja-who-text { display: none; }

    .ja-rail .menu-inner { padding-inline: 8px; }
    .ja-rail.menu-vertical .menu-inner > .menu-item { width: 100%; min-width: 0; }
    .ja-rail.menu-vertical .menu-inner > .menu-item .menu-link { margin: 0; }
    .ja-rail.menu-vertical .menu-item .menu-link {
        flex-direction: column; align-items: center; justify-content: center; gap: 5px;
        width: 100%; min-width: 0; padding: 10px 4px; text-align: center;
        font-size: 10.5px; font-weight: 700 !important; line-height: 1.2;
    }
    .ja-rail.menu-vertical .menu-item .menu-link > div {
        display: block; width: 100%; max-width: 100%; flex: 0 0 auto;
        white-space: normal; overflow-wrap: anywhere;
    }
    .ja-rail.menu-vertical .menu-item .menu-link .menu-icon { margin: 0; font-size: 24px; line-height: 1; }
    .ja-rail.menu-vertical .menu-item.active > .menu-link { box-shadow: inset 0 0 0 1px var(--brand-line) !important; }
    .ja-rail.menu-vertical .menu-item.active > .menu-link::before { display: none; }

    /* The template sizes headings like items (16.25rem); without the same reset
       the header was centred in a 260px box outside the narrow column. A hairline
       and a small word mark the break between the two groups. */
    .ja-rail.menu-vertical .menu-inner > .menu-header { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    .bg-menu-theme.ja-rail .menu-header,
    .bg-menu-theme.ja-rail .menu-header .menu-header-text {
        margin: 8px 0 0; padding: 12px 2px 4px; text-align: center; font-size: 9px !important; letter-spacing: .06em;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .bg-menu-theme.ja-rail .menu-header { border-top: 1px solid var(--line); }
    .bg-menu-theme.ja-rail .menu-header .menu-header-text { margin: 0; padding: 0; border: 0; }

    .ja-rail .ja-menu-foot { margin-inline: 8px; padding-top: 10px; }
    .ja-rail .ja-menu-foot a {
        display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 8px 2px; font-size: 9.5px; line-height: 1.25;
    }
    .ja-rail .ja-menu-foot a .bx { font-size: 20px; }
}

/* ---- Top bar (job-applicant layout only: the sibling of the .ja-rail aside) ----
   A white bar with a thin crimson rule along its top edge and a soft lift, and
   the greeting as a briefcase tile + a small crimson label over the name. */
.layout-menu.ja-rail ~ .layout-page .layout-navbar.navbar-detached {
    /* No overflow:hidden — the bell and user dropdowns open out of this bar. */
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(var(--surface), var(--surface)) !important;
    box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .04), 0 10px 26px -14px rgba(var(--shadow-rgb), .22) !important;
}
.layout-menu.ja-rail ~ .layout-page .layout-navbar.navbar-detached::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(var(--brand, #a41e22), var(--brand, #a41e22));
}

.jp-navbar-hello { align-items: center; gap: 12px; line-height: 1.25; }
.jp-hello-ic {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(var(--brand, #a41e22), var(--brand, #a41e22));
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 6px 14px -6px rgba(var(--brand-rgb), .6);
}
.jp-hello-tx { display: flex; flex-direction: column; min-width: 0; }
.jp-navbar-hello .jp-hello-tx small {
    font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand);
}
.jp-navbar-hello .jp-hello-tx b {
    font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Typable dates (erp-datepicker.js): the reason a typed date was refused,
   right under its box, in the error tone. */
.fp-erp-err {
    margin-top: 6px;
    font-size: 12.5px; font-weight: 700; line-height: 1.4;
    color: var(--bad);
}

/* The initials on the crimson avatar inside the user dropdown's header stay
   white. portal-skin.css darkens every <span> in that header (!important) for
   the name and role lines; this one class more wins for the avatar alone. */
.dropdown-user .dropdown-menu > li:first-child > .dropdown-item .jp-avatar-initials {
    color: #ffffff !important;
}

/* ---- Notification dropdown (.ja-noti, 2026-09-30) ----------------------
   The crimson band of the dashboard hero as its header, each notice as a
   quiet row that tints on hover, the unread dot with a soft halo, and the
   footer button as a light crimson pill rather than a heavy block. */
.layout-navbar .dropdown-notifications .dropdown-menu.ja-noti {
    width: 380px; max-width: calc(100vw - 32px);
    padding: 0 !important; overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: 0 2px 4px rgba(var(--shadow-rgb), .04), 0 22px 44px -18px rgba(var(--shadow-rgb), .35) !important;
}
.ja-noti .dropdown-menu-header { border-bottom: 0 !important; }
.ja-noti .dropdown-menu-header .dropdown-header {
    position: relative; gap: 12px;
    padding: 16px 18px !important;
    background: linear-gradient(var(--brand, #a41e22), var(--brand, #a41e22));
}
.ja-noti .ja-noti-ic {
    flex: 0 0 auto; width: 34px; height: 34px;
    display: grid; place-items: center; border-radius: 10px;
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
    color: #ffffff; font-size: 18px;
}
.ja-noti .dropdown-menu-header h5 {
    font-size: 15px !important; font-weight: 800 !important; letter-spacing: .01em;
    color: #ffffff !important;
}
.ja-noti .dropdown-notifications-all {
    width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #ffffff !important;
    transition: background-color .15s ease;
}
.ja-noti .dropdown-notifications-all i { font-size: 18px !important; }
.ja-noti .dropdown-notifications-all:hover,
.ja-noti .dropdown-notifications-all:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }

.ja-noti .dropdown-notifications-list { max-height: 360px; }
.ja-noti .dropdown-notifications-item {
    padding: 14px 18px !important;
    border: 0 !important; border-bottom: 1px solid var(--line) !important;
    background: var(--surface);
    transition: background-color .15s ease;
}
.ja-noti .dropdown-notifications-item:last-child { border-bottom: 0 !important; }
.ja-noti .dropdown-notifications-item:hover { background: var(--brand-soft) !important; }
.ja-noti .dropdown-notifications-item .avatar img {
    width: 40px !important; height: 40px !important; object-fit: contain;
    padding: 3px; background: #ffffff;
    box-shadow: 0 0 0 1px var(--brand-line), 0 3px 8px -4px rgba(var(--shadow-rgb), .3);
}
.ja-noti .dropdown-notifications-item h6 {
    margin-bottom: 3px !important;
    font-size: 13.5px !important; font-weight: 700 !important; color: var(--ink) !important;
}
.ja-noti .dropdown-notifications-item p {
    font-size: 12.5px !important; line-height: 1.5; color: var(--ink-soft) !important;
}
.ja-noti .ja-noti-time {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
    font-size: 11.5px; font-weight: 600; color: var(--ink-mute) !important; font-variant-numeric: tabular-nums;
}
.ja-noti .ja-noti-time i { font-size: 13px; }
.ja-noti .dropdown-notifications-actions { padding-inline-start: 10px; }
.ja-noti .dropdown-notifications-read .badge-dot {
    width: 9px; height: 9px; background: var(--brand) !important;
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.ja-noti .dropdown-menu-footer {
    border-top: 1px solid var(--line) !important;
    padding: 12px 14px !important;
    background: var(--surface-alt);
}
.ja-noti .dropdown-menu-footer .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 14px !important;
    border-radius: 10px !important; border: 1px solid var(--brand-line) !important;
    background: var(--brand-soft) !important; color: var(--brand-dark) !important;
    font-size: 12px !important; font-weight: 800 !important; letter-spacing: .08em;
    box-shadow: none !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ja-noti .dropdown-menu-footer .btn i { font-size: 17px; transition: transform .15s ease; }
.ja-noti .dropdown-menu-footer .btn:hover,
.ja-noti .dropdown-menu-footer .btn:focus-visible {
    background: var(--brand) !important; border-color: var(--brand) !important; color: #ffffff !important;
}
.ja-noti .dropdown-menu-footer .btn:hover i { transform: translateX(3px); }

@media (max-width: 575px) {
    .ja-noti .dropdown-notifications-item { padding: 12px 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .ja-rail .ja-menu-foot a { transition: none; }
    .ja-noti .dropdown-notifications-item, .ja-noti .dropdown-notifications-all,
    .ja-noti .dropdown-menu-footer .btn, .ja-noti .dropdown-menu-footer .btn i { transition: none; }
    .ja-noti .dropdown-menu-footer .btn:hover i { transform: none; }
}
