/* --- DASHBOARD LAYOUT CSS --- */
/* Extracted from inline block to ensure loading */

/* Wrapper to establish a new formatting context */
#bh-dashboard-wrapper {
    width: 100%;
    min-height: 100vh;
    background-color: #f9fafb !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.5;
    font-size: 16px;
    display: block;
    position: relative;
    z-index: 999;
}

/* box-sizing reset ONLY within our wrapper */
#bh-dashboard-wrapper *,
#bh-dashboard-wrapper *::before,
#bh-dashboard-wrapper *::after {
    box-sizing: border-box;
}

/* Reset Links and Buttons */
#bh-dashboard-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease-in-out;
}

#bh-dashboard-wrapper button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Layout Grid/Flex */
.bh-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.bh-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Large Screen Layout */
@media (min-width: 992px) {
    .bh-grid {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar */
.bh-sidebar-area {
    width: 100%;
    background-color: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex-shrink: 0;
    display: block !important;
    /* Force visibility */
}

@media (min-width: 992px) {
    .bh-sidebar-area {
        width: 280px !important;
        position: sticky;
        top: 20px;
        /* Removed internal scroll to fix visual glitch */
    }
}

/* Navigation */
.bh-nav-list {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 2px;
}

.bh-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4b5563;
    font-weight: 500;
    font-size: 15px;
    background: transparent;
}

.bh-nav-item:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

.bh-nav-item.active {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

.bh-nav-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

/* Main Content Area */
.bh-main-area {
    flex: 1;
    width: 100%;
    min-width: 0;
    /* Fix flex overflow */
}

/* Top Bar */
.bh-topbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .bh-topbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Top Bar Elements */
.bh-back-btn {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.bh-back-btn:hover {
    color: #2563eb;
}

.bh-action-group {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    /* Mobile spread */
}

@media (min-width: 768px) {
    .bh-action-group {
        justify-content: flex-end;
    }
}

/* Welcome Box */
.bh-welcome {
    text-align: right;
    display: none;
    /* Hidden on small mobile */
}

@media (min-width: 768px) {
    .bh-welcome {
        display: block;
    }
}

.bh-welcome h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.bh-welcome span {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Primary */
.bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s;
}

.bh-btn:hover {
    background-color: #1d4ed8 !important;
}

/* Stats Cards */
.bh-stats-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 640px) {
    .bh-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bh-stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bh-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bh-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 10px 0 5px;
}

.bh-card-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.bh-form-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.bh-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bh-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    margin-bottom: 20px;
    background: #fff;
}

.bh-input:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.2);
}

/* Mobile Toggle */
.bh-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 992px) {
    .bh-mobile-head {
        display: none !important;
    }
}

/* Utility to hide/show tabs */
.bh-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.bh-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for profile image */
.bh-avatar-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Promo Banner (Re-added) */
.bh-banner {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}

.bh-banner h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 20px;
    color: #1f2937;
    max-width: 480px;
    line-height: 1.3;
}

.bh-banner-btn {
    background: #fff;
    color: #111;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: transform 0.2s;
}

.bh-banner-btn:hover {
    transform: translateY(-2px);
}

.bh-banner-icon {
    font-size: 100px;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 30px;
    bottom: -15px;
    transform: rotate(-15deg);
}

/* Activity Grid (Flex Fallback) */
.bh-activity-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .bh-activity-grid {
        flex-direction: row;
    }

    .bh-activity-card {
        flex: 1;
    }
}

.bh-activity-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    /* Subtle border restored */
    border-radius: 16px;
    padding: 25px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.bh-activity-header {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.bh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.bh-dot.blue {
    background-color: #3b82f6;
}

.bh-dot.yellow {
    background-color: #f59e0b;
}

.bh-dot.purple {
    background-color: #8b5cf6;
}

.bh-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
}

.bh-empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.bh-notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bh-notification-item {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
}

.bh-time {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Dropdown Styles */
.bh-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 8px;
    min-width: 200px;
    z-index: 50;
    margin-top: 8px;
}

.bh-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.bh-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.bh-dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: #9ca3af;
}

.bh-dropdown-item:hover i {
    color: #2563eb;
}

/* --- New Profile Section Styles --- */
.bh-profile-header-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}

.bh-profile-header-below-area {
    justify-content: right;
}

.bh-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.bh-section-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin: 5px 0 0;
}

.bh-profile-upgrade-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.bh-profile-upgrade-btn:hover {
    background: #e5e7eb;
    color: #111;
}

.bh-profile-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

@media(max-width:768px) {
    .bh-profile-layout {
        flex-direction: column;
    }
}

.bh-profile-avatar-col {
    width: 150px;
    flex-shrink: 0;
}

