/**
 * Job Listings Manager - Frontend Styles
 * Version: 2.7.0 - 2026-10-04 22:47 - Access-roles picker, self-test results, application delete
 */

/* ============================================
   Variables
   ============================================ */
:root {
    --jlm-primary: #0B1D3A;
    --jlm-primary-light: #1258C2;   /* decorative accents only — NOT for text/buttons on white */
    --jlm-primary-lighter: #e8eef8;
    /* AAA-verified text/background pairs */
    --jlm-blue-aaa: #1d4289;        /* AAA with #fff text; AAA as text on #fff */
    --jlm-navy-aaa: #1b365d;        /* AAA with #fff text; AAA as text on #fff */
    --jlm-danger-aaa: #991b1b;      /* AAA with #fff text */
    --jlm-danger-aaa-dark: #7f1d1d;
    --jlm-success-aaa: #065f46;     /* AAA with #fff text */
    --jlm-accent: #E8A838;
    --jlm-success: #2ECC71;
    --jlm-warning: #F39C12;
    --jlm-danger: #E74C3C;
    --jlm-info: #3498DB;
    --jlm-purple: #8E44AD;
    --jlm-gray: #6B7280;
    --jlm-gray-light: #9CA3AF;
    --jlm-teal: #16A085;
    --jlm-text: #1F2937;
    --jlm-text-light: #4B5563;
    --jlm-text-muted: #6B7280;
    --jlm-bg: #ffffff;
    --jlm-bg-light: #F3F4F6;
    --jlm-bg-card: #ffffff;
    --jlm-border: #E5E7EB;
    --jlm-border-light: #F3F4F6;
    --jlm-radius: 12px;
    --jlm-radius-sm: 8px;
    --jlm-shadow: 0 1px 3px rgba(11,29,58,0.08), 0 1px 2px rgba(11,29,58,0.05);
    --jlm-shadow-md: 0 6px 16px rgba(11,29,58,0.09), 0 2px 4px rgba(11,29,58,0.05);
    --jlm-shadow-lg: 0 16px 40px rgba(11,29,58,0.14), 0 4px 10px rgba(11,29,58,0.06);
    --jlm-focus-ring: 0 0 0 3px rgba(29,66,137,0.35);
}

/* ---- Theme-proof base: font + text rendering ---- */
.jlm-admin-container,
.jlm-admin-container *,
.jlm-modal-container,
.jlm-modal-container *,
.jlm-listings-container,
.jlm-toast {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.jlm-modal-container h3,
.jlm-admin-heading h2 {
    color: var(--jlm-primary) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Theme-proof form fields inside plugin UI */
.jlm-modal-container input[type="text"],
.jlm-modal-container input[type="url"],
.jlm-modal-container input[type="email"],
.jlm-modal-container input[type="search"],
.jlm-modal-container textarea,
.jlm-modal-container select,
.jlm-admin-container input[type="search"],
.jlm-admin-container select {
    background: #ffffff !important;
    color: #1F2937 !important;
    border: 1px solid #cbd2dc !important;
    border-radius: var(--jlm-radius-sm) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.jlm-modal-container input:focus,
.jlm-modal-container textarea:focus,
.jlm-modal-container select:focus,
.jlm-admin-container input[type="search"]:focus,
.jlm-admin-container select:focus {
    outline: none !important;
    border-color: var(--jlm-blue-aaa) !important;
    box-shadow: var(--jlm-focus-ring) !important;
}

/* ---- Inline SVG icons (functional UI — no emoji) ---- */
.jlm-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: -2px;
}
.jlm-svg-sm { width: 13px; height: 13px; }
.jlm-svg-lg { width: 18px; height: 18px; }

/* ============================================
   Loading & Spinner
   ============================================ */
.jlm-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--jlm-text-muted);
    font-size: 15px;
}

.jlm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--jlm-border);
    border-top-color: var(--jlm-primary-light);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: jlm-spin 0.7s linear infinite;
}

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

/* ============================================
   PUBLIC JOB LISTINGS
   ============================================ */
.jlm-listings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

/* ---- Listings Header ---- */
.jlm-listings-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 26px 0;
    padding: 0 4px;
}

.jlm-listings-count {
    display: inline-flex;
    align-items: center;
    background: var(--jlm-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.jlm-listings-intro {
    margin: 0 !important;
    font-size: 15px;
    color: var(--jlm-text-light);
}

/* ---- Job Card ---- */
.jlm-job-card {
    background: var(--jlm-bg-card) !important;
    border: 1px solid var(--jlm-border);
    border-radius: 16px;
    margin: 0 0 30px 0;
    overflow: hidden;
    box-shadow: var(--jlm-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.jlm-job-card:hover { border-color: #c5d5ed; }

.jlm-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--jlm-primary) 0%, var(--jlm-primary-light) 100%);
}

.jlm-job-card:hover {
    box-shadow: var(--jlm-shadow-md);
    transform: translateY(-2px);
}

.jlm-job-card-header {
    padding: 28px 30px 0 30px;
}

.jlm-job-title {
    color: var(--jlm-primary) !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    border: none !important;
}

/* ---- Badges ---- */
.jlm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.jlm-badge {
    display: inline-flex !important;
    align-items: center !important;
    color: #fff !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: none !important;
}

/* ---- Meta Info Bar ---- */
.jlm-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    background: transparent;
    border: none;
}

.jlm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--jlm-text);
    font-weight: 600;
    white-space: nowrap;
    background: var(--jlm-bg-light);
    border: 1px solid var(--jlm-border);
    border-radius: 20px;
    padding: 7px 14px;
}

.jlm-meta-icon {
    display: inline-flex;
    color: var(--jlm-blue-aaa);
    line-height: 1;
}

.jlm-meta-sep { display: none; }

/* ---- Job Body ---- */
.jlm-job-card-body {
    padding: 22px 30px 8px 30px;
}

.jlm-job-description {
    color: var(--jlm-text-light) !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin: 0 0 8px 0 !important;
}

