/* =============================
   UNIFIED HEADER SYSTEM
   AMD Construction Pro
   ============================= */

/* Base header styling - matches Company Calendar header */
.section-header {
    color: #fff !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 16px 24px !important;
    margin: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: none !important;
    border: none !important;
    text-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
}

/* Header text elements - H3 tags inside section headers */
.section-header h3 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Smaller headers for compact sections */
.section-header.compact,
.panel-header.compact {
    font-size: 16px !important;
    padding: 14px 18px 12px 18px !important;
}

.section-header.compact h3,
.panel-header.compact h3 {
    font-size: 16px !important;
}

/* Header action buttons */
.section-header .header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.section-header .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    min-width: auto;
    max-width: none;
}

.section-header .btn.small {
    padding: 4px 8px;
    font-size: 12px;
}

.section-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Special cases for specific tab requirements */
#sales-tab .section-header {
    padding: 12px 16px !important;
    font-size: 16px !important;
}

#sales-tab .section-header h3 {
    font-size: 16px !important;
}

/* Override any conflicting styles */
.tab-content .section-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #fff !important;
}