.bh-avatar-wrapper {
    width: 120px;
    height: 120px;
    border: 1px solid #d1d5db;
    padding: 5px;
    border-radius: 8px;
    /* Square with rounded corners per sketch */
    position: relative;
    margin: 0 auto;
}

.bh-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.bh-avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bh-profile-fields-col {
    flex: 1;
}

.bh-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

@media(max-width:576px) {
    .bh-form-row {
        flex-direction: column;
        gap: 10px;
    }
}

.bh-form-group {
    flex: 1;
}

.bh-form-group.full-width {
    width: 100%;
}

.bh-form-group label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 5px;
    font-weight: 500;
}

.bh-input-line {
    width: 100%;
    border: none;
    border-bottom: 1px solid #d1d5db;
    padding: 8px 0;
    font-size: 14px;
    color: #111;
    background: transparent;
    border-radius: 0;
}

.bh-input-line:focus {
    outline: none;
    border-bottom-color: #2563eb;
}

.bh-input-line.readonly {
    color: #6b7280;
    border-bottom-style: dashed;
}

.bh-update-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 40px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bh-update-header {
    background: #f9fafb;
    padding: 15px 25px;
    border-bottom: 1px solid #d1d5db;
}

.bh-update-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.bh-update-body {
    padding: 25px;
}

.bh-update-body h5 {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.bh-input-box {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #111;
}

.bh-action-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    /* Ensure full width container */
}

.bh-btn-outline {
    background-color: #1f2937 !important;
    /* Force dark background */
    border: 1px solid #1f2937 !important;
    color: #ffffff !important;
    padding: 12px 30px;
    /* Slightly larger padding */
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block !important;
    /* Force inline-block */
    width: auto !important;
    /* Prevent 0 width */
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 14px;
    line-height: 1.5;
}

.bh-btn-outline:hover {
    background-color: #374151 !important;
    border-color: #374151 !important;
    color: #ffffff !important;
}

.bh-stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.bh-stat-link:hover .bh-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bh-stat-link .bh-card {
    height: 100%;
}

/* Top Bar */
.bh-topbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .bh-topbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        /* Align top to fix button/text height disparity */
    }

    .bh-welcome {
        text-align: center;
        flex: 1;
        /* Allow it to take available space */
        padding-top: 8px;
        /* Align text with button vertical center */
    }

    .bh-topbar-left {
        padding-top: 10px;
        /* Align "Back" link with button vertical center */
    }
}

.bh-topbar-left {
    min-width: 150px;
}

#bh-dashboard-wrapper .bh-pkg-promo {
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    /* Force single line */
}

#bh-dashboard-wrapper .bh-pkg-promo span {
    display: inline;
}

#bh-dashboard-wrapper .bh-pkg-promo a {
    color: #2563eb;
    /* Blue color */
    text-decoration: none;
    font-weight: 700;
    display: inline;
    margin-left: 4px;
}

#bh-dashboard-wrapper .bh-pkg-promo a:hover {
    text-decoration: underline;
}

.bh-action-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
    flex-shrink: 0;
    /* Prevent squeezing */
}

@media (max-width: 991px) {
    .bh-topbar {
        align-items: flex-start;
    }

    .bh-welcome {
        text-align: left;
        margin-top: 10px;
        padding-top: 0;
    }

    .bh-topbar-left {
        padding-top: 0;
    }

    .bh-action-right {
        align-items: flex-start;
        margin-top: 15px;
        width: 100%;
    }

    #bh-dashboard-wrapper .bh-pkg-promo {
        text-align: left;
        white-space: normal;
        /* Allow wrap on mobile if needed */
    }
}

/* Fix Stats Row Layout */
.bh-stats-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
    /* Force 4 items in single line */
    margin-bottom: 30px;
}