/* ---- Read More ---- */
.jlm-desc-wrap {
    margin-bottom: 8px;
}

.jlm-read-more-btn {
    background: transparent !important;
    border: none !important;
    color: var(--jlm-blue-aaa) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
    margin-top: 2px;
    display: inline-block;
}

.jlm-read-more-btn:hover {
    background: transparent !important;
    color: var(--jlm-primary) !important;
    text-decoration: underline !important;
}

.jlm-read-more-btn:focus-visible {
    background: transparent !important;
    color: var(--jlm-primary) !important;
    outline: 2px solid var(--jlm-blue-aaa) !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* ---- Collapsible Sections ---- */
.jlm-job-section {
    border-top: 1px solid var(--jlm-border);
    padding: 0;
    margin-top: 4px;
}

.jlm-job-section:first-child {
    border-top: none;
}

.jlm-job-section-heading {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.jlm-job-section-title,
button.jlm-job-section-title {
    /* Button reset — this is a real <button> for keyboard access */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    text-align: left !important;
    font-family: inherit !important;
    color: var(--jlm-primary) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    cursor: pointer !important;
    user-select: none;
    padding: 14px 0 !important;
    transition: color 0.15s ease;
}

.jlm-job-section-title:focus-visible,
button.jlm-job-section-title:focus-visible {
    color: var(--jlm-blue-aaa) !important;
    outline: 2px solid var(--jlm-blue-aaa) !important;
    outline-offset: 2px !important;
    border-radius: 6px;
}

.jlm-job-section-title:hover {
    color: var(--jlm-blue-aaa) !important;
}

.jlm-section-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.jlm-section-label {
    flex: 1;
}

.jlm-job-section-title .jlm-toggle-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
    color: var(--jlm-gray-light);
    flex-shrink: 0;
    margin-left: auto;
}

.jlm-job-section-title .jlm-toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.jlm-job-section-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding: 0 0 12px 28px;
}

.jlm-job-section-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-bottom: 0;
}

.jlm-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--jlm-primary-lighter);
    flex-shrink: 0;
}

.jlm-section-icon .jlm-svg {
    color: var(--jlm-blue-aaa);
    width: 15px;
    height: 15px;
}

.jlm-job-subsection-title {
    color: var(--jlm-blue-aaa) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 14px 0 6px 0 !important;
}

.jlm-job-list {
    color: var(--jlm-text-light) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 0 0 22px !important;
    list-style: none !important;
}

.jlm-job-list li {
    position: relative;
    margin-bottom: 6px !important;
    padding-left: 4px !important;
}

.jlm-job-list li::before {
    content: '' !important;
    position: absolute !important;
    left: -16px !important;
    top: 10px !important;
    width: 6px !important;
    height: 6px !important;
    background: var(--jlm-primary-light) !important;
    border-radius: 50% !important;
}

.jlm-job-note {
    color: var(--jlm-text-light);
    font-size: 14px;
    line-height: 1.75;
    margin: 4px 0 8px 0;
}

.jlm-job-note strong {
    color: var(--jlm-text);
}

/* ============================================
   HOW TO APPLY BOX
   ============================================ */
.jlm-apply-box {
    background: linear-gradient(135deg, #0B1D3A 0%, #1b365d 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    margin: 20px 30px 0 30px;
    padding: 26px 30px;
}

.jlm-apply-box-title {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jlm-apply-box-title .jlm-icon {
    display: inline-flex;
    color: #ffc845; /* AAA on #1b365d per verified chart */
}

.jlm-apply-instructions {
    color: #d0d3d4 !important; /* AAA on #1b365d per verified chart */
    font-size: 14px !important;
    line-height: 1.75 !important;
    margin: 0 0 16px 0 !important;
}

.jlm-apply-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.jlm-apply-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--jlm-text);
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.jlm-apply-contact-item .jlm-ci-icon { color: var(--jlm-blue-aaa); }

.jlm-apply-contact-item .jlm-ci-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 16px;
    margin-top: 1px;
}

.jlm-apply-contact-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jlm-text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

/* LVHA order: link → visited → hover → active */
.jlm-apply-contact-item a:link,
.jlm-apply-contact-item a {
    color: var(--jlm-blue-aaa) !important;
    text-decoration: none !important;
    word-break: break-word;
}

.jlm-apply-contact-item a:visited {
    color: var(--jlm-blue-aaa) !important;
}

.jlm-apply-contact-item a:hover {
    color: var(--jlm-primary) !important;
    text-decoration: underline !important;
}

.jlm-apply-contact-item a:active {
    color: var(--jlm-primary) !important;
    text-decoration: underline !important;
}

