/* ============================================
   Business Profile Update Page
   VERSION 1.0 - FEB 24 2026
   ============================================ */

/* ============================================
   Page wrapper
   ============================================ */
.bpu-page {
    width: 100%;
    min-height: 100vh;
    background: #F3F4F6;
    font-family: "Noto Sans", Arial, sans-serif;
    direction: rtl;
}

/* ============================================
   HEADER
   ============================================ */
.bpu-header {
    width: 100%;
    background: #fff;
    margin-top: -2em;
}

.bpu-header-color-bar {
    width: 100%;
    height: 73px;
    position: relative;
}

.bpu-header-edit-btn {
    position: absolute;
    top: 12px;
    left: 12px;
}

.bpu-header-info {
    background: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 40px;
    padding-right: 40px;
}

.bpu-header-info-inner {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.bpu-logo-wrapper {
    width: 80px;
    height: 80px;  
    overflow: hidden;
    border: 3px solid #fff;
    flex-shrink: 0;
    background: #fff;
}

.bpu-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bpu-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
}

.bpu-logo-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #9CA3AF;
}

/* Business name */
.bpu-business-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111928;
    line-height: 1.4;
}

/* ============================================
   DIVIDER
   ============================================ */
.bpu-divider {
    width: 100%;
    height: 1px;
    background: #E5E7EB;
}

/* ============================================
   BODY (SIDEBAR + MAIN)
   ============================================ */
.bpu-body {
    margin: 0 auto;
    display: flex;
    gap: 0;
    min-height: calc(100vh - 200px);
}

/* ============================================
   SIDEBAR
   ============================================ */
.bpu-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #E5E7EB;
    padding: 16px 0;
}

.bpu-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.bpu-sidebar-item,
.bpu-sidebar-item:link,
.bpu-sidebar-item:visited {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #111928;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.bpu-sidebar-item:hover,
.bpu-sidebar-item:focus,
.bpu-sidebar-item:active {
    background-color: #F3F4F6;
    text-decoration: none;
    color: #111928;
}

.bpu-sidebar-item.active {
    background-color: #F3F4F6;
    font-weight: 600;
}

.bpu-sidebar-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6B7280;
    flex-shrink: 0;
}

.bpu-sidebar-item:hover .dashicons,
.bpu-sidebar-item.active .dashicons {
    color: #6B7280;
}

.bpu-sidebar-label {
    flex: 1;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.bpu-main {
    flex: 1;
    background: #F3F4F6;
    min-height: 400px;
    padding: 20px 20px;
}

/* ============================================
   CONTENT BLOCKS (shared)
   ============================================ */
.bpu-block {
    display: flex;
    flex-direction: column;
    padding: 24px;
    align-self: stretch;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.bpu-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bpu-block-title {
    margin: 0;
    color: #111928;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* View mode content */
.bpu-block-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bpu-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpu-info-row .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.bpu-info-text {
    color: #6B7280;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.bpu-info-link,
.bpu-info-link:link,
.bpu-info-link:visited {
    color: #0a66c2;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-decoration: none;
}

.bpu-info-link:hover {
    text-decoration: underline;
}

/* Pills (industry tags) */
.bpu-pills-row {
    align-items: flex-start;
}

.bpu-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bpu-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    background: #F3F4F6;
    color: #374151;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #E5E7EB;
}

/* Edit mode fields */
.bpu-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bpu-field label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.bpu-field input[type="text"],
.bpu-field input[type="email"],
.bpu-field input[type="tel"],
.bpu-field input[type="url"],
.bpu-field select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    background: #F9FAFB;
    color: #111928;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.bpu-field input:focus,
.bpu-field select:focus {
    outline: none;
    border-color: #0a66c2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.bpu-field input[dir="ltr"] {
    text-align: left;
}

/* ============================================
   BENEFITS GRID (view mode)
   ============================================ */
.bpu-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bpu-benefit-card {
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

.bpu-benefit-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpu-benefit-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.bpu-benefit-name {
    color: #111928;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.bpu-benefit-desc {
    color: #374151;
    text-align: right;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
}

/* ============================================
   BENEFITS EDIT MODE
   ============================================ */
.bpu-benefits-edit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bpu-benefit-edit-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
}

.bpu-benefit-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bpu-benefit-edit-num {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.bpu-benefit-remove-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
    line-height: 1;
}

.bpu-benefit-remove-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.bpu-benefit-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bpu-benefit-edit-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bpu-benefit-icon-field {
    width: 80px;
    flex-shrink: 0;
}

.bpu-benefit-icon-field select {
    width: 80px;
    text-align: center;
    font-size: 18px;
    padding: 8px 4px;
}

.bpu-benefit-edit-desc {
    width: 100%;
    min-height: 70px;
    max-height: 160px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    background: #fff;
    color: #111928;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bpu-benefit-edit-desc:focus {
    outline: none;
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.bpu-char-count {
    font-size: 11px;
    color: #9CA3AF;
    margin: 4px 0 0 0;
    text-align: left;
}

.bpu-char-current {
    font-weight: 600;
    color: #6B7280;
}

.bpu-add-benefit-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
}

.bpu-benefits-limit-text {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0 0 8px 0;
}

/* Edit action buttons */
.bpu-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.bpu-btn {
    padding: 8px 24px;
    border-radius: 6px;
    font-family: "Noto Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.bpu-btn-primary {
    background: #0a66c2;
    color: #fff;
}

.bpu-btn-primary:hover {
    background: #084e96;
}

.bpu-btn-primary:disabled {
    background: #93C5FD;
    cursor: not-allowed;
}

.bpu-btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.bpu-btn-secondary:hover {
    background: #E5E7EB;
}

/* Block messages */
.bpu-block-msg {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: right;
}

.bpu-block-msg--success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.bpu-block-msg--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* ============================================
   EDIT BUTTON (shared)
   ============================================ */
.bpu-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.bpu-edit-btn:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bpu-edit-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #374151;
}

/* ============================================
   HEADER EDIT BUTTONS
   ============================================ */
.bpu-logo-area {
    position: relative;
    flex-shrink: 0;
}

.bpu-logo-edit-btn {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.bpu-logo-edit-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.bpu-name-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpu-name-edit-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.bpu-name-area:hover .bpu-name-edit-btn {
    opacity: 1;
}

/* View profile as job seeker – small button on opposite side of name (web) */
.bpu-header-view-link {
    margin-inline-start: auto;
    flex-shrink: 0;
}

.bpu-view-as-seeker-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #3B5BDB;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.bpu-view-as-seeker-btn:hover {
    background: #2F4BBF;
    color: #fff;
}

.bpu-view-as-seeker-btn svg {
    flex-shrink: 0;
}

/* ============================================
   MODALS
   ============================================ */
.bpu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bpu-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: bpuModalIn 0.25s ease-out;
}

.bpu-modal-sm {
    max-width: 420px;
}

@keyframes bpuModalIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.bpu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
}