.bh-stats-row>* {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

@media (max-width: 768px) {
    .bh-stats-row {
        flex-wrap: wrap;
    }

    .bh-stats-row>* {
        flex: 0 0 100%;
        /* Stack on mobile */
        margin-bottom: 15px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .bh-stats-row>* {
        flex: 0 0 calc(50% - 10px);
        /* 2 per row on tablet/large phone */
    }
}

/* --- New Dashboard Header Styles --- */

.bh-dashboard-header {
    background: #ffffff;
    border-radius: 8px;
    /* Slightly less rounded than cards */
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.bh-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
}

.bh-back-link {
    display: inline-flex;
    align-items: center;
    color: #374151;
    /* Dark grey */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.bh-back-link i {
    margin-right: 8px;
    font-size: 12px;
}

.bh-back-link:hover {
    color: #111;
}

.bh-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Identity - Right Aligned in Top Row */
.bh-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bh-user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bh-u-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.bh-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Key fix for aspect ratio */
    display: block;
}

.bh-u-name {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

/* New Button Style */
#bh-dashboard-wrapper .bh-btn-primary-sm {
    background-color: #2563eb !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
    /* Match bg */
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

#bh-dashboard-wrapper .bh-btn-primary-sm:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.ml-1 {
    margin-left: 4px;
}

/* Divider */
.bh-header-divider {
    height: 1px;
    background-color: #e5e7eb;
    width: 100%;
    margin-bottom: 12px;
}

/* Bottom Row */
.bh-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bh-welcome-text {
    font-size: 15px;
    color: #6b7280;
}

.bh-welcome-name {
    color: #374151;
    font-weight: 600;
    /* As distinct as image */
    margin-left: 5px;
}

.bh-promo-text {
    font-size: 13px;
    color: #1f2937;
    font-weight: 700;
    /* Bold per image */
}

.bh-upgrade-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.bh-upgrade-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .bh-dashboard-header {
        padding: 15px;
    }

    .bh-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .bh-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .bh-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bh-promo-text {
        text-align: left;
    }
}

/* --- FIX FOR UNWANTED P TAGS --- */
#bh-dashboard-wrapper p:empty,
#bh-dashboard-wrapper .bh-stats-row>p,
#bh-dashboard-wrapper .bh-stats-row a>p,
#bh-dashboard-wrapper .bh-banner>p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

#bh-dashboard-wrapper .bh-stats-row {
    display: grid !important;
}

#bh-dashboard-wrapper .bh-banner {
    display: flex !important;
}

/* Ensure nothing overrides flex/grid */
#bh-dashboard-wrapper .bh-header-top,
#bh-dashboard-wrapper .bh-header-bottom {
    display: flex !important;
}

/* Fix for P tags inside header */
#bh-dashboard-wrapper .bh-dashboard-header p:empty {
    display: none !important;
}

/* --- Table Styles (Re-applied) --- */
.bh-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
}

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

.bh-table th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.bh-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    vertical-align: middle;
}

.bh-table tbody tr:last-child td {
    border-bottom: none;
}

.bh-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Status Badges */
.bh-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.bh-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.bh-badge.approved {
    background-color: #d1fae5;
    color: #059669;
}

.bh-badge.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

.bh-badge.completed {
    background-color: #dbeafe;
    color: #2563eb;
}

/* Action Icons */
.bh-action-btn-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- Add Request Form Styles --- */
.bh-add-request-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-top: 20px;
}

/* Sidebar */
.bh-form-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    border-left: 1px solid #e5e7eb;
    /* Optional visual guide */
}

.bh-side-link {
    display: block;
    padding: 8px 0 8px 15px;
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.bh-side-link:hover,
.bh-side-link.active {
    color: #111827;
    font-weight: 600;
    border-left-color: #111827;
}

/* Content Area */
.bh-form-content {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
}

.bh-form-section-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    /* Slight rounding */
}

/* Use target offset for smooth scrolling if needed */
.bh-form-section-item:target {
    scroll-margin-top: 100px;
}

.bh-section-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 25px 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Clean Inputs (Underline Style) */
.bh-input-line-clean {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
}

.bh-input-line-clean:focus {
    border-bottom-color: #000;
}

/* Checkbox Grid */
.bh-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.bh-cb-item {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Rich Editor Mock */
.bh-rich-editor {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
}

.bh-editor-toolbar {
    padding: 5px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 5px;
}

.bh-rich-editor textarea {
    width: 100%;
    border: none;
    padding: 10px;
    outline: none;
    resize: vertical;
}

/* Upload Boxes */
.bh-upload-box-small {
    border: 1px dashed #d1d5db;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.bh-upload-box-large {
    border: 1px dashed #d1d5db;
    padding: 30px;
    text-align: center;
    width: 120px;
    /* Square-ish */
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.bh-upload-area-dashed {
    border: 1px dashed #9ca3af;
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    margin-top: 5px;
}

/* Hours Row */
.bh-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .bh-add-request-layout {
        flex-direction: column;
    }

    .bh-form-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .bh-side-link {
        padding: 5px 15px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
    }

    .bh-side-link:hover,
    .bh-side-link.active {
        border-left: none;
        border-bottom-color: #111827;
    }
}

.bh-action-btn {
    color: #6b7280 !important;
    /* Force visible color */
    font-size: 16px;
    transition: color 0.2s;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.bh-action-btn:hover {
    color: #1f2937 !important;
}

.bh-action-btn.view:hover {
    color: #2563eb !important;
}

.bh-action-btn.cancel:hover {
    color: #dc2626 !important;
}

.bh-action-btn.delete:hover {
    color: #ef4444 !important;
}