.jlm-apply-deadline {
    font-size: 13px;
    color: #ffc845 !important; /* AAA on navy panel */
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   APPLY / SUBMIT BUTTONS — Theme-proof
   ============================================ */
.jlm-apply-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* Primary Apply / Submit button — gold CTA, AAA navy text */
.jlm-apply-btn,
a.jlm-apply-btn,
button.jlm-apply-btn,
.jlm-job-card .jlm-apply-btn,
.jlm-apply-box .jlm-apply-btn,
.jlm-application-form .jlm-apply-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f2c75c !important;
    background-color: #f2c75c !important;
    color: #1b365d !important;
    padding: 13px 30px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* LVHA order: link → visited → hover → active */
a.jlm-apply-btn:visited {
    background: #f2c75c !important;
    background-color: #f2c75c !important;
    color: #1b365d !important;
}

.jlm-apply-btn:hover,
a.jlm-apply-btn:hover,
button.jlm-apply-btn:hover,
.jlm-job-card .jlm-apply-btn:hover,
.jlm-apply-box .jlm-apply-btn:hover,
.jlm-application-form .jlm-apply-btn:hover {
    background: #ffc845 !important; /* AAA with #1b365d */
    background-color: #ffc845 !important;
    color: #1b365d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
}

.jlm-apply-btn:focus,
a.jlm-apply-btn:focus,
button.jlm-apply-btn:focus,
.jlm-apply-btn:focus-visible,
a.jlm-apply-btn:focus-visible,
button.jlm-apply-btn:focus-visible {
    background: #ffc845 !important;
    background-color: #ffc845 !important;
    color: #1b365d !important;
    outline: 2px solid #ffc845 !important;
    outline-offset: 3px !important;
}

.jlm-apply-btn:active,
a.jlm-apply-btn:active,
button.jlm-apply-btn:active {
    background: #e0b04a !important;
    background-color: #e0b04a !important;
    color: #1b365d !important;
    transform: translateY(0) !important;
}

.jlm-apply-btn:disabled,
button.jlm-apply-btn:disabled {
    background: #4B5563 !important;
    background-color: #4B5563 !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Outline variant — white outline for use on the navy apply panel. LVHA order. */
.jlm-apply-btn-outline,
a.jlm-apply-btn-outline,
a.jlm-apply-btn-outline:link {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
    padding: 11px 28px !important;
}

a.jlm-apply-btn-outline:visited {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.jlm-apply-btn-outline:hover,
a.jlm-apply-btn-outline:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1b365d !important;
    border-color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.jlm-apply-btn-outline:focus,
a.jlm-apply-btn-outline:focus,
.jlm-apply-btn-outline:focus-visible,
a.jlm-apply-btn-outline:focus-visible {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1b365d !important;
    outline: 2px solid #ffffff !important;
    outline-offset: 3px !important;
}

.jlm-apply-btn-outline:active,
a.jlm-apply-btn-outline:active {
    background: #d0d3d4 !important;
    background-color: #d0d3d4 !important;
    color: #1b365d !important;
    border-color: #d0d3d4 !important;
}

/* ---- Card Footer ---- */
.jlm-job-card-footer {
    padding: 0 0 28px 0;
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.jlm-application-form {
    margin: 20px 30px 0 30px;
    background: #ffffff !important;
    border: 1px solid var(--jlm-border) !important;
    border-top: 4px solid #f2c75c !important;
    border-radius: 14px;
    padding: 26px 30px;
    box-shadow: var(--jlm-shadow-md);
}

.jlm-application-form-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--jlm-primary) !important;
    margin: 0 0 16px 0 !important;
}

.jlm-app-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.jlm-app-form-group {
    margin-bottom: 14px;
}

.jlm-app-form-group label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jlm-text) !important;
    margin-bottom: 5px !important;
}

.jlm-app-form-group input,
.jlm-app-form-group textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid var(--jlm-border) !important;
    border-radius: var(--jlm-radius-sm) !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: var(--jlm-text) !important;
}

.jlm-app-form-group input:focus,
.jlm-app-form-group textarea:focus {
    outline: none !important;
    border-color: var(--jlm-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(18,88,194,0.12) !important;
}

.jlm-app-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.jlm-app-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 12px;
}

.jlm-app-privacy {
    font-size: 12px;
    color: var(--jlm-text-muted);
    flex: 1;
}

.jlm-app-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
    padding: 16px 20px !important;
    border-radius: var(--jlm-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center;
}

.jlm-app-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    padding: 10px 16px !important;
    border-radius: var(--jlm-radius-sm) !important;
    font-size: 13px !important;
    margin-bottom: 12px;
}

/* ---- Auto-formatted Description Sections ---- */
.jlm-job-card-body .jlm-job-description {
    margin-bottom: 14px !important;
}

.jlm-job-card-body .jlm-job-description:last-child {
    margin-bottom: 8px !important;
}