.bpu-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111928;
}

.bpu-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.bpu-modal-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.bpu-modal-body {
    padding: 24px;
}

.bpu-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 8px;
}

/* ============================================
   COLOR PICKER (inside modal)
   ============================================ */
.bpu-color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bpu-cp-area {
    width: 100%;
    height: 220px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: crosshair;
    user-select: none;
    border: 1px solid #D1D5DB;
}

.bpu-cp-base {
    width: 100%;
    height: 100%;
}

.bpu-cp-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.bpu-cp-hue {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right,
        #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.bpu-cp-hue-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    background: #fff;
}

.bpu-cp-values {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bpu-cp-preview {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    flex-shrink: 0;
}

.bpu-cp-fields {
    display: flex;
    gap: 8px;
    flex: 1;
}

.bpu-cp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bpu-cp-field label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    text-align: center;
}

.bpu-cp-field input {
    padding: 8px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background: #F9FAFB;
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: 500;
    color: #111928;
    box-sizing: border-box;
}

.bpu-cp-field input:focus {
    outline: none;
    border-color: #0a66c2;
    background: #fff;
}

.bpu-cp-rgb-field { max-width: 56px; }
.bpu-cp-hex-field { flex: 1.5; max-width: 120px; }

/* ============================================
   LOGO MODAL
   ============================================ */
.bpu-logo-modal-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    overflow: hidden;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.bpu-logo-modal-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpu-logo-modal-preview .bpu-logo-placeholder {
    text-align: center;
    color: #9CA3AF;
}

.bpu-logo-modal-preview .bpu-logo-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.bpu-logo-modal-preview .bpu-logo-placeholder p {
    font-size: 11px;
    margin: 4px 0 0;
}

.bpu-logo-modal-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.bpu-btn-danger {
    color: #DC2626;
    border-color: #FECACA;
}

.bpu-btn-danger:hover {
    background: #FEE2E2;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .bpu-header-info {
        padding: 0 16px 20px;
    }

    .bpu-header-info-inner {
        gap: 14px;
    }

    .bpu-logo-wrapper {
        width: 72px;
        height: 72px;
        margin-top: -20px;
    }

    .bpu-business-name {
        font-size: 20px;
    }

    .bpu-view-as-seeker-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .bpu-view-as-seeker-btn svg {
        width: 12px;
        height: 12px;
    }

    .bpu-body {
        flex-direction: column;
    }

    .bpu-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #E5E7EB;
        padding: 12px 0;
    }

    .bpu-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        padding: 0 12px;
    }

    .bpu-sidebar-item {
        white-space: nowrap;
        padding: 8px 12px;
    }

    .bpu-main {
        padding: 16px;
    }

    .bpu-block {
        padding: 16px;
    }

    .bpu-benefits-grid {
        grid-template-columns: 1fr;
    }

    .bpu-benefit-edit-row {
        flex-direction: column;
    }

    .bpu-benefit-icon-field {
        width: 100%;
    }

    .bpu-benefit-icon-field select {
        width: 100%;
    }

    .bpu-edit-actions {
        flex-direction: column;
    }

    .bpu-btn {
        width: 100%;
        text-align: center;
    }
}

