html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-width: 320px; /* Global minimum width */
    overflow-x: auto; /* Allow horizontal scroll when needed */
}

/* Global form element constraints */
.form-control, .rz-dropdown, .radzen-dropdown1, input, textarea, select {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Container constraints */
.container, .container-fluid {
    min-width: 280px;
    max-width: 100%;
    overflow-x: auto;
}

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Scheduler styling for better day height and appointment display */
.scheduler-container .rz-scheduler-month-view .rz-scheduler-month-day {
    min-height: 80px !important;
    height: 80px !important;
}

.scheduler-container .rz-scheduler-appointment {
    font-size: 11px !important;
    padding: 2px 4px !important;
    margin: 1px 0 !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.scheduler-container .rz-scheduler-month-day-content {
    max-height: 75px !important;
    overflow: hidden !important;
}

.scheduler-container .rz-scheduler-appointment:nth-child(n+3) {
    display: none !important;
}

.scheduler-container .rz-scheduler-month-day-content::after {
    content: attr(data-more-count);
    display: block;
    font-size: 10px;
    color: #666;
    text-align: center;
    font-style: italic;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.clickable-link {
    cursor: pointer;
    text-decoration: underline; /* Optional: to underline the link text */
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background-color: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Common styles for input, textarea, and Radzen components */
input, textarea, .radzen-dropdown1 {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

 .radzen-datepicker {
    display: block;
    width: 100%;
    max-width: 200px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rz-datepicker-trigger {
    position: absolute !important;
    right: 5px !important;
    top: 18px !important;
    
}

    input:focus, textarea:focus, .radzen-dropdown:focus, .radzen-datepicker:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* Specific styles for input */
input {
    height: calc(1.5em + 0.75rem + 2px);
}

/* Specific styles for textarea */
textarea {
    height: auto;
    resize: vertical;
}

/* Add margin for spacing between elements */
input, textarea, .radzen-dropdown, .radzen-datepicker, button {
    margin-bottom: 1rem;
}

    /* Styles for the custom buttons */
    button.AdminButtons {
        display: inline-block;
        font-weight: 400;
        color: #212529;
        text-align: center;
        vertical-align: middle;
        user-select: none;
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: 0.25rem;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

        button.AdminButtons:hover {
            color: #212529;
            background-color: #e2e6ea;
            border-color: #dae0e5;
        }

.validation-message {
    color: red;
}

/* Table styles */
.table th, .table td {
    color: #000 !important; /* Ensure text is black */
    background-color: #f8f9fa; /* Light gray background */
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #dee2e6; /* Borders for all cells and headers */
}

/* Slightly darker background for headers */
.table th {
    background-color: #e9ecef; /* Light gray for table headers */
    font-weight: bold;
}

/* Link styles within the table */
.table a {
    color: #007bff !important; /* Standard link color (Bootstrap default) */
    text-decoration: underline; /* Underline links */
}

    .table a:visited {
        color: #6610f2 !important; /* Visited link color */
    }

    .table a:hover {
        color: #0056b3 !important; /* Darker blue on hover */
        text-decoration: none; /* Remove underline on hover */
    }

    .table a:active {
        color: #0056b3 !important; /* Active link color */
    }

/* Radzen button styles within the table */
.radzen-button {
    color: #fff !important;
    background-color: #007bff !important; /* Ensure the button is blue */
    border: 1px solid #007bff !important;
}

    /* Style for notes button to be icon only */
    .radzen-button.notes-button {
        padding: 0.5rem !important; /* Reduce padding to make button smaller */
    }

        .radzen-button.notes-button .rz-button-text {
            display: none; /* Hide text */
        }

        .radzen-button.notes-button .rz-button-icon {
            margin: 0 !important; /* Remove any margin around the icon */
        }

    .radzen-button:hover {
        background-color: #0056b3 !important; /* Darker blue on hover */
        border-color: #0056b3 !important;
    }

/* Table row styling */
.table .member-row {
    background-color: #f8f9fa; /* Light gray for rows */
}

    .table .member-row:hover {
        background-color: #e2e6ea; /* Slightly darker gray on hover */
    }

/* Ensure grid layout has no scrollbar and date pickers don't overlap */
.radzen-grid {
    overflow-x: hidden;
}

.radzen-datepicker {
    box-sizing: border-box;
    max-width: 400px;
}

/* Center the checkbox under "Touring/Session" */
.radzen-checkbox {
    margin: auto;
}

/* Notes icon-only button */
.radzen-button.notes-icon {
    background-color: #007bff;
    color: white;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

/* Popup overlays */
.popup-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background-color: white;
    border: 1px solid #ccc;
    padding: 1rem;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

/* General styling for the popups */
.RadzenCard {
    z-index: 1000; /* Ensure it's above other elements */
    padding: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}


.view-notes-card, .edit-notes-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensure it appears above other content */
    width: 300px; /* Adjust the width as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

/* Optional: darken the background when the card is visible */
body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Just below the card */
}

/* Container for the details and image */
.Dtail-details-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 1px;
}

.Dtail-image {
    flex-shrink: 0;
    width: 300px;
    margin-right: 15px;
}

    .Dtail-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 15px;
    }

#venueMap {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.Dtail-details {
    flex-grow: 1;
    line-height: 1.5;
}

.area-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2%;
}

.area-item {
    width: max(48%, 350px);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.area-image {
    width: 100px; /* Adjust the size of the event image */
    margin-right: 15px;
    border-radius: 8px;
}

.area-details {
    flex-grow: 1;
}

/* browsese CSS */
.browse-search {
    width: 100%;
    text-align: left;
    padding: 15px;
    border: 1px solid gray;
      
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.browse-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.browse-title {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
}

    .browse-title h2 {
        margin: 0; /* Removes the default <h2> margin */
    }

.browse-item-content {
    display: flex;
    width: 100%;
}

.browse-image {
    flex-shrink: 0;
    max-width: 200px;
    margin-right: 15px;
}

.browse-image-size {
  width: 200px;
    border-radius: 8px;
}

.browse-details {
    flex-grow: 1;
    padding-left: 10px;
    text-align: left;
}

    .browse-details h2 {
        margin: 0;
    }

.browse-genres-types {
    font-size: 16px; /* Normal text size */
    font-weight: normal; /* Normal weight */
    font-style: italic;
    margin-bottom: 0;
}


#map {
    width: 100%;
    height: 400px; /* Adjust height as needed */
}

.browse-map-container {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

#map {
    flex: 1;
    height: 400px;
}

/* City Map Styles */
.city-marker {
    background: none !important;
    border: none !important;
}

.city-pin {
    width: 20px;
    height: 20px;
    background-color: #28a745;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.city-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #28a745;
}

.center-marker {
    background: none !important;
    border: none !important;
}

.center-pin {
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.center-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #dc3545;
}

.city-popup-container .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.city-popup {
    font-family: Arial, sans-serif;
    max-width: 280px;
}

.city-popup-header h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.city-popup-header h3 a {
    text-decoration: none;
    color: inherit;
}

.city-popup-header h3 a:hover {
    color: #3498db;
}

.city-country {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 0.9em;
    font-style: italic;
}

.city-popup-image {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.city-description {
    margin: 0 0 10px 0;
    color: #34495e;
    font-size: 0.85em;
    line-height: 1.4;
}

.city-popup-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.city-fans,
.city-population {
    font-size: 0.8em;
    color: #7f8c8d;
}

.city-popup-footer {
    text-align: center;
}

.city-popup-footer .btn {
    padding: 4px 12px;
    font-size: 0.8em;
    text-decoration: none;
    display: inline-block;
}

/* even more venue / browse stuff*/
.venue-details {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 1px solid #ddd;
}

.venue-list {
    margin-top: 20px;
}

/* Pagination CSS */
.pagi-container {
    margin-top: 20px;
    text-align: center;
}

.pagi-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.pagi-item {
    margin: 0 5px;
}

.pagi-link {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #007bff;
    background: white;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    display: inline-block;
    box-shadow: none;
}

.pagi-item.disabled .pagi-link.pagi-ellipsis {
    cursor: default;
    box-shadow: none;
    border-color: #dee2e6;
    color: #6c757d;
}

.pagi-item.active .pagi-link {
    background-color: #007bff;
    color: white;
}


.streaming-icon {
    height: 40px;
    width: auto;
    margin: 0 10px;
}

/* app.css */



.rating-label {
    min-width: 150px;
    display: inline-block;
    text-align: left;
    margin-right: 10px;
}

.rating-container {
    display: flex;
    align-items: center;
    justify-items: flex-end;
    margin-bottom: 8px;
}

.star-rating {
    color: #ccc !important; /* Unselected stars */
}

    .star-rating .rz-rating-star {
        font-size: 1.65rem;
    }

.rz-rating-star-selected {
    color: darkred !important; /* Selected stars */
}

.comment-textarea {
    width: 100%;
    height: 6em;
    line-height: 1.5;
    padding: 20px;
    margin: 5px 0;
    margin-left: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

/* Inline reply shown immediately after submitting (before bulk pipeline commits) */
.inline-reply {
    background: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
}

.inline-reply h4 {
    margin: 0 0 5px 0;
    font-size: 0.95em;
    color: #495057;
}

.inline-reply p {
    margin: 0;
}

/* Remove any custom scrollbar styling */

/* For Firefox */
* {
    scrollbar-width: auto !important;
    scrollbar-color: auto !important;
}

/* Override Radzen scrollbar styles to use browser defaults */
::-webkit-scrollbar,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
    all: unset !important;
}

/* Also add these to target Radzen components specifically */
.rz-datatable-scrollable-wrapper ::-webkit-scrollbar,
.rz-datatable-scrollable-wrapper ::-webkit-scrollbar-thumb,
.rz-datatable-scrollable-wrapper ::-webkit-scrollbar-track {
    all: unset !important;
}

/* Basic scrollbar visibility */
::-webkit-scrollbar {
    display: block !important;
    background: transparent !important;
    width: auto !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

/* Ensure Radzen components follow the same */
.rz-datatable-scrollable-wrapper ::-webkit-scrollbar,
.rz-body ::-webkit-scrollbar {
    display: block !important;
    background: transparent !important;
    width: auto !important;
}

.rz-datatable-scrollable-wrapper ::-webkit-scrollbar-thumb,
.rz-body ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0 !important;
}

.rz-datatable-scrollable-wrapper ::-webkit-scrollbar-track,
.rz-body ::-webkit-scrollbar-track {
    background: transparent !important;
}
/* Radio button styling */
.radio-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

    .radio-container input[type="radio"],
    input[type="radio"] {
        appearance: none !important;
        -webkit-appearance: none !important;
        width: 16px !important;
        height: 16px !important;
        border: 2px solid #333 !important;
        border-radius: 50% !important;
        margin-right: 8px !important;
        position: relative !important;
        cursor: pointer !important;
        padding: 0 !important;
        min-width: 16px !important;
        min-height: 16px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

        input[type="radio"]:checked {
            background-color: #333 !important;
            border: 2px solid #333 !important;
        }

            input[type="radio"]:checked::after {
                content: '' !important;
                position: absolute !important;
                top: 50% !important;
                left: 50% !important;
                transform: translate(-50%, -50%) !important;
                width: 6px !important;
                height: 6px !important;
                background-color: white !important;
                border-radius: 50% !important;
            }

    .radio-container label {
        cursor: pointer !important;
        margin: 0 !important;
        line-height: normal !important;
    }

.lineup-section {
    margin-bottom: 20px;
}

.autosuggest-container {
    margin-left: 24px;
    margin-top: 8px;
}

.create-new-link {
    display: block;
    margin-top: 4px;
    margin-left: 4px;
}

/* Adjust HxAutosuggest container width */
::deep .hx-autosuggest {
    max-width: 400px;
}

.autosuggest-wrapper {
    margin-left: 24px;
    margin-bottom: 16px;
    max-width: 400px;
}

    .autosuggest-wrapper a {
        display: inline-block;
        margin-top: 4px;
    }

/* Ensure HxAutosuggest doesn't get squashed */
::deep .hx-autosuggest {
    width: 100%;
    min-width: 200px;
}


/* check boxx stuff*/
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

    input[type="checkbox"]:checked {
        background-color: white; /* Changed to white */
        border-color: #333;
    }

        input[type="checkbox"]:checked::after {
            content: '\2714';
            color: #333; /* Changed to dark color */
            font-size: 11px;
            display: block;
            text-align: center;
        }

.label-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

    .label-checkbox label {
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
    }

@-moz-document url-prefix() {
    input[type="checkbox"]:checked::after {
        margin-top: 0;
    }
}

.checkbox-container {
    display: flex;
    align-items: center;
}

input[type="checkbox"]::before,
input[type="checkbox"]::after {
    box-sizing: border-box;
}

.index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .grid-item:hover {
        transform: translateY(-5px);
    }

    .grid-item img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 8px;
    }

    .grid-item h3 {
        margin: 10px;
        font-size: 1.1em;
    }

    .grid-item p {
        margin: 5px 10px;
        font-size: 0.9em;
        color: #666;
    }

.carousel-news-item {
    position: relative;
    height: 400px;
}

    .carousel-news-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
}

.section-news,
.section-events,
.section-venues,
.section-cities,
.dual-section {
    margin-bottom: 40px;
}

.dual-section {
    display: block; /* Change from grid to block */
    margin-bottom: 40px;
}

.section-artists,
.section-groups {
    margin-bottom: 30px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    /* Remove the border-bottom if you don't want the blue line */
    /* border-bottom: 2px solid #007bff; */
}

.info-toggle {
    font-size: 14px; /* Adjust as needed */
    font-weight: normal; /* Remove bold */
    margin-top: 5px; /* Add some spacing */
}

/*this is the hxautosuggest couldn't find any panel*/
.p-2 {
    color: white;
}

.search-field {
    width: 400px;
    display: flex;
    justify-content: space-between; /* Align label and input/dropdown */
    align-items: center;
    margin: 10px 0;
    gap: 10px;
    text-align: left;
}

    .search-field > div {
        display: inline-block;
        text-align: left;
    }

.advanced-search {
    margin-top: 10px;
  
    /* Removed border styles to ensure consistency */
}

/* Check if datepicker styles already exist, if they do, adjust as needed */

/* Promoted Item Styles (Albums, Events, etc.) */
.promoted-item {
    border: 2px solid #DAA520 !important;
    background: linear-gradient(145deg, #F5F5DC, #FFFACD);
    position: relative;
    border-radius: 8px;
    padding: 8px;
}

.promoted-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #DAA520; /* Gold background */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
}

/* Company Dashboard Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0;
}

.campaigns-grid,
.events-grid,
.venues-grid,
.albums-grid,
.artists-grid,
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}



.campaign-header h5,
.event-header h5,
.venue-header h5,
.album-info h5,
.artist-info h5,
.group-info h5 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.campaign-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.campaign-status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.campaign-status.inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.campaign-stats,
.venue-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.stat span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.event-location,
.venue-location,
.album-artist,
.artist-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.event-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.event-date {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-date-more {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.album-image,
.artist-image,
.group-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.album-image img,
.artist-image img,
.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.album-date,
.artist-fans,
.group-details {
    color: #6c757d;
    font-size: 0.85rem;
}



/* Mini charts for dashboard cards */
.dashboard-mini-chart,
.event-chart,
.venue-chart,
.album-chart,
.artist-chart,
.group-chart {
    height: 60px;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0; /* Below buttons */
}




/* DRY: Universal card styles */
.campaign-card,
.event-card,
.venue-card,
.album-card,
.artist-card,
.group-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative; /* Ensure buttons are clickable */
    display: flex;
    flex-direction: column;
    z-index: 3;
    overflow: visible;
    min-height: 250px;
    margin-bottom: 0;
}

.campaign-card:hover,
.event-card:hover,
.venue-card:hover,
.album-card:hover,
.artist-card:hover,
.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}



/* AGGRESSIVE FIX: Force chart to fill container completely */
.campaign-chart-container,
.tracker-chart-container,
.owner-details .chart-container .campaign-chart-container {
    width: 100%;
    height: 400px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    background: transparent;
    box-sizing: border-box;
    overflow: hidden;
}

/* Tracker chart specific - light background for dark axis colors */
.tracker-chart-container {
    height: 300px !important;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.tracker-chart {
    width: 100%;
    height: 100%;
}

/* uPlot legend styling for tracker chart */
.tracker-chart-container .u-legend {
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* AGGRESSIVE: Inner chart must fill 100% immediately */
.campaign-chart {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    box-sizing: border-box;
}

/* FORCE uPlot canvas/SVG to fill container */
.campaign-chart canvas,
.campaign-chart svg,
.campaign-chart > div {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Specific to owner analytics - no extra space */
.owner-details .chart-container {
    margin: 0;
    padding: 0;
}

/* uPlot legend styles removed - using sidebar approach instead */

/* Fix for campaign elements table positioning */
.card.mt-3 {
    margin-top: 1rem !important;
    z-index: 1;
    position: relative;
}

/* Ensure dashboard edit buttons are clickable above chart overlays */
.dashboard-section .btn-sm,
.dashboard-section .btn-primary,
.dashboard-section .btn-outline-secondary,
.dashboard-section .btn-outline-danger {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* Make grid rows MUCH taller for 30-day trend charts (250px) */
.rz-datatable-data tr {
    min-height: 250px !important;
    height: 250px !important;
}

.rz-datatable-data td {
    vertical-align: middle;
    padding: 15px 8px !important;
}

/* Adjust mini chart container sizing for taller rows */
.rz-datatable-data .d-flex {
    height: 200px !important;
    width: 200px !important;
}

/* Fix dashboard section content area sizing */
.dashboard-section {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.dashboard-section .campaign-grid,
.dashboard-section .venue-grid,
.dashboard-section .album-grid {
    display: grid;
    gap: 20px;
    position: relative;
    z-index: 2;
}


/* DRY: Universal card stats layout */
.campaign-card .campaign-stats,
.venue-card .venue-stats,
.album-card .album-stats,
.event-card .event-stats,
.group-card .group-details,
.artist-card .artist-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
   
}

/* DRY: Universal stat styling */
.stat {
    flex: 1;
    text-align: center;
}

.stat label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.stat span {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Mini chart container and inner chart base styles (moved from MiniChart component) */
.mini-chart-container {
    width: 100%;
    height: 100%;
    position: relative;
    min-width: 100px;
    min-height: 70px;
}

.mini-chart {
    width: 100%;
    height: calc(100% + 35px);
    min-height: 40px;
    transform: translateY(-40px);
}

/* DRY: Universal chart positioning within cards - use flexbox for proper spacing */
.dashboard-mini-chart,
.event-chart,
.city-chart,
.venue-chart,
.album-chart,
.artist-chart,
.group-chart {
    position: relative;
    z-index: 1;
    margin-top: auto; /* Push chart to bottom */
    padding-top: 8px; /* Small gap between content and chart */
    margin-bottom: 0;
    height: 80px;
    width: 100%;
    flex-shrink: 0; /* Don't let chart shrink */
    min-height: 80px;
}

/* Responsive breakpoints for mini charts (moved from MiniChart component) */
@media (max-width: 768px) {
    .mini-chart-container,
    .mini-chart,
    .dashboard-mini-chart,
    .event-chart,
    .city-chart,
    .venue-chart,
    .album-chart,
    .artist-chart,
    .group-chart {
        min-height: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .mini-chart-container,
    .mini-chart,
    .dashboard-mini-chart,
    .event-chart,
    .city-chart,
    .venue-chart,
    .album-chart,
    .artist-chart,
    .group-chart {
        min-height: 50px;
        height: 50px;
    }
}

/* DRY: Grid layouts - FIXED to match HTML class names */
.campaigns-grid,
.albums-grid,
.venues-grid,
.groups-grid,
.artists-grid,
.events-grid {
    display: grid;
    gap: 15px;
    position: relative;
    z-index: 2;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    min-height: 180px;
}

.campaigns-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Reduce dead space in dashboard sections */
.dashboard-section {
    margin-bottom: 25px;
}

.dashboard-section h3 {
    margin-bottom: 15px;
}

/* Responsive breakpoints for main charts */
@media (max-width: 768px) {
    .campaign-chart-container {
        min-height: 250px;
    }
    .campaign-chart {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .campaign-chart-container {
        min-height: 200px;
    }
    .campaign-chart {
        min-height: 200px;
    }
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-data p {
    margin: 0;
    font-size: 1.1rem;
}

/* Weekly Events Additional Styles */
.subsection-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.subsection-header h5 {
    color: #495057;
    margin-bottom: 0;
    font-weight: 600;
}

.subsection-header i {
    color: #007bff;
    margin-right: 0.5rem;
}

.event-card.weekly-event {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.event-card.standard-event {
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.event-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.event-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.event-date-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.event-date-link:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.event-date-link:hover .event-date {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.event-date {
    transition: all 0.2s ease;
}

/* Owner Details Component Styles */
.owner-details {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.owner-details.hidden .owner-details-content {
    display: none;
}

.owner-details-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owner-details-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.owner-details-content {
    padding: 20px;
}

.chart-section,
.campaigns-section,
.email-section,
.countries-section {
    margin-bottom: 30px;
}

.chart-section h5,
.campaigns-section h5,
.email-section h5,
.countries-section h5 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.chart-container {
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.campaign-bid-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-bid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bid-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.bid-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bid-status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.bid-status.inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.bid-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.bid-actions,
.email-actions {
    display: flex;
    gap: 10px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.country-name {
    font-weight: 500;
    color: #2c3e50;
}

.country-clicks {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .section-actions {
        justify-content: center;
    }

    .campaigns-grid,
    .events-grid,
    .venues-grid,
    .albums-grid,
    .artists-grid,
    .groups-grid {
        grid-template-columns: 1fr;
    }

    .campaign-stats,
    .venue-stats,
    .bid-stats {
        flex-direction: column;
        gap: 8px;
    }

    .event-dates {
        flex-direction: column;
        gap: 4px;
    }

    .owner-details-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .countries-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS must come from APP.CSS in the first instance - Company Pages Section */

/* Company Pages Common Styles */
.company-container {
    padding: 20px;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.company-title {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.company-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.company-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.company-info-item {
    padding: 8px 0;
}

.company-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.company-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

/* Company Grid Layout */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Company List Layout */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

/* Company Item (generic for all expandable items) */
.company-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.company-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
}

.company-item-header:hover {
    background: #e9ecef;
}

.company-item-name {
    flex: 1;
    font-weight: 600;
    color: #495057;
}

.company-item-value {
    font-weight: 600;
    color: #28a745;
    font-family: monospace;
    min-width: 100px;
    text-align: right;
}

.company-item-details {
    border-top: 1px solid #dee2e6;
    background: white;
    padding: 15px 30px;
}

/* Company Detail Rows */
.company-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.company-detail-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.company-detail-value {
    font-weight: 600;
    color: #495057;
}

/* Company Total/Subtotal */
.company-total {
    font-weight: bold;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
    margin-top: 8px;
}

.company-subtotal {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    color: #495057;
}

.company-grand-total {
    text-align: right;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #28a745;
    color: #28a745;
}

/* Company Filters */
.company-filters {
    display: flex;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.company-filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-filter-item.date-range-filter {
    min-width: 300px;
}

.company-filter-item label {
    font-weight: 500;
    color: #495057;
}

/* Company Controls */
.company-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.company-export-buttons {
    display: flex;
    gap: 8px;
}

.download-options-box {
    border: 2px solid #007bff;
    padding: 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 20px;
}

.download-options-box h5 {
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Company Links */
.company-view-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.company-view-link:hover {
    text-decoration: underline;
}

/* Company Container and Layout */
.company-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.company-title {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.company-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.company-info-item {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.company-info-item:last-child {
    border-bottom: none;
}

/* Company Card Layout */
.company-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.company-actions {
    display: flex;
    gap: 10px;
}

/* Additional specific styles for invoice date display */
.invoice-date {
    text-align: right;
}

.invoice-date h4 {
    margin: 0;
    color: #495057;
}

.invoice-date p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Minimal team-specific styles (uses company-* classes for containers) */
.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-member-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.assignment-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.assignment-group h5 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 1rem;
}

.assignment-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.assignment-name {
    font-weight: 500;
    color: #495057;
}

/* Company Hamburger Menu Styles */
.company-hamburger-menu {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.hamburger-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    color: #495057;
    transition: color 0.2s;
}

.hamburger-button:hover {
    color: #007bff;
}

.hamburger-btn {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.hamburger-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
    outline: none;
}

.company-hamburger-menu .dropdown-menu {
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #dee2e6;
}

.company-hamburger-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.company-hamburger-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.company-hamburger-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

.company-hamburger-menu .dropdown-item .text-muted {
    margin-left: auto;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    z-index: 1000;
    padding: 10px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.menu-item.conditional {
    color: #6c757d;
}

.menu-item.conditional:hover {
    color: #495057;
}

.menu-tooltip {
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 4px;
}



/* Company Support Styles */
.support-container {
    padding: 20px;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.support-section {
    margin-bottom: 30px;
}

.ticket-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-id {
    font-weight: 600;
    color: #495057;
}

.ticket-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ticket-status.open {
    background: #d4edda;
    color: #155724;
}

.ticket-status.closed {
    background: #f8d7da;
    color: #721c24;
}

.ticket-subject {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.ticket-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.audit-trail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.audit-timestamp {
    color: #6c757d;
    font-size: 0.9rem;
    min-width: 120px;
}

.audit-action {
    color: #495057;
    font-weight: 500;
}

.audit-user {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Company Email Management Styles */
.email-management-container {
    padding: 20px;
}

.email-section {
    margin-bottom: 30px;
}

.email-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.email-address {
    font-weight: 600;
    color: #495057;
}

.email-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
}

.email-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.email-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Company Mobile Responsive Styles */
@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .company-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .balances-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .invoice-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-buttons {
        flex-wrap: wrap;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
    }
    
    .weekly-event-item,
    .campaign-header,
    .bid-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .click-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .team-member-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .team-member-info {
        flex-direction: column;
        text-align: center;
    }
    
    .support-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .audit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .email-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .menu-dropdown {
        min-width: 200px;
    }
}

/* Company Cursor Pointer Utility */
.company-cursor-pointer {
    cursor: pointer;
}

/* Company Loading States */
.company-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

/* Company Badge Styles */
.company-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-badge.primary {
    background: #007bff;
    color: white;
}

.company-badge.success {
    background: #28a745;
    color: white;
}

.company-badge.warning {
    background: #ffc107;
    color: #212529;
}

.company-badge.danger {
    background: #dc3545;
    color: white;
}

.company-badge.info {
    background: #17a2b8;
    color: white;
}

.company-badge.light {
    background: #f8f9fa;
    color: #495057;
}

.company-badge.dark {
    background: #343a40;
    color: white;
}

/* Company Form Validation */
.company-form-group {
    margin-bottom: 1rem;
}

.company-form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.company-form-control {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.company-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.company-form-validation {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.company-form-help {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Company Character Counter */
.company-character-counter {
    font-size: 0.9rem;
    text-align: right;
    margin-top: 0.25rem;
}

.company-character-counter.warning {
    color: #dc3545;
}

.company-character-counter.normal {
    color: #6c757d;
}

/* Company Utility Classes */
.company-text-muted {
    color: #6c757d;
}

.company-text-primary {
    color: #007bff;
}

.company-text-success {
    color: #28a745;
}

.company-text-warning {
    color: #ffc107;
}

.company-text-danger {
    color: #dc3545;
}

.company-bg-light {
    background-color: #f8f9fa;
}

.company-border-light {
    border-color: #dee2e6;
}

.company-rounded {
    border-radius: 0.25rem;
}

.company-shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-mt-1 { margin-top: 0.25rem; }
.company-mt-2 { margin-top: 0.5rem; }
.company-mt-3 { margin-top: 1rem; }
.company-mt-4 { margin-top: 1.5rem; }
.company-mt-5 { margin-top: 3rem; }

.company-mb-1 { margin-bottom: 0.25rem; }
.company-mb-2 { margin-bottom: 0.5rem; }
.company-mb-3 { margin-bottom: 1rem; }
.company-mb-4 { margin-bottom: 1.5rem; }
.company-mb-5 { margin-bottom: 3rem; }

.company-p-1 { padding: 0.25rem; }
.company-p-2 { padding: 0.5rem; }
.company-p-3 { padding: 1rem; }
.company-p-4 { padding: 1.5rem; }
.company-p-5 { padding: 3rem; }

.company-px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.company-px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.company-px-3 { padding-left: 1rem; padding-right: 1rem; }
.company-px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.company-px-5 { padding-left: 3rem; padding-right: 3rem; }

.company-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.company-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.company-py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.company-py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.company-py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Global Live Chat Styles */
.global-live-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.global-live-chat .company-header {
    background: #1b6ec2;
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.global-live-chat .company-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.global-live-chat .company-header .btn {
    padding: 2px 6px;
    font-size: 12px;
    border: none;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message.user {
    background: #e3f2fd;
    margin-left: auto;
    text-align: right;
}

.chat-message.support {
    background: #f5f5f5;
    margin-right: auto;
}

.chat-message.system {
    background: #fff3cd;
    text-align: center;
    font-style: italic;
    font-size: 12px;
    margin: 0 auto;
}

.chat-message-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid #eee;
}

.chat-input-area .input-group {
    margin-bottom: 0;
}

.chat-input-area input {
    border-radius: 4px 0 0 4px;
    border-right: none;
    font-size: 14px;
    margin-bottom: 0;
}

.chat-input-area .btn {
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    padding: 6px 12px;
}

.chat-typing-indicator {
    padding: 8px 12px;
    font-style: italic;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
}

.global-live-chat.minimized {
    height: auto;
    max-height: none;
}

.global-live-chat.minimized .chat-messages,
.global-live-chat.minimized .chat-input-area,
.global-live-chat.minimized .chat-typing-indicator {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .global-live-chat {
        width: 300px;
        right: 10px;
        bottom: 10px;
    }
    
    .chat-messages {
        height: 250px;
    }
}

/* End of Company Pages CSS */

/* Notification System Styles - Using existing app patterns */

/* Weekly Event Extension Sub-line Styling */
.company-detail-sub {
    margin-top: 0.25rem;
    padding-left: 1.5rem;
}

.company-detail-sub .company-detail-label {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .global-live-chat {
        right: 10px;
        bottom: 10px;
        width: 280px;
    }
    
    .chat-messages {
        max-height: 200px;
    }
}

/* Team Member Management - Only unique styles not already in company classes */
.team-member-inactive {
    opacity: 0.6;
    border-left: 4px solid #dc3545;
}

.team-member-inactive .company-item-name {
    text-decoration: line-through;
    color: #6c757d;
}

/* Modal centering fix */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
}

/* Gallery and Picture Area Styles */
.gallery-image, .picture-image {
    max-width: 300px; /* Twice the normal thumbnail size */
    max-height: 300px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gallery-thumbnail, .picture-thumbnail {
    max-width: 300px;
    max-height: 300px;
    overflow: hidden;
}

/* Ensure responsive behavior */
@media (max-width: 768px) {
    .gallery-image, .picture-image {
        max-width: 200px;
        max-height: 200px;
    }
    
    .gallery-thumbnail, .picture-thumbnail {
        max-width: 200px;
        max-height: 200px;
    }
}

/* Currency Dropdown in PayPal Page Title */
.currency-dropdown {
    min-width: 200px !important;
    max-width: 250px !important;
    margin: 0 8px !important;
    vertical-align: middle !important;
}

/* Notification Badge - used in sidebar for unread count */
.notification-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 2px 4px;
    background-color: #dc3545;
    color: white;
    border-radius: 9px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    z-index: 3000; /* High z-index to ensure it's on top */
    pointer-events: none; /* Don't interfere with clicks */
}

/* Same positioning for collapsed sidebar - consistent top-left position */
.custom-sidebar.collapsed .notification-badge {
    top: -8px;
    left: -8px;
}

/* Reaction Count Badge - used in comments for reaction counts */
.reaction-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #666;
    color: white;
    border-radius: 10px;
    padding: 0 4px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

/* Notification link styling in sidebar panel */
.sidebar-panel a {
    color: white !important;
    text-decoration: underline !important;
}

.sidebar-panel a:hover {
    color: #ccc !important;
}

/* Photo Credit Display */
.photo-credit-container {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    font-size: 0.9em;
}

.photo-credit-text {
    color: #495057;
    margin-bottom: 4px;
}

.creative-commons-link {
    margin-top: 4px;
}

.creative-commons-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.85em;
}

.creative-commons-link a:hover {
    text-decoration: underline;
}

.radzen-sidebar-content {
    padding: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   COOKIE CONSENT BANNER
   GDPR/ePrivacy compliant - essential cookies only
   ======================================== */
#efm-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    font-size: 0.9rem;
    line-height: 1.5;
    border-top: 2px solid #3498db;
}

#efm-cookie-banner.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

#efm-cookie-banner.cookie-banner-hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #3498db;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0 0 4px 0;
}

.cookie-banner-text a {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #85c1e9;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-banner-accept {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.cookie-banner-accept:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        gap: 12px;
    }

    .cookie-banner-icon {
        display: none;
    }

    .cookie-banner-text {
        min-width: unset;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner-accept {
        width: 100%;
        padding: 10px;
    }
}

