/* Forbes Admin - Professional app shell (Google-inspired, clean & navigable) */
:root {
    --sidebar-width: 280px;
    --header-height: 64px;
    --sidebar-bg: #1e293b;
    --sidebar-bg-section: rgba(255,255,255,0.03);
    --sidebar-text: #f1f5f9;
    --sidebar-text-hover: #ffffff;
    --sidebar-hover-bg: rgba(255,255,255,0.08);
    --sidebar-active-bg: rgba(255,255,255,0.14);
    --sidebar-active-border: transparent;
    --sidebar-divider: rgba(148, 163, 184, 0.12);
    --sidebar-icon-bg: rgba(255,255,255,0.08);
    --sidebar-icon-active: rgba(255,255,255,0.2);
    --header-bg: #ffffff;
    --header-shadow: 0 1px 2px rgba(0,0,0,.06);
    --quick-panel-width: 340px;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Attractive accent palette */
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.12);
    --accent: #0891b2;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
}

.app-body {
    font-family: var(--font-sans);
    min-height: 100vh;
    background: var(--surface);
}

/* Use theme primary for primary buttons in app shell */
.app-shell .btn-primary,
.app-shell .btn-primary:hover,
.app-shell .btn-primary:focus {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.app-shell .btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.app-shell .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.app-shell .btn-outline-primary:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.app-shell a:not(.dropdown-item).text-primary,
.app-shell .link-primary {
    color: var(--primary) !important;
}
.app-shell a:not(.dropdown-item).text-primary:hover,
.app-shell .link-primary:hover {
    color: var(--primary-hover) !important;
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    height: var(--header-height);
    background: var(--header-bg);
    box-shadow: var(--header-shadow);
    display: flex;
    align-items: center;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0));
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-sidebar-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.app-sidebar-toggle:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}
.app-brand i {
    color: var(--primary);
    font-size: 1.35rem;
}
.app-brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
    vertical-align: middle;
}
.app-brand-text {
    white-space: nowrap;
}

/* Header search bar - Google-style */
.app-header-search {
    flex: 1;
    max-width: 520px;
    margin-left: 2rem;
    margin-right: 1rem;
}
/* Header: prevent overflow on small screens */
.app-header {
    flex-wrap: nowrap;
    min-width: 0;
}
.app-brand {
    min-width: 0;
    flex-shrink: 0;
}
.app-header-center {
    min-width: 0;
}
@media (max-width: 991.98px) {
    .app-header-search { display: none !important; }
}
.app-header-mobile-menu {
    flex-shrink: 0;
    margin-left: auto;
}
.app-header-actions {
    flex-shrink: 0;
}

/* Mobile header dropdown: search + quick actions + todo + notifications */
.app-header-mobile-dropdown {
    min-width: 280px;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    overflow-y: auto;
    padding: 0.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    margin-top: 0.35rem;
}
.app-header-mobile-dropdown .dropdown-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    padding-left: 1rem;
    padding-right: 1rem;
}
.app-header-mobile-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}
.app-search-form-mobile {
    margin: 0 0.5rem;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.app-search-form-mobile .app-search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.9rem;
}
.app-search-form-mobile .app-search-icon {
    left: 0.75rem;
}
.app-search-form-mobile .app-search-btn {
    margin: 0.2rem;
    padding: 0.35rem 0.6rem;
}
.app-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.app-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.app-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
}
.app-search-input::placeholder {
    color: var(--text-muted);
}
.app-search-btn {
    margin: 0.25rem;
    padding: 0.4rem 0.75rem;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.app-search-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Quick actions dropdown */
.app-header-quick-actions {
    margin-right: 0.5rem;
}
@media (max-width: 575.98px) {
    .app-header-quick-actions { margin-right: 0; }
}
.app-quick-action-btn {
    border-radius: 24px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.app-quick-action-btn:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}
.app-quick-action-btn:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
}
.app-quick-actions-menu {
    min-width: 240px;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    margin-top: 0.5rem;
}
.app-quick-actions-menu .dropdown-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}
.app-quick-actions-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}
.app-quick-actions-menu .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
}
.app-quick-actions-menu .dropdown-item i {
    width: 1.5em;
    text-align: center;
    opacity: 0.9;
}

.app-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    transition: background .2s, color .2s;
}
.app-icon-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.app-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #ef4444;
    color: #fff;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.app-badge:empty,