.jlm-auto-apply-section {
    background: linear-gradient(135deg, #0B1D3A 0%, #1b365d 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 24px 28px !important;
    margin-top: 20px;
}

.jlm-auto-apply-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jlm-auto-apply-title .jlm-svg { color: #ffc845; }

.jlm-auto-apply-section .jlm-job-description {
    color: #d0d3d4 !important; /* AAA on navy */
}

.jlm-auto-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.jlm-auto-contact-card,
a.jlm-auto-contact-card,
a.jlm-auto-contact-card:link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
    border-radius: var(--jlm-radius-sm) !important;
    padding: 10px 16px !important;
    color: #1d4289 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}

a.jlm-auto-contact-card:visited {
    background: #ffffff !important;
    color: #1d4289 !important;
}

a.jlm-auto-contact-card:hover {
    background: #1d4289 !important;
    color: #ffffff !important;
    border-color: #1d4289 !important;
    box-shadow: var(--jlm-shadow) !important;
    text-decoration: none !important;
}

a.jlm-auto-contact-card:focus-visible {
    background: #1d4289 !important;
    color: #ffffff !important;
    outline: 2px solid #1d4289 !important;
    outline-offset: 2px !important;
}

a.jlm-auto-contact-card:active {
    background: #1b365d !important;
    color: #ffffff !important;
    border-color: #1b365d !important;
}

.jlm-auto-contact-icon {
    font-size: 16px;
    line-height: 1;
}

.jlm-auto-li {
    color: var(--jlm-text-light) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 6px !important;
    margin-left: 20px !important;
    list-style: disc !important;
}

/* ---- No Jobs ---- */
.jlm-no-jobs {
    text-align: center;
    padding: 80px 20px;
    background: var(--jlm-bg-light);
    border: 1px dashed var(--jlm-border);
    border-radius: var(--jlm-radius);
    color: var(--jlm-text-muted);
}

.jlm-no-jobs p {
    margin: 8px 0;
}

/* ============================================
   ADMIN INTERFACE
   ============================================ */
.jlm-admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jlm-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.jlm-admin-header h2 {
    margin: 0;
    color: var(--jlm-primary);
    font-size: 24px;
}

.jlm-admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jlm-admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.jlm-admin-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    font-size: 14px;
    min-width: 150px;
}

/* ---- Admin heading ---- */
.jlm-admin-heading h2 { margin: 0 0 2px 0; }
.jlm-admin-subtitle { margin: 0; font-size: 14px; color: var(--jlm-text-light); }

.jlm-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Stat Cards ---- */
.jlm-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.jlm-stat-card {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius);
    padding: 18px 20px;
    box-shadow: var(--jlm-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jlm-stat-card:hover { box-shadow: var(--jlm-shadow-md); transform: translateY(-2px); }

.jlm-stat-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
/* AAA icon-on-tint pairs */
.jlm-stat-icon-blue   { background: #e8eef8; color: #1d4289; }
.jlm-stat-icon-green  { background: #d1fae5; color: #065f46; }
.jlm-stat-icon-gold   { background: #fef3c7; color: #92400e; }
.jlm-stat-icon-purple { background: #ede9fe; color: #4c1d95; }

.jlm-stat-body { display: flex; flex-direction: column; }
.jlm-stat-number { font-size: 26px; font-weight: 800; color: var(--jlm-primary); line-height: 1.1; }
.jlm-stat-label { font-size: 13px; font-weight: 500; color: var(--jlm-text-light); }

/* ---- Search ---- */
.jlm-search-wrap { position: relative; flex: 1; min-width: 220px; }
.jlm-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--jlm-text-muted); pointer-events: none;
}
.jlm-search-wrap input[type="search"] {
    width: 100%; box-sizing: border-box;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    font-size: 14px;
    background: #ffffff; color: var(--jlm-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jlm-search-wrap input[type="search"]:focus {
    outline: none; border-color: var(--jlm-blue-aaa); box-shadow: var(--jlm-focus-ring);
}

/* ---- Jobs Table ---- */
.jlm-table-wrap {
    background: #ffffff;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius);
    box-shadow: var(--jlm-shadow);
    overflow-x: auto;
}

.jlm-jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.jlm-jobs-table thead th {
    background: var(--jlm-primary);
    color: #ffffff; /* AAA on navy */
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 16px;
    white-space: nowrap;
}

.jlm-jobs-table thead th:first-child { border-radius: var(--jlm-radius) 0 0 0; }
.jlm-jobs-table thead th:last-child { border-radius: 0 var(--jlm-radius) 0 0; }
.jlm-th-num, .jlm-td-num { text-align: center !important; }
.jlm-th-actions, .jlm-td-actions { text-align: right !important; }
.jlm-th-order { width: 40px; }

.jlm-jobs-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--jlm-border-light);
    color: var(--jlm-text-light);
    vertical-align: middle;
}

.jlm-jobs-table tbody tr:last-child td { border-bottom: none; }
.jlm-jobs-table tbody tr { transition: background-color 0.15s ease; }
.jlm-jobs-table tbody tr:hover td { background: #f8fafc; }

tr.jlm-status-draft td:nth-child(2) { box-shadow: inset 3px 0 0 var(--jlm-warning); }
tr.jlm-status-closed { opacity: 0.6; }

.jlm-cell-title { display: block; font-weight: 700; color: var(--jlm-blue-aaa); font-size: 14px; }
.jlm-cell-sub { display: block; font-size: 12px; color: var(--jlm-text-muted); margin-top: 2px; }
.jlm-cell-date { white-space: nowrap; font-size: 13px; }

/* Type badge — AAA: white on #1d4289 */
.jlm-type-badge {
    display: inline-block;
    background: var(--jlm-blue-aaa);
    color: #ffffff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.jlm-app-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 26px; padding: 0 6px;
    border-radius: 13px;
    background: var(--jlm-bg-light); color: var(--jlm-text-light);
    font-size: 12px; font-weight: 700;
}
.jlm-app-count-has { background: #e8eef8; color: #1d4289; }
/* AIMH v4.10.4: the count opens that job's applications */
button.jlm-app-count { border: 0; cursor: pointer; font-family: inherit; line-height: 1; }
button.jlm-app-count:hover { background: #1d4289; color: #fff; }
button.jlm-app-count:focus-visible, .jlm-stat-card-link:focus-visible, .jlm-sort:focus-visible { outline: 3px solid #1d4289; outline-offset: 2px; }
.jlm-stat-card-link { cursor: pointer; }
.jlm-stat-card-link:hover { box-shadow: 0 6px 18px rgba(29, 66, 137, .14); transform: translateY(-1px); }
.jlm-apps-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.jlm-apps-toolbar .jlm-apps-search { flex: 1 1 240px; }
.jlm-apps-toolbar input, .jlm-apps-toolbar select { min-height: 40px; padding: 8px 12px; border: 1px solid var(--jlm-border); border-radius: 8px; font-size: 14px; background: #fff; color: var(--jlm-text); }
.jlm-apps-toolbar select { flex: 0 1 220px; }
.jlm-applications-table th .jlm-sort { all: unset; cursor: pointer; font-weight: 600; color: var(--jlm-text); display: inline-flex; align-items: center; gap: 2px; }
.jlm-applications-table th .jlm-sort:hover { color: #1d4289; }
.jlm-sort-ind { font-size: 11px; color: var(--jlm-text-muted); }
.jlm-app-status-select { border: 0; border-radius: 12px; padding: 4px 8px; font-size: 12px; font-weight: 600; cursor: pointer; }

.jlm-results-count { font-size: 13px; color: var(--jlm-text-muted); margin: 12px 4px 0; }

.jlm-job-row-actions {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   APPLICATIONS TABLE (Admin Modal)
   ============================================ */
.jlm-applications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.jlm-applications-table th {
    background: var(--jlm-bg-light);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--jlm-text);
    border-bottom: 2px solid var(--jlm-border);
}

.jlm-applications-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--jlm-border-light);
    color: var(--jlm-text-light);
    vertical-align: top;
}

.jlm-applications-table tr:hover td {
    background: var(--jlm-bg-light);
}

.jlm-app-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.jlm-app-status-new { background: #dbeafe; color: #1e40af; }
.jlm-app-status-reviewed { background: #fef3c7; color: #92400e; }
.jlm-app-status-contacted { background: #d1fae5; color: #065f46; }
.jlm-app-status-rejected { background: #fecaca; color: #991b1b; }

/* ============================================
   BUTTONS (Admin)
   ============================================ */
.jlm-btn,
button.jlm-btn,
a.jlm-btn,
.jlm-modal .jlm-btn,
.jlm-admin-container .jlm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 9px 18px !important;
    border-radius: var(--jlm-radius-sm) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
}

.jlm-btn:active { transform: translateY(1px) !important; }

/* Primary — navy base, AAA blue hover. Both bg + text declared in every state. */
.jlm-btn-primary,
button.jlm-btn-primary,
.jlm-modal .jlm-btn-primary { background: #0B1D3A !important; background-color: #0B1D3A !important; color: #ffffff !important; border-color: #0B1D3A !important; box-shadow: 0 2px 6px rgba(11,29,58,0.25) !important; }
.jlm-btn-primary:hover,
button.jlm-btn-primary:hover { background: #1d4289 !important; background-color: #1d4289 !important; color: #ffffff !important; border-color: #1d4289 !important; box-shadow: 0 4px 12px rgba(29,66,137,0.35) !important; }
.jlm-btn-primary:focus,
.jlm-btn-primary:focus-visible,
button.jlm-btn-primary:focus,
button.jlm-btn-primary:focus-visible { background: #1d4289 !important; background-color: #1d4289 !important; color: #ffffff !important; border-color: #1d4289 !important; outline: 2px solid #1d4289 !important; outline-offset: 3px !important; }
.jlm-btn-primary:active,
button.jlm-btn-primary:active { background: #091528 !important; background-color: #091528 !important; color: #ffffff !important; border-color: #091528 !important; }
.jlm-btn-primary:disabled,
button.jlm-btn-primary:disabled { background: #4B5563 !important; background-color: #4B5563 !important; color: #ffffff !important; border-color: #4B5563 !important; cursor: not-allowed !important; box-shadow: none !important; }

/* Secondary — white base, navy text */
.jlm-btn-secondary,
button.jlm-btn-secondary,
.jlm-modal .jlm-btn-secondary { background: #ffffff !important; background-color: #ffffff !important; color: #1F2937 !important; border-color: #cbd2dc !important; }
.jlm-btn-secondary:hover,
button.jlm-btn-secondary:hover { background: #1b365d !important; background-color: #1b365d !important; color: #ffffff !important; border-color: #1b365d !important; }
.jlm-btn-secondary:focus,
.jlm-btn-secondary:focus-visible,
button.jlm-btn-secondary:focus,
button.jlm-btn-secondary:focus-visible { background: #1b365d !important; background-color: #1b365d !important; color: #ffffff !important; border-color: #1b365d !important; outline: 2px solid #1d4289 !important; outline-offset: 2px !important; }
.jlm-btn-secondary:active,
button.jlm-btn-secondary:active { background: #0B1D3A !important; background-color: #0B1D3A !important; color: #ffffff !important; border-color: #0B1D3A !important; }
.jlm-btn-secondary:disabled,
button.jlm-btn-secondary:disabled { background: #F3F4F6 !important; background-color: #F3F4F6 !important; color: #6B7280 !important; border-color: #E5E7EB !important; cursor: not-allowed !important; }

/* Danger — restyled navy outline (no red buttons per design standard).
   Kept class name for backward compatibility; destructive intent conveyed by label + confirm modal. */
.jlm-btn-danger,
button.jlm-btn-danger,
.jlm-modal .jlm-btn-danger { background: #ffffff !important; background-color: #ffffff !important; color: #1b365d !important; border-color: #1b365d !important; }
.jlm-btn-danger:hover,
button.jlm-btn-danger:hover { background: #1b365d !important; background-color: #1b365d !important; color: #ffffff !important; border-color: #1b365d !important; }
.jlm-btn-danger:focus,
.jlm-btn-danger:focus-visible,
button.jlm-btn-danger:focus,
button.jlm-btn-danger:focus-visible { background: #1b365d !important; background-color: #1b365d !important; color: #ffffff !important; border-color: #1b365d !important; outline: 2px solid #1d4289 !important; outline-offset: 2px !important; }
.jlm-btn-danger:active,
button.jlm-btn-danger:active { background: #0B1D3A !important; background-color: #0B1D3A !important; color: #ffffff !important; border-color: #0B1D3A !important; }
.jlm-btn-danger:disabled,
button.jlm-btn-danger:disabled { background: #F3F4F6 !important; background-color: #F3F4F6 !important; color: #6B7280 !important; border-color: #E5E7EB !important; cursor: not-allowed !important; }

/* Success — AAA dark green CTA */
.jlm-btn-success,
button.jlm-btn-success,
.jlm-modal .jlm-btn-success { background: #065f46 !important; background-color: #065f46 !important; color: #ffffff !important; border-color: #065f46 !important; box-shadow: 0 2px 6px rgba(6,95,70,0.25) !important; }
.jlm-btn-success:hover,
button.jlm-btn-success:hover { background: #054c38 !important; background-color: #054c38 !important; color: #ffffff !important; border-color: #054c38 !important; box-shadow: 0 4px 12px rgba(6,95,70,0.35) !important; }
.jlm-btn-success:focus,
.jlm-btn-success:focus-visible,
button.jlm-btn-success:focus,
button.jlm-btn-success:focus-visible { background: #054c38 !important; background-color: #054c38 !important; color: #ffffff !important; border-color: #054c38 !important; outline: 2px solid #065f46 !important; outline-offset: 3px !important; }
.jlm-btn-success:active,
button.jlm-btn-success:active { background: #043c2d !important; background-color: #043c2d !important; color: #ffffff !important; border-color: #043c2d !important; }
.jlm-btn-success:disabled,
button.jlm-btn-success:disabled { background: #4B5563 !important; background-color: #4B5563 !important; color: #ffffff !important; border-color: #4B5563 !important; cursor: not-allowed !important; box-shadow: none !important; }

/* Edit — AAA navy text on gold */
.jlm-btn-edit,
button.jlm-btn-edit { background: #f2c75c !important; background-color: #f2c75c !important; color: #1b365d !important; border-color: #f2c75c !important; }
.jlm-btn-edit:hover,
button.jlm-btn-edit:hover { background: #ffc845 !important; background-color: #ffc845 !important; color: #1b365d !important; border-color: #ffc845 !important; }
.jlm-btn-edit:focus,
.jlm-btn-edit:focus-visible,
button.jlm-btn-edit:focus,
button.jlm-btn-edit:focus-visible { background: #ffc845 !important; background-color: #ffc845 !important; color: #1b365d !important; border-color: #ffc845 !important; outline: 2px solid #1b365d !important; outline-offset: 2px !important; }
.jlm-btn-edit:active,
button.jlm-btn-edit:active { background: #e0b04a !important; background-color: #e0b04a !important; color: #1b365d !important; border-color: #e0b04a !important; }
.jlm-btn-edit:disabled,
button.jlm-btn-edit:disabled { background: #F3F4F6 !important; background-color: #F3F4F6 !important; color: #6B7280 !important; border-color: #E5E7EB !important; cursor: not-allowed !important; }

.jlm-btn-sm,
button.jlm-btn-sm { padding: 6px 12px !important; font-size: 13px !important; }
.jlm-btn-icon { padding: 6px 10px !important; }

/* ============================================
   MODAL
   ============================================ */
.jlm-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jlm-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.jlm-modal-container {
    position: relative;
    background: #fff;
    border-radius: var(--jlm-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--jlm-shadow-lg);
    overflow: hidden;
}

.jlm-modal-sm { max-width: 450px; }
.jlm-modal-lg { max-width: 960px; }

.jlm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid var(--jlm-border);
}

.jlm-modal-header h3 { margin: 0; font-size: 18px; color: var(--jlm-primary); }

.jlm-modal-close,
button.jlm-modal-close {
    background: transparent !important; border: none !important; font-size: 26px !important; color: #4B5563 !important; cursor: pointer !important; line-height: 1 !important;
    width: 34px !important; height: 34px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    border-radius: 50% !important; padding: 0 !important; box-shadow: none !important; text-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}
.jlm-modal-close:hover,
button.jlm-modal-close:hover { background: #F3F4F6 !important; color: #0B1D3A !important; }
.jlm-modal-close:focus-visible,
button.jlm-modal-close:focus-visible { background: #F3F4F6 !important; color: #0B1D3A !important; outline: 2px solid #1d4289 !important; outline-offset: 2px !important; }
.jlm-modal-close:active,
button.jlm-modal-close:active { background: #E5E7EB !important; color: #0B1D3A !important; }

.jlm-modal-body { padding: 25px; overflow-y: auto; flex: 1; }

.jlm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 25px;
    border-top: 1px solid var(--jlm-border);
    background: var(--jlm-bg-light);
    border-radius: 0 0 var(--jlm-radius) var(--jlm-radius);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.jlm-form-group { margin-bottom: 18px; }

.jlm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--jlm-text);
    font-size: 14px;
}

.jlm-form-group input[type="text"],
.jlm-form-group input[type="url"],
.jlm-form-group input[type="email"],
.jlm-form-group textarea,
.jlm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.jlm-form-group input:focus,
.jlm-form-group textarea:focus,
.jlm-form-group select:focus {
    outline: none;
    border-color: var(--jlm-primary-light);
    box-shadow: 0 0 0 3px rgba(18,88,194,0.1);
}

.jlm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.jlm-help-text {
    font-size: 13px;
    color: var(--jlm-text-muted);
    margin-bottom: 12px;
}

.jlm-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
    cursor: pointer;
}

.jlm-checkbox-label input[type="checkbox"] {
    width: auto !important;
}

/* ---- Tabs ---- */
.jlm-form-tabs {
    display: flex;
    border-bottom: 2px solid var(--jlm-border);
    margin-bottom: 25px;
    gap: 2px;
    flex-wrap: wrap;
}

.jlm-tab,
button.jlm-tab {
    background: transparent !important; background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 10px 18px !important;
    font-size: 13px !important; font-weight: 600 !important;
    color: #4B5563 !important;
    cursor: pointer !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: -2px !important;
    box-shadow: none !important; text-shadow: none !important; text-transform: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

/* Nav tab hover: white text on blue background — never just darken text */
.jlm-tab:hover,
button.jlm-tab:hover { background: #1d4289 !important; background-color: #1d4289 !important; color: #ffffff !important; border-bottom-color: #1d4289 !important; }
.jlm-tab:focus-visible,
button.jlm-tab:focus-visible { background: #1d4289 !important; background-color: #1d4289 !important; color: #ffffff !important; outline: 2px solid #1d4289 !important; outline-offset: 2px !important; }
.jlm-tab:active,
button.jlm-tab:active { background: #1b365d !important; background-color: #1b365d !important; color: #ffffff !important; }
.jlm-tab.active,
button.jlm-tab.active { background: transparent !important; background-color: transparent !important; color: #1d4289 !important; border-bottom-color: #1d4289 !important; }
.jlm-tab.active:hover,
button.jlm-tab.active:hover { background: #1d4289 !important; background-color: #1d4289 !important; color: #ffffff !important; }

.jlm-tab-content { display: none; }
.jlm-tab-content.active { display: block; }

/* ---- Apply Method Conditional Fields ---- */
.jlm-apply-field { display: none; }
.jlm-apply-field.visible { display: block; }

/* ---- Repeater Fields ---- */
.jlm-repeater { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.jlm-repeater-item {
    display: flex; gap: 8px; align-items: flex-start;
}

.jlm-repeater-item input,
.jlm-repeater-item textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    font-size: 14px;
}

.jlm-repeater-item .jlm-remove-item,
.jlm-repeater-item button.jlm-remove-item {
    background: transparent !important; border: none !important; color: #4B5563 !important; cursor: pointer !important; padding: 8px !important; font-size: 18px !important; line-height: 1 !important; border-radius: 8px !important; box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}
.jlm-repeater-item .jlm-remove-item:hover,
.jlm-repeater-item button.jlm-remove-item:hover { background: #1b365d !important; color: #ffffff !important; }
.jlm-repeater-item .jlm-remove-item:focus-visible,
.jlm-repeater-item button.jlm-remove-item:focus-visible { background: #1b365d !important; color: #ffffff !important; outline: 2px solid #1d4289 !important; outline-offset: 2px !important; }

/* Badge Editor */
.jlm-badge-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jlm-badge-row input[type="text"] { flex: 1; min-width: 150px; }
.jlm-badge-row input[type="color"] { width: 50px; height: 38px; padding: 2px; border: 1px solid var(--jlm-border); border-radius: var(--jlm-radius-sm); cursor: pointer; }

.jlm-badge-presets { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--jlm-border); }
.jlm-badge-presets p { margin: 0 0 10px 0; font-size: 13px; }

.jlm-preset-btn {
    background: var(--jlm-bg-light); color: var(--jlm-text); border: 1px solid var(--jlm-border); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; margin-bottom: 8px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.jlm-preset-btn:hover { background: var(--jlm-navy-aaa); color: #ffffff; border-color: var(--jlm-navy-aaa); }
.jlm-preset-btn:focus-visible { background: var(--jlm-navy-aaa); color: #ffffff; border-color: var(--jlm-navy-aaa); outline: 2px solid var(--jlm-blue-aaa); outline-offset: 2px; }
.jlm-preset-btn:active { background: var(--jlm-primary); color: #ffffff; border-color: var(--jlm-primary); }

/* Section Editor */
.jlm-section-item {
    background: var(--jlm-bg-light); border: 1px solid var(--jlm-border); border-radius: var(--jlm-radius-sm); padding: 15px; margin-bottom: 15px;
}

.jlm-section-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.jlm-section-item-header input { flex: 1; font-weight: 600; }

/* Paste modals */
#jlm-paste-content,
#jlm-paste-multiple-content {
    width: 100%; font-family: monospace; font-size: 13px; line-height: 1.5; padding: 15px; border: 1px solid var(--jlm-border); border-radius: var(--jlm-radius-sm); resize: vertical; min-height: 300px; box-sizing: border-box;
}

#jlm-parse-preview {
    margin-top: 20px; padding: 15px; background: #d1fae5; border-radius: var(--jlm-radius-sm); border: 1px solid #34d399;
}
#jlm-parse-preview h4 { margin: 0 0 10px 0; color: #065f46; }
#jlm-jobs-found-list { margin: 0; padding-left: 20px; }
#jlm-jobs-found-list li { margin-bottom: 5px; color: #065f46; }

/* ============================================
   REORDER CONTROLS
   ============================================ */
.jlm-job-reorder { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; align-self: center; }

.jlm-reorder-btn {
    background: var(--jlm-bg-light); border: 1px solid var(--jlm-border); border-radius: var(--jlm-radius-sm);
    width: 30px; height: 26px; font-size: 11px; color: var(--jlm-text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; padding: 0; line-height: 1;
}
.jlm-reorder-btn:hover:not(:disabled) { background: var(--jlm-navy-aaa); color: #ffffff; border-color: var(--jlm-navy-aaa); }
.jlm-reorder-btn:focus-visible:not(:disabled) { background: var(--jlm-navy-aaa); color: #ffffff; border-color: var(--jlm-navy-aaa); outline: 2px solid var(--jlm-blue-aaa); outline-offset: 2px; }
.jlm-reorder-btn:active:not(:disabled) { background: var(--jlm-primary); color: #ffffff; border-color: var(--jlm-primary); }
.jlm-reorder-btn:disabled { opacity: 0.25; cursor: default; }

.jlm-row-flash { animation: jlm-rowFlash 0.5s ease; }
@keyframes jlm-rowFlash { 0% { background-color: #d1fae5; } 100% { background-color: #fff; } }

.jlm-sortable .jlm-repeater-item { cursor: grab; }
.jlm-sortable .jlm-repeater-item:active { cursor: grabbing; }
.jlm-sortable .jlm-repeater-item.dragging { opacity: 0.5; }
.jlm-drag-handle { color: var(--jlm-gray-light); cursor: grab; padding: 0 5px; }

/* ============================================
   STATUS BADGES
   ============================================ */
.jlm-status-badge {
    display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.jlm-status-badge-active { background: #d1fae5; color: #065f46; }
.jlm-status-badge-draft { background: #fef3c7; color: #92400e; }
.jlm-status-badge-closed { background: #e5e7eb; color: #374151; }

/* ============================================
   TOAST
   ============================================ */
.jlm-toast {
    position: fixed; bottom: 20px; right: 20px; background: var(--jlm-text); color: #ffffff;
    padding: 12px 20px; border-radius: var(--jlm-radius-sm); font-size: 14px; font-weight: 500; z-index: 9999999;
    animation: jlm-slideIn 0.3s ease; box-shadow: var(--jlm-shadow-md);
    display: flex; align-items: center; gap: 8px;
}
.jlm-toast-success { background: var(--jlm-success-aaa); color: #ffffff; }
.jlm-toast-error { background: var(--jlm-danger-aaa); color: #ffffff; }

@keyframes jlm-slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .jlm-job-card-header { padding: 20px 20px 0 20px; }
    .jlm-job-card-body { padding: 16px 20px 4px 20px; }
    .jlm-apply-box { margin: 12px 20px 0 20px; padding: 18px 20px; }
    .jlm-application-form { margin: 16px 20px 0 20px; padding: 18px 20px; }
    .jlm-app-form-row { grid-template-columns: 1fr; }
    .jlm-job-title { font-size: 19px !important; }
    .jlm-apply-contact-grid { grid-template-columns: 1fr; }
    .jlm-form-row { grid-template-columns: 1fr; }
    .jlm-stats-row { gap: 10px; }
    .jlm-stat-card { flex: 1 1 44%; padding: 14px 16px; }
    .jlm-stat-number { font-size: 22px; }
    .jlm-jobs-table { min-width: 720px; }
    .jlm-admin-toolbar { flex-direction: column; align-items: stretch; }
    .jlm-search-wrap { min-width: 0; }
    .jlm-modal-container { width: 95%; max-height: 95vh; }
    .jlm-admin-header { flex-direction: column; align-items: flex-start; }
    .jlm-app-submit-row { flex-direction: column; align-items: stretch; }
    .jlm-meta-bar { gap: 4px; padding: 10px 14px; }
    .jlm-meta-sep { display: none; }
    .jlm-meta-item { font-size: 12px; }
    .jlm-auto-contact-row { flex-direction: column; }
}

@media (max-width: 480px) {
    .jlm-job-card-header { padding: 16px 16px 0 16px; }
    .jlm-job-card-body { padding: 12px 16px 4px 16px; }
    .jlm-apply-box { margin: 10px 16px 0 16px; padding: 16px; }
    .jlm-application-form { margin: 12px 16px 0 16px; padding: 16px; }
    .jlm-badges { gap: 6px; }
    .jlm-badge { font-size: 11px !important; padding: 4px 10px !important; }
}

/* ============================================
   EXTERNAL LINK CONFIRMATION
   ============================================ */
.jlm-external-url {
    background: var(--jlm-bg-light);
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jlm-blue-aaa);
    word-break: break-all;
}


/* ============================================
   APPLICATION DETAIL MODAL
   ============================================ */
.jlm-app-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.jlm-app-detail-item {
    background: var(--jlm-bg-light);
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--jlm-text);
}

.jlm-app-detail-item strong,
.jlm-app-detail-message strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--jlm-text-muted) !important;
    margin-bottom: 4px;
    font-weight: 700;
}

.jlm-app-detail-item a { color: var(--jlm-blue-aaa) !important; text-decoration: none; word-break: break-word; }
.jlm-app-detail-item a:hover { color: var(--jlm-primary) !important; text-decoration: underline; }

.jlm-app-detail-message-body {
    background: #ffffff;
    border: 1px solid var(--jlm-border);
    border-radius: var(--jlm-radius-sm);
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--jlm-text);
    max-height: 320px;
    overflow-y: auto;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 600px) {
    .jlm-app-detail-grid { grid-template-columns: 1fr; }
}


/* ============================================
   REDUCED MOTION (WCAG 2.3.3)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .jlm-job-card,
    .jlm-job-card:hover,
    .jlm-stat-card,
    .jlm-stat-card:hover,
    .jlm-btn,
    .jlm-btn:active,
    .jlm-apply-btn,
    .jlm-apply-btn:hover,
    .jlm-apply-btn:active,
    .jlm-toast,
    .jlm-job-section-content,
    .jlm-toggle-icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    .jlm-spinner { animation: jlm-spin 1.5s linear infinite !important; }
}

/* ============================================
   v2.6.0 — SPAM PROTECTION + CLOSING SOON
   ============================================ */
/* Honeypot: removed from visual + AT + tab order; bots still see it in the DOM */
.jlm-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px; width: 1px;
    overflow: hidden;
}

.jlm-closing-soon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e; /* AAA on #fef3c7 */
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 14px;
    margin: 8px 8px 0 0;
}

.jlm-settings-section-title {
    margin: 24px 0 6px 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--jlm-border);
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--jlm-primary) !important;
}

/* ============================================
   v2.7.0 — Access roles picker
   ============================================ */
.jlm-access-fieldset {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
}
.jlm-access-fieldset legend.jlm-settings-section-title {
    display: block;
    width: 100%;
}
.jlm-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px 16px;
    margin-top: 8px;
}
.jlm-roles-grid .jlm-checkbox-label input:disabled + * ,
.jlm-roles-grid .jlm-checkbox-label input:disabled {
    cursor: not-allowed;
}

/* ============================================
   v2.7.0 — Self-test results
   ============================================ */
.jlm-selftest-summary {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    margin: 12px 0 16px;
    border-left: 4px solid;
}
.jlm-selftest-summary small { font-weight: 400; }
.jlm-selftest-pass { background: #ecfdf5; color: #065f46; border-color: #065f46; } /* AAA */
.jlm-selftest-fail { background: #fef2f2; color: #991b1b; border-color: #991b1b; } /* AAA */
.jlm-selftest-table td { vertical-align: top; font-size: 13px; }
.jlm-selftest-detail { word-break: break-word; color: #374151; }
.jlm-selftest-row-fail td { background: #fef2f2; }
.jlm-selftest-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}
.jlm-selftest-badge-pass { background: #065f46; color: #ffffff; }
.jlm-selftest-badge-fail { background: #991b1b; color: #ffffff; }

/* Application detail footer: keep Delete on the left */
#jlm-app-detail-modal .jlm-modal-footer #jlm-app-detail-delete { margin-right: auto; }

/* AIMH v4.10.4: status picker in the applications list keeps its status colour (themes restyle selects) */
.jlm-applications-table select.jlm-app-status-select { border: 0 !important; border-radius: 12px !important; padding: 5px 26px 5px 10px !important; min-height: 0 !important; font-size: 12px !important; font-weight: 700 !important; width: auto !important; }
.jlm-applications-table select.jlm-app-status-new { background-color: #dbeafe !important; color: #1e40af !important; }
.jlm-applications-table select.jlm-app-status-reviewed { background-color: #fef3c7 !important; color: #92400e !important; }
.jlm-applications-table select.jlm-app-status-contacted { background-color: #d1fae5 !important; color: #065f46 !important; }
.jlm-applications-table select.jlm-app-status-rejected { background-color: #fecaca !important; color: #991b1b !important; }

/* AIMH v4.10.5: resume upload on the application form */
.jlm-app-form-group input[type="file"].jlm-app-resume { padding: 9px 12px !important; background: #fff !important; cursor: pointer; }
.jlm-app-help { margin: 6px 0 0 !important; font-size: 12px !important; color: var(--jlm-text-muted) !important; line-height: 1.5 !important; }