/* ======== SECTION SWITCHING ======== */
.bpu-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======== JOBS MANAGEMENT ======== */
.bpu-jobs-add-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}

.bpu-jobs-add-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
    min-width: 220px;
    max-width: 340px;
    text-align: right;
}

.bpu-jobs-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bpu-jobs-add-btn--manual:hover {
    border-color: #4F46E5;
    background: #F5F3FF;
}

.bpu-jobs-add-btn--position:hover {
    border-color: #059669;
    background: #ECFDF5;
}

.bpu-jobs-add-btn--assign:hover {
    border-color: #BE1966;
    background: #EFF6FF;
}

.bpu-jobs-add-btn-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.bpu-jobs-add-btn-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bpu-jobs-add-btn-text strong {
    font-size: 15px;
    color: #1a1a1a;
}

.bpu-jobs-add-btn-text small {
    font-size: 13px;
    color: #6B7280;
}

.bpu-jobs-search-box {
    margin-bottom: 16px;
}

.bpu-jobs-search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bpu-jobs-search-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.bpu-jobs-selected-count {
    padding: 10px 14px;
    background: #EEF2FF;
    border-radius: 6px;
    color: #4F46E5;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.bpu-jobs-search-results {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FAFBFC;
    margin-bottom: 16px;
}

.bpu-jobs-loading,
.bpu-jobs-no-results {
    padding: 32px;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

.bpu-jobs-info-bar {
    padding: 10px 14px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 13px;
    border-bottom: 1px solid #E5E7EB;
}

.bpu-job-item {
    padding: 10px 14px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.bpu-job-item:last-child {
    border-bottom: none;
}

.bpu-job-item:hover {
    background: #F3F4F6;
}

.bpu-job-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.bpu-job-item-content {
    flex: 1;
    min-width: 0;
}

.bpu-job-item-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 2px;
}

.bpu-job-item-meta {
    font-size: 12px;
    color: #6B7280;
}

.bpu-job-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

.bpu-job-status--publish {
    background: #D1FAE5;
    color: #065F46;
}

.bpu-job-status--other {
    background: #FEF3C7;
    color: #92400E;
}

.bpu-jobs-save-btn {
    width: 100%;
    margin-top: 4px;
}

.bpu-jobs-message {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.bpu-jobs-message--success {
    background: #D1FAE5;
    color: #065F46;
}

.bpu-jobs-message--error {
    background: #FEE2E2;
    color: #991B1B;
}

/* Assigned jobs list */
.bpu-assigned-job-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    margin-bottom: 8px;
}

.bpu-assigned-job-title {
    flex: 1;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.bpu-assigned-job-meta {
    font-size: 12px;
    color: #6B7280;
    flex-shrink: 0;
}

.bpu-assigned-job-edit {
    padding: 5px 12px;
    background: #3B82F6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bpu-assigned-job-edit:hover {
    background: #1c50a4 !important;
}

.bpu-assigned-job-remove {
    padding: 5px 12px;
    background: #EF4444;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bpu-assigned-job-remove:hover {
    background: #8d2121 !important;
}

.bpu-job-status-pill {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    margin-inline-start: 8px;
}

.bpu-job-status-draft {
    background: #E5E7EB;
    color: #4B5563;
}

@media (max-width: 600px) {
    .bpu-jobs-add-buttons {
        flex-direction: column;
    }
    .bpu-jobs-add-btn {
        max-width: 100%;
    }
}

/* Industry multi-select (chips + panel) */
.bpu-industry-msr .msr {
    position: relative;
    width: 100%;
    font-size: 14px;
    color: #333;
}

.bpu-industry-msr .msr-trigger {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    min-height: 44px;
    cursor: pointer;
    text-align: right;
}

.bpu-industry-msr .msr.open .msr-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #999;
}

.bpu-industry-msr .msr-badge {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.bpu-industry-msr .msr-badge .chip {
    background: #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
}

.bpu-industry-msr .msr-badge .chip button {
    border: none;
    background: transparent;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: #777;
    padding: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bpu-industry-msr .msr-badge .chip button:hover {
    background: #d6d8db;
    color: #000;
}

.bpu-industry-msr .msr-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-top: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    text-align: right;
}

.bpu-industry-msr .msr.open .msr-panel {
    display: block;
}

.bpu-industry-msr .msr-panel .msr-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.bpu-industry-msr .msr-panel .msr-option:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.bpu-industry-msr .msr-panel .msr-option.disabled {
    color: #999;
    background: #f5f5f5;
    cursor: not-allowed;
}

.bpu-industry-msr .msr-panel .msr-option.disabled:hover {
    background: #f5f5f5;
    color: #999;
}

.bpu-field-hint {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #6b7280;
}