.app-badge[style*="display: none"] {
    display: none !important;
}

.app-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
}
.app-user-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.app-user-btn::after {
    border-width: 0.2em;
}
.app-header-actions .dropdown .dropdown-toggle::after {
    margin-left: 0.35em;
}
/* Header dropdown menus */
.app-dropdown {
    min-width: 220px;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
    margin-top: 0.5rem;
}
.app-dropdown .dropdown-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}
.app-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.app-dropdown .dropdown-item:hover {
    background: #f1f5f9;
}
.app-dropdown .dropdown-item i {
    width: 1.25em;
    text-align: center;
    opacity: 0.85;
}
.app-dropdown .dropdown-divider {
    margin: 0.35rem 0;
}
.app-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.app-body-wrap {
    display: flex;
    flex: 1;
    min-height: 0; /* allow flex child to shrink */
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

/* Left sidebar: fixed on desktop with own scroll; flex on mobile */
.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    height: 100%;
    padding: 0;
    overflow: hidden;
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    box-shadow: 1px 0 0 var(--border);
}
/* Desktop: fix sidebar to the left, full height, so it stays visible and nav scrolls inside it */
@media (min-width: 992px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        bottom: 0;
        height: calc(100vh - var(--header-height));
        z-index: 1010;
    }
    .app-body-wrap {
        margin-left: var(--sidebar-width);
    }
    .applicant-portal .app-sidebar {
        position: fixed !important;
        left: 0;
        top: var(--header-height);
        bottom: 0;
        height: calc(100vh - var(--header-height)) !important;
        z-index: 1010;
    }
    .applicant-portal .app-body-wrap {
        margin-left: var(--sidebar-width);
    }
    .app-footer {
        margin-left: var(--sidebar-width);
    }
}
.app-sidebar .app-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.app-sidebar .app-nav-scroll::-webkit-scrollbar {
    width: 6px;
}
.app-sidebar .app-nav-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.app-sidebar .app-nav-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.app-sidebar .app-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.app-sidebar .nav-label {
    display: block;
    letter-spacing: 0.06em;
}
.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text) !important;
    border-radius: 0.5rem;
    transition: background .15s ease, color .15s ease;
}
.app-sidebar .nav-link:hover {
    background: var(--surface);
    color: var(--primary-hover) !important;
}
.app-sidebar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 600;
}
.app-sidebar .nav-link i {
    opacity: 0.85;
    width: 1.25em;
    text-align: center;
}
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        bottom: 0;
        z-index: 1010;
        transform: translateX(-100%);
        box-shadow: 8px 0 32px rgba(0,0,0,.12);
    }
    .app-sidebar.is-open {
        transform: translateX(0);
    }
}

.app-main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--surface);
}

.app-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}
/* Mobile: footer full width, no sidebar offset; slightly more horizontal padding for small screens */
@media (max-width: 991.98px) {
    .app-footer {
        margin-left: 0;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Quick panel (slide-out) */
.app-quick-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--quick-panel-width);
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow: hidden;
}
.app-quick-panel.is-open {
    transform: translateX(0);
}

.app-quick-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.app-quick-tabs {
    padding: 0 1rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 0;
}
.app-quick-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0;
}
.app-quick-tabs .nav-link:hover { color: #1e293b; }
.app-quick-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.app-quick-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

#quickTodosList .quick-todo-item,
#quickNotesList .quick-note-item {
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
#quickTodosList .quick-todo-item.done { opacity: .7; text-decoration: line-through; }
.quick-note-item .small { color: #64748b; }

.mini-calendar {
    font-size: 0.9rem;
}
.mini-calendar table { width: 100%; }
.mini-calendar th,
.mini-calendar td {
    text-align: center;
    padding: 0.35rem;
}
.mini-calendar th { color: #64748b; font-weight: 600; }
.mini-calendar td.has-event { background: var(--primary-light); border-radius: 6px; }
.mini-calendar .cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.mini-calendar .cal-nav button {
    border: none;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.mini-calendar .cal-nav button:hover { background: #e2e8f0; color: #1e293b; }

.app-quick-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 1025;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.app-quick-panel-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Floating action button (Todo, Calendar, Notes) - bottom right */
.app-fab-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}
.app-fab-wrap * {
    pointer-events: auto;
}

.app-fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.app-fab-main:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}
.app-fab-main:active {
    transform: scale(0.98);
}
.app-fab-main.expanded .fa-th-large {
    transform: rotate(90deg);
}

.app-fab-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.app-fab-wrap.is-open .app-fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-fab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}
.app-fab-item:hover {
    background: #f1f5f9;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.app-fab-item i {
    font-size: 1.1rem;
    color: var(--primary);
}

@media (max-width: 767px) {
    .app-fab-wrap {
        bottom: max(1rem, env(safe-area-inset-bottom, 0));
        right: max(1rem, env(safe-area-inset-right, 0));
    }
    .app-fab-main {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    .app-fab-item {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* Page content cards in app-main */
.app-main .card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.app-main .page-header h2,
.app-main .dashboard-title {
    font-weight: 700;
    color: #1e293b;
}

/* ========== Dashboard cards – clean, modern ========== */
.app-main .dashboard-header .form-select-sm { font-size: 0.875rem; }

/* Stat cards (top row) */
.app-main .dash-stat {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}
.app-main .dash-stat:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    border-color: #cbd5e1;
}
.app-main .dash-stat .card-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.app-main .dash-stat-text { min-width: 0; }
.app-main .dash-stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.app-main .dash-stat-icon.bg-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color: #fff !important; }
.app-main .dash-stat-icon.bg-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff !important; }
.app-main .dash-stat-icon.bg-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff !important; }
.app-main .dash-stat-icon.bg-info { background: linear-gradient(135deg, var(--accent) 0%, #0e7490 100%); color: #fff !important; }
.app-main .dash-stat-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.app-main .dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Content cards (charts, notifications, tables) */
.app-main .row.g-3 .card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.app-main .row.g-3 .card .card-header.bg-white {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}
.app-main .row.g-3 .card .card-header.bg-white i {
    opacity: 0.9;
}
.app-main .row.g-3 .card .card-body {
    padding: 1.25rem 1.35rem;
}
.app-main .chart-container canvas { max-width: 100%; }

/* Dashboard list groups & tables */
.app-main .row.g-3 .card .list-group-item { border-color: #f1f5f9; }
.app-main .row.g-3 .card .table th { font-size: 0.8125rem; font-weight: 600; color: #64748b; }
.app-main .row.g-3 .card .table td { font-size: 0.875rem; }
.app-main .row.g-3 .card .table-hover tbody tr:hover { background: #f8fafc; }

.app-main .card:hover { transform: none; }

/* Table toolbar (Search/filter + Export) - on pages with tables, pull right */
.table-toolbar { flex-shrink: 0; }
.table-toolbar-btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
}
.table-toolbar-dropdown {
    min-width: 200px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 0.35rem;
}
.table-toolbar-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.table-toolbar-dropdown .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
}
.table-toolbar-dropdown .dropdown-item i {
    width: 1.25em;
    text-align: center;
}

/* Applicant portal: header (no search) and left nav — mobile friendly */
.app-header-applicant {
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: var(--header-height);
}
.app-header-applicant .app-brand-applicant {
    flex: 0 0 auto;
    min-width: 0;
}
.app-header-applicant .app-brand-logo {
    max-width: 140px;
    width: auto;
    height: 36px;
}
.app-header-applicant .app-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
@media (max-width: 575.98px) {
    .app-header-applicant .app-brand-logo {
        max-width: 100px;
        height: 32px;
    }
    .app-header-applicant .app-user-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
/* Applicant portal: ensure left nav is always visible and clearly styled */
.applicant-portal .app-body-wrap {
    display: flex !important;
    flex-direction: row;
}
.applicant-portal .app-sidebar {
    display: flex !important;
    flex-direction: column;
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    flex: 0 0 auto !important;
    background: #fff !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: 1px 0 0 var(--border);
}
.applicant-portal .app-sidebar .app-nav-scroll {
    display: block !important;
    overflow-y: auto;
}
.applicant-portal .app-main {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 991.98px) {
    .applicant-portal .app-sidebar {
        position: fixed !important;
        left: 0;
        top: var(--header-height);
        bottom: 0;
        z-index: 1010;
        transform: translateX(-100%);
        box-shadow: 8px 0 32px rgba(0,0,0,.12);
    }
    .applicant-portal .app-sidebar.is-open {
        transform: translateX(0) !important;
    }
    .applicant-portal .app-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}
