/*
Theme Name: Backstage Admin
Version: 0.0.0
*/
:root {
    --header-height: 80px;
    --sidebar-width : 240px;
    --cfbc-white: #fff;
    --cfbc-white-dark: #F9F9F9;
    --cfbc-blue: var(--event-primary-color, #4323FF);
    --cfbc-blue-light: #3E8CFF;
    --cfbc-black-total: #000;
    --cfbc-black: #141416;
    --cfbc-black-light: #212020;
    --cfbc-gray-dark: #1D1D1F;
    --cfbc-gray-dark-old: #23262F;
    --cfbc-gray: #2F2F31;
    --cfbc-gray-boder: #34373b;
    --cfbc-gray-light: #777E90;
    --cfbc-cyan: var(--event-secondary-color, #4FF6B1);
    --cfbc-gold: #FFD166;
    --cfbc-red: #E74C3C;
    --cfbc-orange: #FD8D0A;
    --cfbc-green: #2ECC71;
    --cfbc-dark-blue: #4070A0;
    --cfbc-yellow: #FFCC00;
    --cfbc-indigo: #6707FD;
    --font-size-small : 12px;
    --font-size-normal : 14px;
    --font-size-large : 16px;
    --font-size-xl : 20px;
    --font-size-2xl : 25px;
    --gray--light: #313440;
    --gray-dark: rgba(0, 0, 0, 0.18);
    --gray-light: #2F2F31;
    --black-light: #141416;
    --black--light: #1D1D1F;
    --success: #32CD32;
    --error : #FF4500;
    --warning: #e9bd0c;
    --gray-text : #777E90;
    --dropdown-text : #23262F;
    --dropdown-hover-bg: #23262F;
}

* {
    /* margin: 0;
    padding: 0; */
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
}

a {
    color: var(--cfbc-white);
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    color: var(--cfbc-white);
    background: var(--cfbc-gray-dark);
    font-size: var(--font-size-normal);
    height: 100vh;
    overflow: hidden;
}

::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
	background-color: transparent;
}

::-webkit-scrollbar
{
	width: 10px;
    height: 10px;
	background-color: transparent;
}

::-webkit-scrollbar-thumb
{
	background-color:  var(--cfbc-blue);
    border-radius: 10px;
    width: 2px;
}

/** Util/button */
.button {
    background: var(--cfbc-blue);
    padding: 10px 28px;
    border-radius: 8px;
    font-size: var(--font-size-normal);
    line-height: 21px;
    letter-spacing: 0.21875px;
    color: var(--cfbc-white);
    border: 2px solid var(--cfbc-blue);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s;
}

.button.disabled {
    color: var(--cfbc-white) !important;
    background-color: var(--cfbc-black) !important;
    border: 2px solid var(--cfbc-black);
    cursor: not-allowed;
}

.button:hover {
    color: var(--cfbc-white);
    background: var(--black--light);
}

.button:active {
    color: var(--cfbc-white);
    background: var(--gray-light);
}

.button.--add {
    display: flex;
    align-items: center;
    gap: 5px;
}

.button.--add .dashicons {
    transition: none;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bsa-tooltip.select__options_evnet .bsa-select__selected {
    height: 10px !important;
    padding: 0px !important;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
}
div#selected-company-main {
    cursor: pointer;
}
.bsa-tooltip.select__options_evnet {
    background: #27272A;
    border-radius: 8px;
    padding: 10px 0 10px 0px;
    position: relative;
    overflow: visible !important;
}

.bsa-tooltip.select__options_evnet .bsa-select__options {
    position: absolute;
    z-index: 10000 !important;
    min-width: 150px;
    margin-top: 5px;
    display: none;
}

.bsa-tooltip.select__options_evnet .bsa-select__options.--open {
    display: block !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/** Util/Input */
input,
.bsa-select__selected {
    color: var(--cfbc-white);
    font-weight: normal;
    height: 40px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--cfbc-gray); /* Default background */
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

/* Styling for elements inside .bsa-tooltip */
.bsa-tooltip.select__options_evnet input, 
.bsa-tooltip.select__options_evnet .bsa-select__selected {
    background-color: transparent; /* Darker gray when inside bsa-tooltip */
}

/** Util/Textarea */
textarea {
    color: var(--cfbc-white);
    font-weight: normal;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--cfbc-gray);
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

/** Util/Checkbox Item*/
.bsa-checkbox-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bsa-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(50% - 7.5px);
}

/** Util/Checkbox */
input[type="checkbox"] {
    position: relative;
    width: 18px!important;
    height: 18px!important;
    color: var(--cfbc-black);
    border: 1px solid #777E90;
    border-radius: 4px!important;
    appearance: none;
    outline: 0;
    cursor: pointer;
    transition: transparent 175ms cubic-bezier(0.1, 0.1, 0.25, 1);
    margin: 0!important;
    padding: 0!important;
}

input[type="checkbox"]::before {
    position: absolute;
    content: '';
    display: block;
    top: 1px;
    left: 6px;
    width: 4px;
    height: 10px;
    border-style: solid;
    border-color: #15171c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

input[type="checkbox"]:checked {
    color: var(--cfbc-white)fff;
    border-color: var(--cfbc-cyan);
    background: var(--cfbc-cyan);
}

input[type="checkbox"]:checked::before {
    opacity: 1;
}

/** Util/Table */
.bsa-table-container {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: visible;
}


.bsa-table {
    min-width: -webkit-fill-available;
    min-width: -moz-available;
    min-width: fit-content;
    width: 100%;
}

.bsa-table__info {
    display: grid;
    gap: 15px;
    background: var(--cfbc-gray);
    padding: 0 20px;
    align-items: center;
    box-sizing: border-box;
    
}
.bsa-row-toggle{
    font-size: 16px;
    cursor: pointer;
    color: var(--event-secondary-color, #4FF6B1);
    padding-right: 2px;
    line-height: 0;
    display: inline-block;
}
.bsa-row-toggle {
    display: inline-block;
    transition: transform 0.3s ease;
}

.bsa-row-toggle.--open {
    transform: rotate(90deg);
}
.bsa-table-container.users-table .bsa-table__info{
    grid-template-columns: 50px minmax(150px, 1fr) minmax(120px, 1fr) minmax(140px, 1fr) minmax(250px, 1.8fr) minmax(320px, 2.5fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) 90px;
    min-width: fit-content;
}

.bsa-table-container.users-table .bsa-table__info > div.org-select-container {
    overflow: visible;
}

.bsa-table-container.users-table .user-events,.user-roles  {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: left !important;
    justify-content: revert-layer !important;
    align-items: flex-start !important;
  }
.bsa-table-container.users-table .bsa-table__info.--highlight-events {
    background: var(--cfbc-blue);
}
.bsa-table-container.users-table .bsa-table__info > div {
    justify-content: left !important;
    overflow: hidden;
    white-space: nowrap;
}

.bsa-table-container.users-table .bsa-table__info > div.events-select-container,
.bsa-table-container.guests-table .bsa-table__info > div.events-select-container {
    overflow: visible;
}

.bsa-table-container.guests-table .bsa-table__info > div {
    justify-content: left !important;
    overflow: visible;
}

.bsa-table-container.guests-table .events-select-container .bsa-select .bsa-select__selected {
    padding-left: 0;
}

.bsa-table-container.users-table .bsa-table__info > div:has(.bsa-table-actions) {
    overflow: visible;
}

.bsa-table-container.users-table .bsa-table__row:first-child  {
    border-radius: 0 !important;
}
.bsa-table-container.users-table .bsa-table__row.bsa-table__events-row .bsa-table__info{
    background: var(--cfbc-gray-dark) !important;
}
.bsa-table__info > div {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    justify-content: space-between;
}
.bsa-table-container.events-table .sortable {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
}
.bsa-table-container.events-table .sortable .sort-icon {
    transition: none;
    transform: rotate(0deg);
}
.bsa-table-container.events-table .sortable.asc .sort-icon {
    transform: rotate(0deg);
}
.bsa-table-container.events-table .sortable.desc .sort-icon {
    transform: rotate(180deg);
}
.bsa-table-container.events-table .sortable.hover:hover .sort-icon {
    transform: rotate(180deg) !important;
}
.bsa-table-container.events-table .sortable.asc.hover:hover .sort-icon {
    transform: rotate(0deg) !important;
}
.bsa-table-container.events-table .sortable.desc.hover:hover .sort-icon {
    transform: rotate(180deg) !important;
}
.bsa-table-container.events-table .sort-icon {
    margin-left: 8px;
    transition: transform 0.3s;
    color: #4eeeac;
    cursor: pointer;
}

.bsa-table-container.events-table .sortable.asc .sort-icon {
    transform: rotate(180deg);
}

.bsa-table-container.events-table .sortable.desc .sort-icon {
    transform: rotate(0deg);
}

.bsa-table-container.events-table {
    min-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--event-primary-color, #4323FF) transparent;
    overflow-y: auto;
    padding-bottom: 50px;
}

.bsa-table-container.events-table::-webkit-scrollbar {
    height: 8px;
}

.bsa-table-container.events-table::-webkit-scrollbar-track {
    background: transparent;
}

.bsa-table-container.events-table::-webkit-scrollbar-thumb {
    background: var(--event-primary-color, #4323FF);
    border-radius: 4px;
}

.bsa-table-container.events-table::-webkit-scrollbar-thumb:hover {
    background: #3a1dd9;
}

.bsa-table-container.events-table .bsa-table {
    min-width: 1650px;
}

.bsa-table-container.events-table {
    scroll-behavior: smooth;
}

.bsa-table-container.events-table .bsa-table__head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--cfbc-gray-dark);
}

.bsa-table-container.events-table .bsa-table__head .bsa-table__row {
    background: var(--cfbc-gray-dark);
}

.bsa-table-container.events-table .bsa-table__info {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    position: relative;
}

.bsa-table-container.events-table .bsa-table__row {
    position: relative;
    z-index: 1;
}

.bsa-table-container.events-table .bsa-table__row:hover,
.bsa-table-container.events-table .bsa-table__row.has-open-dropdown {
    z-index: 100 !important;
}

.bsa-table-container.events-table .bsa-table__body {
    position: relative;
    overflow: visible;
    z-index: 1;
    padding-bottom: 10px;
}

.bsa-table-container.events-table .bsa-table__head .bsa-table__info,
.bsa-table-container.events-table .bsa-table__body .bsa-table__info {
    grid-template-columns: 
        minmax(180px, 1.5fr)  /* Name */
        minmax(140px, 0.9fr)  /* Type */
        minmax(140px, 0.9fr)  /* Category */
        minmax(100px, 0.7fr)  /* Date */
        minmax(120px, 0.8fr)  /* Location */
        minmax(90px, 0.6fr)   /* Status */
        minmax(90px, 0.6fr)   /* Attendance */
        minmax(140px, 1fr)    /* Requested By */
        minmax(100px, 0.7fr)  /* Created By */
        minmax(100px, 0.7fr)  /* Pay Gateway */
        minmax(170px, 1fr)    /* URL */
        95px;                 /* Actions */
}

.bsa-table-container.events-table.--with-bulk-select .bsa-table__head .bsa-table__info,
.bsa-table-container.events-table.--with-bulk-select .bsa-table__body .bsa-table__info {
    grid-template-columns:
        40px                  /* Select */
        minmax(180px, 1.5fr)  /* Name */
        minmax(140px, 0.9fr)  /* Type */
        minmax(140px, 0.9fr)  /* Category */
        minmax(100px, 0.7fr)  /* Date */
        minmax(120px, 0.8fr)  /* Location */
        minmax(90px, 0.6fr)   /* Status */
        minmax(90px, 0.6fr)   /* Attendance */
        minmax(140px, 1fr)    /* Requested By */
        minmax(100px, 0.7fr)  /* Created By */
        minmax(100px, 0.7fr)  /* Pay Gateway */
        minmax(170px, 1fr)    /* URL */
        95px;                 /* Actions */
}

.bsa-table-container.events-table.--org-admin-no-staff .bsa-table__head .bsa-table__info,
.bsa-table-container.events-table.--org-admin-no-staff .bsa-table__body .bsa-table__info {
    grid-template-columns:
        minmax(220px, 1.7fr)  /* Name */
        minmax(150px, 1fr)    /* Type */
        minmax(150px, 1fr)    /* Category */
        minmax(110px, 0.8fr)  /* Date */
        minmax(140px, 1fr)    /* Location */
        minmax(120px, 0.8fr)  /* Created By */
        minmax(180px, 1.2fr)  /* URL */
        95px;                 /* Actions */
}

.bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__head .bsa-table__info,
.bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__body .bsa-table__info {
    grid-template-columns:
        40px                  /* Select */
        minmax(220px, 1.7fr)  /* Name */
        minmax(150px, 1fr)    /* Type */
        minmax(150px, 1fr)    /* Category */
        minmax(110px, 0.8fr)  /* Date */
        minmax(140px, 1fr)    /* Location */
        minmax(120px, 0.8fr)  /* Created By */
        minmax(180px, 1.2fr)  /* URL */
        95px;                 /* Actions */
}

.bsa-table-container.events-table .bsa-table__info > div {
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.bsa-table-container.events-table .events-bulk-select-cell {
    justify-content: center;
}

.bsa-table-container.events-table .bsa-table__info > div:not(.bsa-tooltip) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bsa-table-container.events-table .bsa-table__info .bsa-tooltip {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.bsa-table-container.events-table .bsa-table__info .bsa-tooltip.select__options_evnet {
    z-index: 100;
    overflow: visible !important;
}

.event-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.event-status-badge.--upcoming {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.15);
}

.event-status-badge.--completed {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.event-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}

.event-category-badge.--company_wide {
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.event-category-badge.--departmental {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.event-category-badge.--mandatory {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.event-attendance {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cfbc-gray-light);
}

.event-attendance .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.event-type-cell,
.event-category-cell {
    position: relative;
    overflow: visible !important;
    min-width: 0;
}

.event-type-cell select,
.event-category-cell select {
    display: none;
}

.event-type-cell .select2-container,
.event-category-cell .select2-container {
    width: 100% !important;
    max-width: 100%;
    display: block !important;
}

.event-type-cell .select2-container--default .select2-selection--single,
.event-category-cell .select2-container--default .select2-selection--single {
    background: var(--cfbc-gray-dark) !important;
    border: 1px solid var(--cfbc-gray) !important;
    border-radius: 4px;
    height: 30px !important;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.event-type-cell .select2-container--default .select2-selection--single .select2-selection__rendered,
.event-category-cell .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--cfbc-white) !important;
    font-size: 12px;
    line-height: 28px !important;
    padding-left: 6px;
    padding-right: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-type-cell .select2-container--default .select2-selection--single .select2-selection__arrow,
.event-category-cell .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.event-type-cell .select2-container--default .select2-selection--single .select2-selection__arrow b,
.event-category-cell .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--cfbc-gray-light) transparent transparent transparent !important;
    border-width: 5px 4px 0 4px;
}

.event-type-cell .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
.event-category-cell .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--cfbc-gray-light) transparent !important;
    border-width: 0 4px 5px 4px;
}

.event-type-cell .select2-container--default .select2-selection--single .select2-selection__placeholder,
.event-category-cell .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--cfbc-gray-light) !important;
    font-size: 11px;
}

.event-type-cell .select2-container--default .select2-selection--single .select2-selection__clear,
.event-category-cell .select2-container--default .select2-selection--single .select2-selection__clear {
    color: var(--cfbc-gray-light);
    font-size: 14px;
    margin-right: 4px;
    font-weight: bold;
}

.event-type-cell .select2-container--default:hover .select2-selection--single,
.event-category-cell .select2-container--default:hover .select2-selection--single {
    border-color: var(--cfbc-blue) !important;
}

.event-type-cell .select2-container--default.select2-container--open .select2-selection--single,
.event-category-cell .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--cfbc-blue) !important;
}

.select2-container--open .select2-dropdown {
    background: var(--cfbc-gray) !important;
    border: 1px solid var(--cfbc-gray-boder) !important;
    border-radius: 6px;
    z-index: 99999 !important;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Ensure open Select2 always appears above modals, popups, etc. */
body > .select2-container--open,
body > .select2-dropdown {
    z-index: 2147483647 !important;
}

.select2-results__options {
    max-height: 200px;
    background: var(--cfbc-gray) !important;
}

.select2-container--default .select2-results__option {
    color: var(--cfbc-white) !important;
    font-size: 12px;
    padding: 8px 12px;
    background: #18181b !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--cfbc-blue) !important;
    color: var(--cfbc-white) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--cfbc-gray-dark) !important;
}

.select2-container--default .select2-results__option--selectable {
    cursor: pointer;
}

.select2-search--dropdown {
    background: var(--cfbc-gray) !important;
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    background: var(--cfbc-gray-dark) !important;
    border: 1px solid var(--cfbc-gray-boder) !important;
    border-radius: 4px;
    color: var(--cfbc-white) !important;
    font-size: 12px;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--cfbc-blue) !important;
}

.select2-container--default .select2-results__message {
    color: var(--cfbc-gray-light) !important;
    padding: 8px 12px;
}

.bsa-table__head .bsa-table__info {
    background: var(--cfbc-gray-dark);
}

.bsa-table__info:hover {
    background: var(--cfbc-gray-dark);
}
.bsa-table-container.users-table .bsa-table_events-row .bsa-table__info{
    background: var(--cfbc-gray-dark);
}

.bsa-table-container.users-table .toggle-container {
    display: flex;
    justify-content: space-between; /* Align items to opposite ends */
    align-items: center; /* Center items vertically */
}

.bsa-table-container.users-table .bsa-row-toggle {
    margin-left: auto; /* Pushes the toggle to the right */
}


.bsa-table__head .bsa-table__info > div {
    font-weight: bold;
    text-transform: uppercase;
    font-size: var(--font-size-small)
}

.bsa-table-container.users-table .bsa-table__head {
    position: sticky;
    top: 0;
    z-index: 1;
}

.users-bulk-actions {
    background: var(--cfbc-gray);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.users-bulk-actions .bulk-actions-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.users-bulk-actions .bulk-actions-count {
    font-size: 14px;
    color: var(--cfbc-white);
}

.users-bulk-actions .bulk-actions-count strong {
    color: var(--cfbc-cyan);
    font-weight: 600;
}

.users-bulk-actions .bulk-actions-buttons {
    display: flex;
    gap: 10px;
}

.users-bulk-actions .button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.users-bulk-actions .bulk-action-delete {
    background: #d63638;
    color: white;
}

.users-bulk-actions .bulk-action-delete:hover {
    background: #b02a2c;
}

.users-bulk-actions .bulk-action-password-reset {
    background: var(--cfbc-cyan);
    color: var(--cfbc-black);
}

.users-bulk-actions .bulk-action-password-reset:hover {
    background: #3dd49a;
}

.users-bulk-actions .bulk-action-clear {
    background: var(--cfbc-gray-dark);
    color: var(--cfbc-white);
    border: 1px solid #777E90;
}

.users-bulk-actions .bulk-action-clear:hover {
    background: #2a2d35;
}

.bsa-table-container.users-table .checkbox-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bsa-table-container.users-table .bsa-table__info.row-selected {
    background: rgba(79, 246, 177, 0.1);
}

.bsa-table-container.users-table .bsa-table__info.row-selected:hover {
    background: rgba(79, 246, 177, 0.15);
}

.bsa-table-container.users-table .bsa-table__info {
    justify-content: space-between;
}

.bsa-table-container.users-table .bsa-table__body {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.bsa-table-container.users-table .bsa-table__body:has(.has-open-dropdown) {
    z-index: 10001;
}

.bsa-table-container.users-table .bsa-table__body:has(.has-open-dropdown) .bsa-table__row {
    z-index: 0;
}

.bsa-table-container.users-table .bsa-table__row {
    position: relative;
    z-index: 1;
}

.bsa-table-container.users-table .bsa-table__row:hover {
    z-index: 100;
}

.bsa-table-container.users-table .bsa-table__row.has-open-dropdown {
    z-index: 1000 !important;
}

.bsa-table-container.users-table .events-select-container,
.bsa-table-container.guests-table .events-select-container {
    position: relative;
    z-index: 2;
}

.site-content:has(.bsa-table-container.users-table) {
    height: auto;
    min-height: 100vh;
}

main:has(.bsa-table-container.users-table) {
    height: auto;
    min-height: 100vh;
}

.main__content:has(.bsa-table-container.users-table) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.bsa-table-container.users-table {
    height: calc(100vh - var(--header-height) - 100px);
    min-height: calc(100vh - var(--header-height) - 100px);
    overflow-y: visible;
    overflow-x: auto;
}


.bsa-table__row:first-child {
    border-radius: 8px 8px 0 0;
}

.bsa-table__body .bsa-table__row:first-child .bsa-table__info {
    border-radius: 8px 8px 0 0;
}

.bsa-table__body .bsa-table__row {
    border-bottom: 1px solid var(--cfbc-gray-boder);
}

.bsa-table__body .bsa-table__row:last-child {
    border-bottom: 0;
}

.bsa-table__body .bsa-table__row:last-child .bsa-table__info {
    border-bottom: 0;
    border-radius: 0 0 8px 8px;
}

.bsa-table-actions-text {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.bsa-table-actions-icon {
    font-size: 12px;
    width: auto;
    height: auto;
}

.bsa-table-actions:hover .bsa-table-actions-text {
    color: var(--cfbc-cyan);
}


@media (min-width: 1920px) {
    .bsa-table-container.events-table .bsa-table {
        min-width: 1600px;
    }
}

@media (min-width: 2560px) {
    .bsa-table-container.events-table .bsa-table {
        min-width: 1800px;
    }
    
    .bsa-table-container.events-table .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table .bsa-table__body .bsa-table__info {
        grid-template-columns: 
            minmax(200px, 1.5fr)  /* Name */
            minmax(150px, 0.9fr)  /* Type */
            minmax(150px, 0.9fr)  /* Category */
            minmax(110px, 0.8fr)  /* Date */
            minmax(130px, 0.9fr)  /* Location */
            minmax(100px, 0.7fr)  /* Status */
            minmax(100px, 0.7fr)  /* Attendance */
            minmax(150px, 1fr)    /* Requested By */
            minmax(110px, 0.8fr)  /* Created By */
            minmax(110px, 0.8fr)  /* Pay Gateway */
            minmax(120px, 0.9fr)  /* URL */
            100px;                /* Actions */
    }

    .bsa-table-container.events-table.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            44px
            minmax(200px, 1.5fr)
            minmax(150px, 0.9fr)
            minmax(150px, 0.9fr)
            minmax(110px, 0.8fr)
            minmax(130px, 0.9fr)
            minmax(100px, 0.7fr)
            minmax(100px, 0.7fr)
            minmax(150px, 1fr)
            minmax(110px, 0.8fr)
            minmax(110px, 0.8fr)
            minmax(120px, 0.9fr)
            100px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__body .bsa-table__info {
        grid-template-columns:
            minmax(240px, 1.8fr)
            minmax(160px, 1fr)
            minmax(160px, 1fr)
            minmax(120px, 0.8fr)
            minmax(150px, 1fr)
            minmax(130px, 0.8fr)
            minmax(200px, 1.2fr)
            100px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            44px
            minmax(240px, 1.8fr)
            minmax(160px, 1fr)
            minmax(160px, 1fr)
            minmax(120px, 0.8fr)
            minmax(150px, 1fr)
            minmax(130px, 0.8fr)
            minmax(200px, 1.2fr)
            100px;
    }
}

@media (max-width: 1366px) {
    .bsa-table-container.events-table .bsa-table {
        min-width: 1300px;
    }
}

@media (max-width: 1024px) {
    .bsa-table-container.events-table .bsa-table {
        min-width: 1400px;
    }
    
    .bsa-table-container.events-table .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table .bsa-table__body .bsa-table__info {
        grid-template-columns: 
            minmax(160px, 1.4fr)  /* Name */
            minmax(120px, 0.8fr)  /* Type */
            minmax(120px, 0.8fr)  /* Category */
            minmax(90px, 0.6fr)   /* Date */
            minmax(100px, 0.7fr)  /* Location */
            minmax(80px, 0.5fr)   /* Status */
            minmax(80px, 0.5fr)   /* Attendance */
            minmax(120px, 0.9fr)  /* Requested By */
            minmax(90px, 0.6fr)   /* Created By */
            minmax(90px, 0.6fr)   /* Pay Gateway */
            minmax(100px, 0.7fr)  /* URL */
            85px;                 /* Actions */
    }

    .bsa-table-container.events-table.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            36px
            minmax(160px, 1.4fr)
            minmax(120px, 0.8fr)
            minmax(120px, 0.8fr)
            minmax(90px, 0.6fr)
            minmax(100px, 0.7fr)
            minmax(80px, 0.5fr)
            minmax(80px, 0.5fr)
            minmax(120px, 0.9fr)
            minmax(90px, 0.6fr)
            minmax(90px, 0.6fr)
            minmax(100px, 0.7fr)
            85px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__body .bsa-table__info {
        grid-template-columns:
            minmax(190px, 1.5fr)
            minmax(130px, 0.9fr)
            minmax(130px, 0.9fr)
            minmax(100px, 0.7fr)
            minmax(110px, 0.8fr)
            minmax(95px, 0.7fr)
            minmax(120px, 0.9fr)
            85px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            36px
            minmax(190px, 1.5fr)
            minmax(130px, 0.9fr)
            minmax(130px, 0.9fr)
            minmax(100px, 0.7fr)
            minmax(110px, 0.8fr)
            minmax(95px, 0.7fr)
            minmax(120px, 0.9fr)
            85px;
    }
}

@media (max-width: 768px) {
    .bsa-table-container.events-table .bsa-table {
        min-width: 1300px;
    }
    
    .bsa-table-container.events-table .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table .bsa-table__body .bsa-table__info {
        grid-template-columns: 
            minmax(150px, 1.3fr)  /* Name */
            minmax(110px, 0.7fr)  /* Type */
            minmax(110px, 0.7fr)  /* Category */
            minmax(85px, 0.5fr)   /* Date */
            minmax(95px, 0.6fr)   /* Location */
            minmax(75px, 0.5fr)   /* Status */
            minmax(75px, 0.5fr)   /* Attendance */
            minmax(110px, 0.8fr)  /* Requested By */
            minmax(85px, 0.5fr)   /* Created By */
            minmax(85px, 0.5fr)   /* Pay Gateway */
            minmax(95px, 0.6fr)   /* URL */
            80px;                 /* Actions */
        gap: 8px;
    }

    .bsa-table-container.events-table.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            34px
            minmax(150px, 1.3fr)
            minmax(110px, 0.7fr)
            minmax(110px, 0.7fr)
            minmax(85px, 0.5fr)
            minmax(95px, 0.6fr)
            minmax(75px, 0.5fr)
            minmax(75px, 0.5fr)
            minmax(110px, 0.8fr)
            minmax(85px, 0.5fr)
            minmax(85px, 0.5fr)
            minmax(95px, 0.6fr)
            80px;
        gap: 8px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__body .bsa-table__info {
        grid-template-columns:
            minmax(175px, 1.4fr)
            minmax(120px, 0.8fr)
            minmax(120px, 0.8fr)
            minmax(90px, 0.6fr)
            minmax(100px, 0.7fr)
            minmax(90px, 0.6fr)
            minmax(110px, 0.8fr)
            80px;
        gap: 8px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            34px
            minmax(175px, 1.4fr)
            minmax(120px, 0.8fr)
            minmax(120px, 0.8fr)
            minmax(90px, 0.6fr)
            minmax(100px, 0.7fr)
            minmax(90px, 0.6fr)
            minmax(110px, 0.8fr)
            80px;
        gap: 8px;
    }
    
    .bsa-table-container.events-table .bsa-table__info > div {
        font-size: 13px;
    }
    
    .bsa-table-container.events-table .bsa-table__head .bsa-table__info > div {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bsa-table-container.events-table .bsa-table {
        min-width: 1200px;
    }
    
    .bsa-table-container.events-table .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table .bsa-table__body .bsa-table__info {
        grid-template-columns: 
            minmax(140px, 1.2fr)  /* Name */
            minmax(100px, 0.6fr)  /* Type */
            minmax(100px, 0.6fr)  /* Category */
            minmax(80px, 0.5fr)   /* Date */
            minmax(85px, 0.5fr)   /* Location */
            minmax(70px, 0.4fr)   /* Status */
            minmax(70px, 0.4fr)   /* Attendance */
            minmax(100px, 0.7fr)  /* Requested By */
            minmax(80px, 0.5fr)   /* Created By */
            minmax(80px, 0.5fr)   /* Pay Gateway */
            minmax(85px, 0.5fr)   /* URL */
            75px;                 /* Actions */
        gap: 6px;
    }

    .bsa-table-container.events-table.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            32px
            minmax(140px, 1.2fr)
            minmax(100px, 0.6fr)
            minmax(100px, 0.6fr)
            minmax(80px, 0.5fr)
            minmax(85px, 0.5fr)
            minmax(70px, 0.4fr)
            minmax(70px, 0.4fr)
            minmax(100px, 0.7fr)
            minmax(80px, 0.5fr)
            minmax(80px, 0.5fr)
            minmax(85px, 0.5fr)
            75px;
        gap: 6px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff .bsa-table__body .bsa-table__info {
        grid-template-columns:
            minmax(160px, 1.3fr)
            minmax(110px, 0.7fr)
            minmax(110px, 0.7fr)
            minmax(85px, 0.5fr)
            minmax(95px, 0.6fr)
            minmax(85px, 0.5fr)
            minmax(100px, 0.7fr)
            75px;
        gap: 6px;
    }

    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__head .bsa-table__info,
    .bsa-table-container.events-table.--org-admin-no-staff.--with-bulk-select .bsa-table__body .bsa-table__info {
        grid-template-columns:
            32px
            minmax(160px, 1.3fr)
            minmax(110px, 0.7fr)
            minmax(110px, 0.7fr)
            minmax(85px, 0.5fr)
            minmax(95px, 0.6fr)
            minmax(85px, 0.5fr)
            minmax(100px, 0.7fr)
            75px;
        gap: 6px;
    }
    
    .bsa-table-container.events-table .bsa-table__info > div {
        font-size: 12px;
    }
    
    .bsa-table-container.events-table .bsa-table__head .bsa-table__info > div {
        font-size: 11px;
    }
}

.bsa-table__body.event-table-tool .bsa-select {
    width: 100%;
    display: flex;
    align-items: center;
}

.bsa-table-container.events-table .bsa-table__body .bsa-tooltip.select__options_evnet {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.bsa-table-container.events-table .bsa-select {
    position: relative;
    z-index: 1;
}

.bsa-table-container.events-table .bsa-select__options {
    position: absolute;
    z-index: 1000;
}

.bsa-table-container.events-table .bsa-table-actions.bsa-dropdown {
    position: relative;
}

.bsa-table-container.events-table .bsa-dropdown-menu-container {
    min-width: 200px;
    width: max-content;
    z-index: 1000;
}

.bsa-table-container.events-table .bsa-dropdown-menu {
    white-space: nowrap;
}

.bsa-table-container.users-table .bsa-table-actions.bsa-dropdown {
    position: relative;
}

.bsa-table-container.users-table .bsa-table-actions-text {
    cursor: pointer;
}

.bsa-table-container.users-table .bsa-dropdown-menu-container {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    width: max-content;
    padding-top: 5px;
    display: none;
}

.bsa-table-container.users-table .bsa-dropdown-menu {
    white-space: nowrap;
}

.bsa-table-container.users-table .bsa-dropdown-menu-item {
    overflow: visible;
    text-overflow: clip;
}

.bsa-table-container.users-table .bsa-table-actions.bsa-dropdown .bsa-dropdown-menu-container.--open {
    display: block !important;
    z-index: 10000;
}

.bsa-table-container.events-table .bsa-table__info input[type="checkbox"] {
    margin: 0 auto;
    display: block;
}

.bsa-table-container.events-table .bsa-table__info .bsa-tooltip:not(.select__options_evnet) {
    overflow: hidden;
    max-width: 100%;
}

.bsa-table-container.events-table .bsa-table__info .truncate-text {
    display: block;
    width: 100%;
}

/** Users Page */
.bsa-table-container.users-table {
    scrollbar-width: thin;
    scrollbar-color: var(--event-primary-color, #4323FF) transparent;
}

.bsa-table-container.users-table::-webkit-scrollbar {
    height: 8px;
}

.bsa-table-container.users-table::-webkit-scrollbar-track {
    background: transparent;
}

.bsa-table-container.users-table::-webkit-scrollbar-thumb {
    background: var(--event-primary-color, #4323FF);
    border-radius: 4px;
}

.bsa-table-container.users-table::-webkit-scrollbar-thumb:hover {
    background: #3a1dd9;
}

.bsa-table-container.users-table .bsa-table {
    min-width: fit-content;
}

.bsa-table-container.users-table .bsa-table__info.--highlight {
    background: var(--cfbc-blue);
}

/** Util/Field Item*/
.bsa-field {
    margin-bottom: 25px;
}

.bsa-field:last-child {
    margin-bottom: 0!important;
}

.bsa-field__label {
    font-weight: bold;
    margin-bottom: 5px;
    margin-left: 5px;
}

.bsa-field__label span {
    font-weight: normal;
}

/** Util/dropdown */
.bsa-dropdown {
    position: relative;
}

.bsa-dropdown-menu-container {
    position: fixed;
    top: 100%;
    width: 100%;
    padding-top: 5px;
    display: none;
    width: 200px;
    right: 0;
}

.bsa-dropdown:hover .bsa-dropdown-menu-container {
    display: block;
    z-index: 2;
}

.bsa-dropdown:focus-within .bsa-dropdown-menu-container {
    display: block;
    z-index: 2;
}

.bsa-dropdown-menu {
    background: var(--cfbc-white);
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bsa-dropdown-menu-item {
    color: var(--dropdown-text);
    padding: 7px 15px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsa-dropdown-menu-item a {
    color: var(--dropdown-text);
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsa-dropdown-menu-item:hover,
.bsa-dropdown-menu-item:hover a {
    color: var(--cfbc-white);
    background-color: var(--dropdown-hover-bg);
}

.staff-view-as-control,
.staff-preview-employee-control {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--staff-brand-surface-border, var(--input-border-color, #d7d9de));
    margin-bottom: 8px;
}

.staff-view-as-label,
.staff-preview-employee-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--staff-brand-text-secondary, #5a6474);
    margin-bottom: 6px;
}

.staff-view-as-select,
.staff-preview-employee-select {
    width: 100%;
    min-height: 30px;
    border: 1px solid var(--staff-brand-surface-border, #ccd2dc);
    border-radius: 6px;
    background: var(--staff-brand-surface-primary, #fff);
    color: var(--staff-brand-text-primary, #293140);
    font-size: 12px;
    padding: 4px 6px;
}

.staff-preview-employee-search {
    width: 100%;
    min-height: 30px;
    border: 1px solid var(--staff-brand-surface-border, #ccd2dc);
    border-radius: 6px;
    background: #ffffff;
    color: var(--staff-brand-text-primary, #1d2533);
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 6px;
    padding: 4px 6px;
}

.staff-view-as-status,
.staff-preview-employee-status {
    min-height: 16px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--staff-brand-text-secondary, #5a6474);
}

.staff-view-as-reset,
.staff-preview-employee-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--staff-brand-mode-utility, #3f5aa8);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0 0;
    cursor: pointer;
}

/* Keep header user-menu "View As" readable on dark backgrounds */
.bsa-dropdown-menu .staff-view-as-control,
.bsa-dropdown-menu .staff-preview-employee-control {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.bsa-dropdown-menu .staff-view-as-label,
.bsa-dropdown-menu .staff-preview-employee-label {
    color: rgba(255, 255, 255, 0.78);
}

.bsa-dropdown-menu .staff-view-as-select,
.bsa-dropdown-menu .staff-preview-employee-select {
    border-color: rgba(255, 255, 255, 0.2);
    background: #12161f;
    color: #ffffff;
}

.bsa-dropdown-menu .staff-preview-employee-search {
    border-color: rgba(255, 255, 255, 0.2);
    background: #12161f;
    color: #ffffff;
}

.bsa-dropdown-menu .staff-view-as-select option,
.bsa-dropdown-menu .staff-preview-employee-select option {
    background: #12161f;
    color: #ffffff;
}

.bsa-dropdown-menu .staff-view-as-status,
.bsa-dropdown-menu .staff-preview-employee-status {
    color: rgba(255, 255, 255, 0.82);
}

.bsa-dropdown-menu .staff-view-as-reset,
.bsa-dropdown-menu .staff-preview-employee-reset {
    color: #8ec5ff;
}

/** Events Select */
.events-select-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.events-select {
    position: relative;
    cursor: pointer;
    width: 100%;
    display: block;
}

.events-select-container .bsa-select .bsa-select__selected {
    padding-right: 30px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    border: 0px !important;
    display: block;
    box-sizing: border-box;
}
.events-select-container .bsa-select .bsa-select__selected:hover {
    background-color: transparent !important;
    border: none
}

.events-select .bsa-select__selected:hover {
    background-color: var(--cfbc-gray);
}

.events-select .bsa-select__options {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: max-content;
    max-width: 300px;
    z-index: 1000;
    display: none;
    background: var(--cfbc-gray);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.events-select.--open .bsa-select__options {
    display: block;
}

.events-select .bsa-select__option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.events-select .bsa-select__option:hover {
    background-color: var(--cfbc-gray-dark);
}

.single-event {
    padding: 4px 8px;
    border-radius: 4px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-select-container .bsa-select {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
}

.events-select-container .bsa-select .bsa-select__selected:hover {
    background-color: var(--cfbc-gray);
}

.events-select-container .bsa-select .sort-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #4eeeac;
    transition: transform 0.2s;
    z-index: 1;
    cursor: pointer;
}

.events-select-container .bsa-select.--open .sort-icon {
    transform: translateY(-50%) rotate(180deg);
}

/** Util/Select **/
.bsa-select {
    position: relative;
    cursor: pointer;
}

.bsa-select__selected {
    display: flex;
    align-items: center;
    gap: 10px;
    background-image: var(--arrow-icon);
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: calc(100% - 12px);
}

.event-cbs2-custom-select.--type2 .bsa-select__selected {
    padding: 0;
    background: 0;
}

.bsa-select__options {
    position: absolute;
    width: 100%;
    background: var(--cfbc-gray);
    color: var(--cfbc-white);
    top: calc( 100% + 10px );
    box-sizing: border-box;
    border-radius: 8px;
    display: none;
    z-index: 10;
    max-height: 200px;
    overflow: auto;
    padding: 10px 4px;
    border: 1px solid #434551;
}


.bsa-select__options.--open {
    display: block;
}

.bsa-select__options > div {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-left: 2px solid transparent
}

.bsa-select__options > div:hover {
    background-color: var(--cfbc-black-light);
    border-color: var(--cfbc-cyan);
}

.bsa-select__options > div.--current {
    color: var(--cfbc-cyan);
    background-color: var(--cfbc-black-light);
    border-color: var(--cfbc-cyan);
}

.event-cbs2-custom-select .cbs2-tooltip-text {
    width: 200px;
    box-shadow: 0 0 14px 7px #0000004a;
}

/** Util/Toast **/
.cbs-toasts-wrapper {
    position: fixed;
    z-index: 99;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.cbs-toast {
    width: 400px;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	padding: 16px 17px;
	margin-bottom: 10px;
	background: var(--gray--light);
	justify-content: space-between;
	animation: show_toast 0.3s ease forwards;
    display: flex;
    align-items: center;
    color: var(--cfbc-white);
}

.cbs-toast.--hide {
	animation: hide_toast 0.3s ease forwards;
}

.cbs-toast::before {
	position: absolute;
	content: '';
	height: 3px;
	width: 100%;
	bottom: 0;
	left: 0;
	animation: progress 4s linear forwards;
}

.cbs-toast.--success::before {
	background: var(--success);
}

.cbs-toast.--error::before {
	background: var(--error);
}

.cbs-toast.--warning::before {
	background: var(--warning);
}

.cbs-toast__icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cbs-toast.--success .cbs-toast__icon {
    color: var(--success);
}

.cbs-toast.--error .cbs-toast__icon {
    color: var(--error);
}

.cbs-toast.--warning .cbs-toast__icon {
    color: var(--warning);
}

.cbs-toast__text {
    flex: 1;
    margin: 0 10px;
}

.cbs-toast__close {
    cursor: pointer;
}

@keyframes hide_toast {
	100% { transform: translateY(40%); }
}

@keyframes show_toast {
	0% { transform: translateY(20%); }
    100% { transform: translateY(0%); }
}

@keyframes progress {
	100% { width: 0%; }
}

/** Util/tabs */
.bsa-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray--light);
}

.bsa-tabs__item {
    color: var(--gray-text);
    cursor: pointer;
    padding: 10px 20px;
    font-size: var(--font-size-large);
    font-weight: bold;
}

.bsa-tabs__item:hover {
    color: var(--cfbc-white);
}

.bsa-tabs__item.--current {
    color: var(--cfbc-white);
    border-bottom: 2px solid var(--cfbc-blue);
}

/** Header - using body > header for specificity over React component styles */
body > header {
    display: flex !important;
    background: var(--cfbc-black-total) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--header-height) !important;
    align-items: center !important;
    padding: 0 30px !important;
    z-index: 11000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    header {
        padding: 0 15px;
        height: 60px;
    }
    
    :root {
        --header-height: 60px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 10px;
        height: 50px;
        flex-wrap: wrap;
        min-height: 50px;
    }
    
    :root {
        --header-height: 50px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: var(--bsa-header-logo-max-height, 40px);
    object-fit: contain;
}

.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: end;
}

/* Enhanced Current User Mobile Styles */
.current-user {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.current-user .bsa-dropdown-menu-container {
    width: 200px;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 11010;
}

.current-user .bsa-dropdown-menu {
    background: #000000 !important;
}

.current-user .bsa-dropdown-menu-item,
.current-user .bsa-dropdown-menu-item a {
    color: #ffffff;
}

.current-user-image {
    width: 40px;
    height: 40px;
    background: var(--cfbc-indigo);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: capitalize;
    font-size: 20px;
    margin-right: 5px;
}

.current-user-dropdown-icon {
    font-size: 16px;
    color: var(--admin-brand-text-primary, var(--cfbc-cyan));
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.current-user:hover .current-user-dropdown-icon {
    background: color-mix(in srgb, var(--cfbc-cyan) 18%, transparent);
    color: var(--admin-brand-text-primary, #fff);
    padding-top: 2px;
}

.current-user-info {
    display: flex;
    flex-direction: column;
}

.current-user-details {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Mobile responsive styles for header elements */
@media (max-width: 768px) {
    .logo-container {
        margin-right: 10px;
    }
    
    .logo {
        max-width: 120px;
        max-height: min(var(--bsa-header-logo-max-height, 35px), 35px);
    }
    
    .current-user {
        gap: 3px;
    }
    
    .current-user .bsa-dropdown-menu-container {
        width: 180px;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        z-index: 11010;
    }
    
    .current-user-image {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-right: 3px;
    }
    
    .current-user-dropdown-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__selected {
        height: 30px !important;
        padding: 5px 8px !important;
        font-size: 13px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__options {
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        left: auto;
        right: 0;
        min-width: 180px;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__options > div {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        margin-right: 5px;
    }
    
    .logo {
        max-width: 100px;
        max-height: min(var(--bsa-header-logo-max-height, 30px), 30px);
    }
    
    .header-nav {
        justify-content: flex-end;
        min-width: 0;
    }
    
    .current-user {
        gap: 2px;
        min-width: 0;
        flex-shrink: 0;
    }
    
    .current-user .bsa-dropdown-menu-container {
        width: 160px;
        right: 0 !important;
    }
    
    .current-user-image {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-right: 2px;
    }
    
    .current-user-name {
        display: none;
    }
    
    .current-user-details {
        display: none;
    }
    
    .current-user-dropdown-icon {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__selected {
        height: 28px !important;
        padding: 4px 6px !important;
        font-size: 12px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__options {
        max-height: 200px;
        font-size: 12px;
        left: auto;
        right: 0;
        min-width: 160px;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__options > div {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 14px;
    }
}

/** Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--cfbc-white);
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.mobile-menu-toggle .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-collapse-toggle {
    display: inline-flex;
    background: transparent;
    border: none;
    color: var(--cfbc-white);
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.sidebar-collapse-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.sidebar-collapse-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

body.sidebar-collapsed .sidebar-collapse-toggle .dashicons {
    transform: rotate(180deg);
}

/** Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    height: calc( 100% - var(--header-height));
    width: var(--sidebar-width);
    left: 0;
    background: var(--cfbc-black-total);
    border-top: 1px solid transparent;
    padding: 30px 20px;
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.sidebar-menu__item {
    margin-bottom: 5px;
}

.sidebar-menu__item a{
    display: flex;
    padding: 15px 10px 15px 20px ;
    border-radius: 8px;
    line-height: 1;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-large);
    /* font-weight: bold; */
}

.sidebar-menu__item.--submenu-open > a {
    background: var(--gray-dark);
    border-radius: 8px 8px 0 0;
}

.sidebar-menu__item.--current > a {
    font-weight: 500;
}

.sidebar-menu__item a:hover,
.sidebar-menu__item.--current > a {
    background: var(--cfbc-indigo);
}

.sidebar-menu__item.--submenu-open {
    background: var(--cfbc-gray-dark);
    border-radius: 8px;
}

.sidebar-menu__item.--submenu-open .sidebar-menu__submenu-toggle {
    transform: rotate(180deg);
}

.sidebar-menu__submenu {
    padding: 10px 5px;
    display: none;
}

.sidebar-menu__submenu-item a {
    padding: 12px 20px;
    border-radius: 8px;
}


.sidebar-menu__submenu-item a:hover,
.sidebar-menu__submenu-item.--current a {
    background: var(--gray-dark);
}


/** Content */
.site-content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    height: calc(100% - var(--header-height));
    position: relative;
}

/* When sidebar is hidden for staff-only users */
body.no-sidebar .site-content {
    margin-left: 0;
}

body.no-sidebar .sidebar,
body.no-sidebar .sidebar-backdrop {
    display: none !important;
}

body.no-sidebar .mobile-menu-toggle {
    display: none !important;
}

body.no-sidebar .sidebar-collapse-toggle {
    display: none !important;
}

@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
        visibility: hidden;
        pointer-events: none;
    }

    body.sidebar-collapsed .site-content {
        margin-left: 0;
    }
}

/* Staff portal specific styles - only apply when on staff portal pages */
body.staff-dept-head-page,
body.staff-sevp-page,
body.staff-committee-page,
body.staff-distribution-page,
body.staff-destinations-page,
body.no-sidebar:has(.dept-head-dashboard),
body.no-sidebar:has(.sevp-dashboard),
body.no-sidebar:has(.committee-dashboard),
body.no-sidebar:has(.distribution-panel) {
    --staff-portal-accent: #24B6FF;
    --staff-brand-active-tab-color: var(--staff-portal-accent);
    --admin-brand-accent: var(--staff-portal-accent);
}

body.no-sidebar:has(.dept-head-dashboard),
body.no-sidebar:has(.sevp-dashboard),
body.no-sidebar:has(.committee-dashboard),
body.no-sidebar:has(.distribution-panel) {
    background: var(--staff-brand-page-shell-bg, var(--staff-brand-surface-primary, #1a1a2e));
}

body.staff-destinations-page[data-staff-brand-bg="image"] {
    position: relative;
    background: var(--staff-brand-surface-primary, #1a1a2e) !important;
    background-image: none !important;
}

body.staff-destinations-page[data-staff-brand-bg="image"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--staff-brand-portal-background-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body.staff-destinations-page[data-staff-brand-bg="image"] .site-content,
body.staff-destinations-page[data-staff-brand-bg="image"] main,
body.staff-destinations-page[data-staff-brand-bg="image"] .main__header,
body.staff-destinations-page[data-staff-brand-bg="image"] .main__content {
    background: transparent !important;
    background-image: none !important;
    position: relative;
    z-index: 1;
}

body.staff-destinations-page .site-content {
    margin-left: 0 !important;
}

body.no-sidebar:has(.dept-head-dashboard) > header,
body.no-sidebar:has(.sevp-dashboard) > header,
body.no-sidebar:has(.committee-dashboard) > header,
body.no-sidebar:has(.distribution-panel) > header {
    display: none !important;
}

body.no-sidebar:has(.dept-head-dashboard) .site-content,
body.no-sidebar:has(.sevp-dashboard) .site-content,
body.no-sidebar:has(.committee-dashboard) .site-content,
body.no-sidebar:has(.distribution-panel) .site-content {
    margin-top: 0;
}

body.no-sidebar:has(.dept-head-dashboard) .main__header,
body.no-sidebar:has(.sevp-dashboard) .main__header,
body.no-sidebar:has(.committee-dashboard) .main__header,
body.no-sidebar:has(.distribution-panel) .main__header {
    display: none !important;
}

body.no-sidebar:has(.dept-head-dashboard) main,
body.no-sidebar:has(.sevp-dashboard) main,
body.no-sidebar:has(.committee-dashboard) main,
body.no-sidebar:has(.distribution-panel) main {
    padding: 0 !important;
    min-height: 100vh;
    background: var(--staff-brand-page-shell-bg, var(--staff-brand-surface-primary, #1a1a2e));
}

body.no-sidebar:has(.dept-head-dashboard) .main__content,
body.no-sidebar:has(.sevp-dashboard) .main__content,
body.no-sidebar:has(.committee-dashboard) .main__content,
body.no-sidebar:has(.distribution-panel) .main__content {
    min-height: 100vh;
    background: var(--staff-brand-page-shell-bg, var(--staff-brand-surface-primary, #1a1a2e));
}

body.no-sidebar .dept-head-dashboard,
body.no-sidebar .sevp-dashboard,
body.no-sidebar .committee-dashboard,
body.no-sidebar .distribution-panel {
    padding: 0 0 40px 0;
    max-width: none;
}

body.no-sidebar .dashboard-header,
body.no-sidebar .distribution-panel__header {
    background: var(--staff-brand-surface-secondary, #000);
    padding: 20px 30px;
    margin-bottom: 0;
}

body.no-sidebar .distribution-panel__header {
    border-bottom: 1px solid var(--staff-brand-surface-border, transparent);
}

body.no-sidebar .sevp-dashboard > *:not(.dashboard-header),
body.no-sidebar .dept-head-dashboard > *:not(.dashboard-header),
body.no-sidebar .committee-dashboard > *:not(.dashboard-header),
body.no-sidebar .distribution-panel > *:not(.distribution-panel__header) {
    padding-left: 30px;
    padding-right: 30px;
}

main {
    padding: 20px;
    height: 100%;
}

/* Reports page specific styles */
.main__content {
    padding: 0 20px;
}

.staff-portal-switcher {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--staff-selector-stroke, color-mix(in srgb, var(--staff-brand-surface-border, #3A3A4A) 72%, transparent));
    background: var(--staff-selector-fill, color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 86%, var(--staff-brand-surface-primary, #1A1A1A)));
    width: max-content;
    max-width: 100%;
}

.staff-portal-toolbar {
    --staff-selector-fill: color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 86%, var(--staff-brand-surface-primary, #1A1A1A));
    --staff-selector-stroke: color-mix(in srgb, var(--staff-brand-surface-border, #3A3A4A) 72%, transparent);
    --staff-selector-highlight: color-mix(in srgb, var(--staff-brand-table-highlight-primary, #003899) 14%, var(--staff-brand-surface-primary, #1A1A1A));
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 14px;
}

.staff-portal-toolbar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.staff-portal-toolbar__top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.staff-portal-toolbar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-portal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
    background: color-mix(in srgb, var(--staff-brand-surface-primary, #1A1A1A) 78%, transparent);
}

.staff-portal-logo img {
    display: block;
    max-width: 160px;
    width: auto;
    max-height: var(--bsa-header-logo-max-height, 40px);
    height: auto;
    object-fit: contain;
}

body[data-staff-brand-mode="light"] .staff-portal-logo {
    padding: 4px 8px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--staff-brand-surface-primary, #000) 72%, transparent);
}

.staff-portal-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
}

.staff-portal-breadcrumb__settings-link {
    color: var(--staff-brand-text-secondary, #98989E) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.staff-portal-breadcrumb__all-events {
    color: var(--staff-brand-text-secondary, #98989E) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.staff-portal-breadcrumb__all-events:hover,
.staff-portal-breadcrumb__all-events:focus-visible {
    color: var(--staff-brand-text-primary, #FFFFFF) !important;
}

.staff-portal-breadcrumb__all-events {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.staff-portal-breadcrumb__settings-link:hover,
.staff-portal-breadcrumb__settings-link:focus-visible {
    color: var(--staff-brand-text-primary, #FFFFFF) !important;
}

.staff-portal-breadcrumb__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--staff-brand-text-secondary, #98989E);
}

.staff-portal-breadcrumb__icon svg {
    width: 100%;
    height: 100%;
}

.staff-portal-breadcrumb__divider {
    color: rgba(152, 152, 158, 0.72);
    font-size: 14px;
    line-height: 1;
}

.staff-portal-toolbar__mobile-menu-state,
.staff-portal-toolbar__mobile-menu-toggle {
    display: none;
}

.staff-portal-toolbar__mobile-menu {
    width: 100%;
}

.staff-portal-toolbar__mobile-header {
    display: none;
}

.staff-portal-toolbar__mobile-header-left {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.staff-portal-toolbar__mobile-title {
    display: none;
}

:is(.staff-portal-toolbar, .staff-destination-view-as) .staff-view-as-control--toolbar,
:is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar {
    display: none;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-toolbar-view-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--staff-selector-stroke, color-mix(in srgb, var(--staff-brand-surface-border, #3A3A4A) 72%, transparent));
    border-radius: 8px;
    background: var(--staff-selector-fill, color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 86%, var(--staff-brand-surface-primary, #1A1A1A)));
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-toolbar-view-controls__state,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-toolbar-view-controls__toggle {
    display: none;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-toolbar-view-controls .staff-view-as-control--toolbar,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-toolbar-view-controls .staff-preview-employee-control--toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    grid-template-areas: "select reset" "status status";
    align-items: center;
    column-gap: 6px;
    row-gap: 4px;
    min-width: 0;
    margin-bottom: 0;
    border-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-toolbar-view-controls .staff-preview-employee-control--toolbar {
    grid-template-columns: minmax(180px, 1fr);
    grid-template-areas: "select" "status";
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-view-as-control--toolbar .staff-view-as-label,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar .staff-preview-employee-label {
    display: none;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar .staff-preview-employee-search {
    display: none;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-view-as-control--toolbar .staff-view-as-select,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar .staff-preview-employee-select {
    grid-area: select;
    min-height: 30px;
    margin: 0;
    padding: 4px 8px;
    border-color: var(--staff-brand-surface-border, #424958);
    background: var(--staff-brand-surface-primary, #111623);
    color: var(--staff-brand-text-primary, #f7f9ff);
    font-size: 12px;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-view-as-control--toolbar .staff-view-as-status,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar .staff-preview-employee-status {
    grid-area: status;
    min-height: 14px;
    margin-top: 0;
    color: var(--staff-brand-text-secondary, #9aa3b5);
    font-size: 11px;
    line-height: 1.2;
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-view-as-control--toolbar .staff-view-as-reset,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar .staff-preview-employee-reset {
    grid-area: reset;
    margin-left: 0;
    color: var(--staff-brand-mode-utility, #80a0ff);
}

body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-view-as-control--toolbar[data-active-user-id]:not([data-active-user-id=""]) .staff-view-as-reset,
body.no-sidebar :is(.staff-portal-toolbar, .staff-destination-view-as) .staff-preview-employee-control--toolbar[data-active-employee-id]:not([data-active-employee-id=""]) .staff-preview-employee-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
    color: var(--staff-brand-text-primary, var(--cfbc-white));
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body.staff-destinations-page .staff-destination-header-actions {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

body.staff-destinations-page .main__header {
    flex-wrap: nowrap;
    align-items: center;
}

body.staff-destinations-page .staff-destination-branding {
    flex: 0 0 auto;
}

body.staff-destinations-page .staff-destination-header-actions__desktop {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

body.staff-destinations-page .staff-destination-header-actions__desktop .staff-destination-view-as {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 0;
    min-width: 0;
}

body.staff-destinations-page .staff-destination-header-actions__desktop .staff-toolbar-view-controls {
    min-width: 0;
}

body.staff-destinations-page .staff-destination-header-actions__desktop .staff-toolbar-view-controls > .staff-view-as-control--toolbar,
body.staff-destinations-page .staff-destination-header-actions__desktop .staff-toolbar-view-controls > .staff-preview-employee-control--toolbar {
    min-width: 0;
}

body.staff-destinations-page .staff-destination-header-actions__desktop .staff-view-as-select,
body.staff-destinations-page .staff-destination-header-actions__desktop .staff-preview-employee-select {
    width: min(280px, 100%);
    max-width: 100%;
}

body.no-sidebar .staff-portal-toolbar {
    margin-top: 8px;
}

.staff-portal-switcher__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 20px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: var(--staff-brand-text-primary, #FFFFFF);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    letter-spacing: -0.006px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.staff-portal-switcher__button + .staff-portal-switcher__button {
    border-left: 1px solid var(--staff-selector-stroke, color-mix(in srgb, var(--staff-brand-surface-border, #3A3A4A) 72%, transparent));
}

a.staff-portal-switcher__button:hover {
    background: color-mix(in srgb, var(--staff-brand-text-primary, #FFFFFF) 16%, var(--staff-brand-surface-primary, #1A1A1A));
    color: var(--staff-brand-text-primary, #FFFFFF);
}

.staff-portal-switcher__button.is-active {
    background: var(--staff-brand-text-primary, #FFFFFF);
    color: var(--staff-brand-utility-contrast, #000);
    cursor: default;
    box-shadow: none;
}

body.staff-dept-head-page .staff-portal-switcher,
body.staff-sevp-page .staff-portal-switcher,
body.staff-committee-page .staff-portal-switcher,
body.staff-distribution-page .staff-portal-switcher {
    --staff-portal-switcher-accent: #24B6FF;
    background: var(--staff-brand-surface-secondary, #000);
    border-color: color-mix(in srgb, var(--staff-portal-switcher-accent) 45%, #000);
}

body.staff-dept-head-page .staff-portal-switcher__button,
body.staff-sevp-page .staff-portal-switcher__button,
body.staff-committee-page .staff-portal-switcher__button,
body.staff-distribution-page .staff-portal-switcher__button {
    background: var(--staff-brand-surface-secondary, #000);
    color: var(--staff-portal-switcher-accent);
}

body.staff-dept-head-page .staff-portal-switcher__button + .staff-portal-switcher__button,
body.staff-sevp-page .staff-portal-switcher__button + .staff-portal-switcher__button,
body.staff-committee-page .staff-portal-switcher__button + .staff-portal-switcher__button,
body.staff-distribution-page .staff-portal-switcher__button + .staff-portal-switcher__button {
    border-left-color: color-mix(in srgb, var(--staff-portal-switcher-accent) 45%, #000);
}

body.staff-dept-head-page a.staff-portal-switcher__button:hover,
body.staff-sevp-page a.staff-portal-switcher__button:hover,
body.staff-committee-page a.staff-portal-switcher__button:hover,
body.staff-distribution-page a.staff-portal-switcher__button:hover {
    background: color-mix(in srgb, var(--staff-portal-switcher-accent) 12%, #000);
    color: var(--staff-portal-switcher-accent);
}

body.staff-dept-head-page .staff-portal-switcher__button.is-active,
body.staff-sevp-page .staff-portal-switcher__button.is-active,
body.staff-committee-page .staff-portal-switcher__button.is-active,
body.staff-distribution-page .staff-portal-switcher__button.is-active {
    background: var(--staff-portal-switcher-accent);
    color: var(--staff-brand-utility-contrast, #000);
}

.staff-portal-switcher__button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--staff-brand-active-tab-color, #24B6FF) 70%, transparent);
    outline-offset: 2px;
}

.staff-portal-switcher__button:active:not(.is-active) {
    background: var(--staff-selector-highlight, color-mix(in srgb, var(--staff-brand-table-highlight-primary, #003899) 14%, var(--staff-brand-surface-primary, #1A1A1A)));
}

.staff-portal-logout {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: var(--staff-brand-text-primary, #FFFFFF);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
}

.staff-portal-logout:hover,
.staff-portal-logout:focus-visible {
    color: var(--staff-brand-text-primary, #FFFFFF);
    text-decoration: underline;
}

body.staff-destinations-page .staff-portal-logout,
body.staff-destinations-page .staff-portal-logout:hover,
body.staff-destinations-page .staff-portal-logout:focus-visible {
    color: #FFFFFF;
}

body.no-sidebar .staff-portal-logout {
    display: inline-flex;
}

body.staff-dept-head-page .bsa-dropdown-menu-item.csb-admin-user-logout a,
body.staff-sevp-page .bsa-dropdown-menu-item.csb-admin-user-logout a,
body.staff-committee-page .bsa-dropdown-menu-item.csb-admin-user-logout a,
body.staff-distribution-page .bsa-dropdown-menu-item.csb-admin-user-logout a,
body.staff-dept-head-page .bsa-dropdown-menu-item.csb-admin-user-logout:hover a,
body.staff-sevp-page .bsa-dropdown-menu-item.csb-admin-user-logout:hover a,
body.staff-committee-page .bsa-dropdown-menu-item.csb-admin-user-logout:hover a,
body.staff-distribution-page .bsa-dropdown-menu-item.csb-admin-user-logout:hover a {
    color: var(--staff-brand-active-tab-color, #24B6FF) !important;
}

@media (max-width: 768px) {
    body.staff-dept-head-page > header,
    body.staff-sevp-page > header,
    body.staff-committee-page > header,
    body.staff-distribution-page > header {
        display: none !important;
    }

    body.staff-dept-head-page .site-content,
    body.staff-sevp-page .site-content,
    body.staff-committee-page .site-content,
    body.staff-distribution-page .site-content {
        margin-top: 0 !important;
        height: 100%;
    }

    body.staff-dept-head-page .header-nav .current-user,
    body.staff-sevp-page .header-nav .current-user,
    body.staff-committee-page .header-nav .current-user,
    body.staff-distribution-page .header-nav .current-user {
        display: none !important;
    }

    .staff-portal-toolbar {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .staff-portal-toolbar__mobile-menu-state {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .staff-portal-toolbar__mobile-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .staff-portal-logo--mobile-header {
        display: inline-flex;
        padding: 2px 8px;
        border-radius: 8px;
        border: 0;
        background: transparent;
    }

    .staff-portal-logo--mobile-header img {
        max-height: 34px;
    }

    .staff-portal-toolbar__mobile-title {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 999px;
        background: var(--staff-portal-switcher-accent, var(--staff-brand-active-tab-color, #24B6FF));
        color: var(--staff-brand-utility-contrast, #000);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 240px;
    }

    .staff-portal-toolbar__mobile-menu-toggle {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
        border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
        border-radius: 6px;
        background: var(--staff-brand-surface-secondary, #23262F);
        color: var(--staff-brand-text-primary, #f7f9ff);
        font-size: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .staff-portal-toolbar__mobile-menu-toggle-icon {
        font-size: 22px;
        line-height: 1;
    }

    .staff-portal-toolbar__mobile-menu-toggle-text {
        display: none;
    }

    .staff-portal-toolbar__mobile-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: auto;
        border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
        border-radius: 14px;
        background: color-mix(in srgb, var(--staff-brand-surface-primary, #111623) 94%, #0d111b);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
        padding: 12px;
        margin-top: 0;
        z-index: 1200;
    }

    .staff-portal-toolbar__mobile-menu-state:checked ~ .staff-portal-toolbar__mobile-menu {
        display: block;
    }

    body.staff-destinations-page[data-staff-brand-bg="image"] .main__header {
        z-index: 1200 !important;
    }

    body.staff-destinations-page[data-staff-brand-bg="image"] .main__content {
        z-index: 1 !important;
    }

    body.staff-destinations-page .main__header {
        position: relative;
        z-index: 1200;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        overflow: visible;
    }

    body.staff-destinations-page .staff-destination-branding {
        min-width: 0;
        flex: 1 1 auto;
    }

    body.staff-destinations-page .staff-destination-header-actions {
        margin-top: 0;
        flex: 0 0 auto;
    }

    body.staff-destinations-page .staff-destination-header-actions__desktop {
        display: none;
    }

    body.staff-destinations-page .staff-destination-header-actions__mobile {
        display: inline-flex;
        position: relative;
        align-items: center;
        width: auto;
        z-index: 1201;
    }

    body.staff-destinations-page .staff-destination-header-actions__mobile .staff-portal-toolbar__mobile-menu {
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        margin-top: 0;
        width: auto;
        max-width: none;
        z-index: 9999;
    }

    body.staff-destinations-page .staff-destination-header-actions__mobile .staff-destination-view-as {
        margin-top: 0;
    }

    body.staff-destinations-page .staff-destination-header-actions__mobile .staff-destination-view-as .staff-toolbar-view-controls > .staff-view-as-control--toolbar,
    body.staff-destinations-page .staff-destination-header-actions__mobile .staff-destination-view-as .staff-toolbar-view-controls > .staff-preview-employee-control--toolbar {
        display: none;
    }

    body.staff-destinations-page .staff-destination-header-actions__mobile .staff-destination-view-as .staff-toolbar-view-controls .staff-toolbar-view-controls__state:checked ~ .staff-view-as-control--toolbar,
    body.staff-destinations-page .staff-destination-header-actions__mobile .staff-destination-view-as .staff-toolbar-view-controls .staff-toolbar-view-controls__state:checked ~ .staff-preview-employee-control--toolbar {
        display: grid;
    }

    .staff-portal-toolbar__top {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        gap: 12px;
    }

    .staff-portal-toolbar__top-left {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        gap: 10px;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-logo {
        display: none;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-switcher {
        display: none;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        margin: 0;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__all-events,
    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__settings-link,
    .staff-portal-toolbar__mobile-menu .staff-portal-logout {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
        background: color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 92%, #131a29);
        color: var(--staff-brand-text-primary, #f7f9ff) !important;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
        box-sizing: border-box;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__all-events:active,
    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__settings-link:active,
    .staff-portal-toolbar__mobile-menu .staff-portal-logout:active {
        transform: translateY(1px);
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__all-events:hover,
    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__all-events:focus-visible,
    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__settings-link:hover,
    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__settings-link:focus-visible,
    .staff-portal-toolbar__mobile-menu .staff-portal-logout:hover,
    .staff-portal-toolbar__mobile-menu .staff-portal-logout:focus-visible {
        border-color: color-mix(in srgb, var(--staff-brand-active-tab-color, #24b6ff) 48%, var(--staff-brand-surface-border, #3A3A4A));
        background: color-mix(in srgb, var(--staff-brand-active-tab-color, #24b6ff) 14%, var(--staff-brand-surface-secondary, #23262F));
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__icon {
        width: 16px;
        height: 16px;
        color: var(--staff-brand-text-primary, #f7f9ff);
    }

    body.no-sidebar .staff-portal-toolbar__mobile-menu .staff-portal-logout {
        display: flex;
    }

    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls {
        width: 100%;
        display: block !important;
        padding: 0;
        margin: 0;
    }

    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls__state {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls__toggle {
        display: flex !important;
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
        background: color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 92%, #131a29);
        color: var(--staff-brand-text-primary, #f7f9ff);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        justify-content: flex-start;
        transition: border-color 0.18s ease, background 0.18s ease;
        box-sizing: border-box;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__settings-link,
    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls__toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-breadcrumb__settings-link::before,
    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls__toggle::before {
        content: '';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        min-width: 16px;
        height: 16px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px 16px;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.5L5.5 8L10 12.5' stroke='%23F7F9FF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls__toggle:hover,
    .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls__toggle:focus-visible {
        border-color: color-mix(in srgb, var(--staff-brand-active-tab-color, #24b6ff) 48%, var(--staff-brand-surface-border, #3A3A4A));
        background: color-mix(in srgb, var(--staff-brand-active-tab-color, #24b6ff) 14%, var(--staff-brand-surface-secondary, #23262F));
    }

    .staff-portal-toolbar__actions,
    .staff-portal-toolbar__action {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .staff-portal-toolbar__mobile-menu :is(.staff-portal-breadcrumb, .staff-toolbar-view-controls, .staff-portal-logout) {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .staff-portal-toolbar__mobile-menu .staff-portal-toolbar__top-left > *,
    .staff-portal-toolbar__mobile-menu .staff-portal-toolbar__actions > *,
    .staff-portal-toolbar__mobile-menu .staff-portal-toolbar__action > * {
        width: 100% !important;
        min-width: 0;
    }

    .staff-portal-breadcrumb {
        gap: 6px;
    }

    .staff-portal-breadcrumb__all-events {
        font-size: 13px;
    }

    .staff-portal-breadcrumb__settings-link,
    .staff-portal-breadcrumb__divider {
        display: none;
    }

    .staff-portal-switcher__button {
        min-height: 30px;
        padding: 6px 12px;
        font-size: 13px;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        display: block;
        padding: 0;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-toolbar-view-controls__state {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-toolbar-view-controls__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 32px;
        padding: 0 10px;
        border: 1px solid var(--staff-brand-surface-border, #424958);
        border-radius: 8px;
        background: var(--staff-brand-surface-primary, #111623);
        color: var(--staff-brand-text-primary, #f7f9ff);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-toolbar-view-controls__toggle::after {
        content: '▾';
        font-size: 10px;
        line-height: 1;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-toolbar-view-controls__state:checked + .staff-toolbar-view-controls__toggle::after {
        content: '▴';
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls > .staff-view-as-control--toolbar,
    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls > .staff-preview-employee-control--toolbar {
        display: none;
        margin-top: 8px;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-toolbar-view-controls__state:checked ~ .staff-view-as-control--toolbar,
    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-toolbar-view-controls__state:checked ~ .staff-preview-employee-control--toolbar {
        display: grid;
    }

    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-view-as-control--toolbar,
    body.no-sidebar .staff-portal-toolbar .staff-toolbar-view-controls .staff-preview-employee-control--toolbar {
        width: 100%;
    }

    body.no-sidebar .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls .staff-toolbar-view-controls__toggle {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
        background: color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 92%, #131a29);
        color: var(--staff-brand-text-primary, #f7f9ff);
        font-size: 14px;
        font-weight: 600;
    }

    body.no-sidebar .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls .staff-toolbar-view-controls__toggle::after {
        display: none;
    }

    body.no-sidebar .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls > .staff-view-as-control--toolbar,
    body.no-sidebar .staff-portal-toolbar__mobile-menu .staff-toolbar-view-controls > .staff-preview-employee-control--toolbar {
        margin-top: 10px;
        padding: 10px;
        border: 1px solid var(--staff-brand-surface-border, #3A3A4A);
        border-radius: 10px;
        background: color-mix(in srgb, var(--staff-brand-surface-secondary, #23262F) 86%, #101621);
    }
}

/* Sidebar backdrop overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.--visible {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

/* Mobile responsive adjustments for reports page */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar-collapse-toggle {
        display: none;
    }
    
    .main__content {
        padding: 0 15px;
    }
    
    .site-content {
        margin-left: 0;
        margin-top: var(--header-height);
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.--open {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .main__content {
        padding: 0 10px;
    }
    
    main {
        padding: 15px 10px;
    }
}

.main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.main__title {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.main__content {
    width: 100%;
    height: calc(100% - var(--header-height));
    overflow: auto;
}


.main__content_faq {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.site-content:has(.main__content_faq) {
    margin-top: 80px;
}

/** Misc */
.bsa-no-results {
    padding: 20px 20px 10px;
    text-align: center;
}

.events-empty-state {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.events-empty-state__icon {
    color: #6b7280;
    opacity: 0.4;
    margin-bottom: 20px;
}

.events-empty-state__title {
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 10px 0;
}

.events-empty-state__description {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 24px 0;
    max-width: 400px;
}

.events-empty-state__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cfbc-blue, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.events-empty-state__button:hover {
    background: var(--cfbc-blue-dark, #2563eb);
}

.events-empty-state__button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/** Popup */
.popup-container {
    overflow-y: auto;
    overflow-x: visible;
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0000006e;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 99999;
}

.popup {
    background: var(--cfbc-black, #141416);
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--cfbc-gray-boder, #34373b);
    border-radius: 8px;
    position: relative;
    padding: 30px 30px 40px;
    margin: auto;
    color: var(--cfbc-white);
    box-shadow: 0px 30px 40px #000000;
    box-sizing: border-box;
}

.popup .bsa-loading {
    border-radius: 24px;
}

.popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popup-actions {
    margin-top: auto;
    text-align: center;
}

.popup-close {
    position: absolute;
    background: var(--cfbc-gray-dark);
    width: 40px;
    height: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: -50px;
    cursor: pointer;
    border-radius: 5px;
}

.popup-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    font-weight: bold;
}

.popup form {
    height: 100%;
}

.popup-header {
    margin-bottom: 25px;
}

.popup-main {
    margin-bottom: 40px;
}

.popup-title {
    text-align: center;
    font-size: var(--font-size-xl);
}

.popup .field-error {
    color: #FF6B6B;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    display: none;
}

/** Confirm Popup */
.popup.confirm-popup {
    max-width: 400px;
    padding-bottom: 25px;
}

.popup.confirm-popup .popup-main {
    margin-bottom: 30px;
}

.popup.confirm-popup .confirm-text {
    text-align: center;
}

.popup.confirm-popup .popup-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.popup.confirm-popup .popup-cancel {
    background: none;
}

.popup.confirm-popup .popup-cancel:hover {
    color: var(--cfbc-cyan);
}

/** Alert Popup */
.popup.alert-popup {
    max-width: 400px;
    padding-bottom: 30px;
}

.popup.alert-popup .popup-main {
    margin-bottom: 10px;
}

.popup.alert-popup .alert-text {
    text-align: center;
}

/** Loading Screen */
.bsa-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #23262fd6;
}

.bsa-loading.--hidden {
    display: none;
}

.bsa-loading-icon {
    width: 70px;
    height: 70px;
    animation: bsa-loading-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(103, 7, 253, 0.3));
}

.bsa-loading-icon svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bsa-loading-icon .spinner-track {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.bsa-loading-icon .spinner-glow {
    stroke: url(#bsa-spinner-gradient);
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: bsa-loading-spin 1.8s ease-in-out infinite;
    opacity: 0.3;
    filter: blur(4px);
}

.bsa-loading-icon .spinner-head {
    stroke: url(#bsa-spinner-gradient);
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: bsa-loading-spin 1.8s ease-in-out infinite;
}

@keyframes bsa-loading-spin {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

@keyframes bsa-loading-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(103, 7, 253, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 16px rgba(103, 7, 253, 0.5));
    }
}

/** Skelton Loading */
.bsa-skelton-item {
    color: transparent;
    background: linear-gradient(100deg, #23262F 30%, #2d2f38 50%, #23262F 70%);
    background-size: 400%;
    animation: skelton 1.2s ease-in-out infinite;
    border-radius: 4px;
}


@keyframes skelton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

  
/** Events Page */
.events-table__url {
    text-decoration: underline;
}

.events-url-cell {
    overflow: visible;
}

.events-table__url.events-table__url-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #3a3f4d;
    border-radius: 999px;
    background: #232838;
    color: #d9e4ff;
    text-decoration: none;
    line-height: 1;
}

.events-table__url.events-table__url-button:hover {
    border-color: #4a90e2;
    background: #293147;
}

.events-table__url-label {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
}

.events-table__url-path {
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #9db6ff;
}

.events-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--gray--light);margin-bottom:20px}
.events-toolbar .bsa-tabs{border-bottom:none;margin:0}
#events-search-input{width:300px;padding:8px 12px 8px 36px;font-size:14px;border:1px solid #3a3f4d;border-radius:6px;background:#1e2330 url(assets/icons/search.svg) no-repeat 10px center/14px;color:#fff;margin-right:0}
#events-search-input:focus{outline:none;border-color:#4a90e2}
#events-search-input::placeholder{color:#7a8394}
.bsa-table-container.events-table .no-search-results{padding:40px 20px;text-align:center;color:#7a8394}
.events-bulk-actions{display:none;align-items:center;gap:10px;margin-left:auto;white-space:nowrap}
.events-bulk-actions.--visible{display:flex}
.events-bulk-actions__count{font-size:18px;font-weight:700;color:#fff}
#events-bulk-action{height:44px;padding:0 40px 0 12px;border-radius:10px;border:1px solid #4a5165;background:#1e2330;color:#fff;font-size:16px;font-weight:600}
#events-bulk-apply{height:44px;padding:0 18px;font-weight:700;border-radius:10px}
#events-bulk-apply:disabled{opacity:.5;cursor:not-allowed}

.amw-website-url-preview {
    margin-top: 10px;
    display: block;
    margin-left: 5px;
}

.amw-website-url-preview span {
    color: var(--cfbc-cyan);
}

.ewu-current-url {
    opacity: .75;
    pointer-events: none;
}

.popup.event-duplicate-popup {
    max-width: 450px;
}

.popup.event-duplicate-popup .bsa-field__label {
    margin-left: 0;
    margin-bottom: 12px;
}

.popup.event-duplicate-popup {
    max-width: 550px;
}

.popup.event-duplicate-popup .popup-main {
    margin-bottom: 30px;
}

.popup.event-duplicate-popup .popup-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.popup.event-duplicate-popup .duplicate-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.popup.event-duplicate-popup .duplicate-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popup.event-duplicate-popup .duplicate-category-label {
    font-weight: 600;
    color: var(--cfbc-cyan);
    margin-bottom: 12px;
    font-size: 14px;
}

.popup.event-duplicate-popup .popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.popup.event-duplicate-popup .popup-actions .button-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.popup.event-duplicate-popup .popup-actions .button-secondary:hover {
    background: #e0e0e0;
}

.popup.event-duplicate-popup .bsa-checkbox-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.popup.event-duplicate-popup .bsa-checkbox-item.disabled input {
    cursor: not-allowed;
}

.popup.add-update-user-popup {
    max-width: 500px;
}



/** Dashboar Page */
.bsa-dashboard-heading-margin {
    margin-bottom: 30px;
}

.bsa-dashboard-stats {
    display: flex;
    gap: 20px 20px;
    margin-bottom: 60px;
}

.bsa-dashboard-event-stats {
    display: flex;
    gap: 20px;
}

.bsa-dashboard-item {
    width: calc( 25% - (60px/4) );
    border-radius: 10px;
    padding: 20px 20px 30px;
    border: 1px solid #303234
}

.bsa-dashboard-stats .bsa-dashboard-item {
    background: var(--cfbc-gray-dark);
    border: 0;
}


.bsa-dashboard-item__count {
    font-size: 60px;
    margin-bottom: 10px;
    line-height: 1;
    font-weight: 300;
}

.bsa-dashboard-item__count.bsa-skelton-item {
    width: 50%;
}

.bsa-dashboard-item__heading {
    font-size: var(--font-size-large);
    font-weight: bold;
}

.faq-flex-container  {
    display: flex;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 12px;
}

.faq-flex-container-section {
    background-color: #24262F;
}

.faq-flex-container-category {
    background-color: #22242c;
    margin-left: 30px;
}

.faq-flex-container-question {
    background-color: #1e1f26;
    margin-left: 60px;
}

.faq-flex-container-answer {
    background-color: #191a1f;
    margin-left: 90px;
}

.faq-builder-container {
    margin-left: 5%;
    margin-right: 5%;
}

.faq-flex-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-description {
    color: #777E90;
    font-size: xx-small;
}

.faq-flex-item .left-content {
    flex-grow: 1;
}

.faq-flex-item .right-buttons {
    display: flex;
}

.faq-button {
    cursor: pointer;
}

.faq-button img {
    width: 16px;
}

.faq-button {
    margin-right: 8px;
}

.right-buttons {
    display: flex;
    align-items: center;
}

.btn-move-up-faq, .btn-move-down-faq {
    display: flex;
    align-items: center;
}

.btn-move-up-faq {
    margin-bottom: 2px;
}

.btn-move-down-faq {
    margin-top: 2px;
}

.btn-move-up-faq img {
    transform: rotate(180deg);
}

.btn-move-up-faq img, .btn-move-down-faq img {
    width: 12px;
}

.move-buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-small-btn {
    padding: 0 5px 0 0;
}

/* NEW Switcher toggle */
.cbs-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    font-size: 16px;
}

.cbs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cbs-toggle-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2F2F31;
    transition: background-color 0.4s;
    width: 70px;
}

.cbs-toggle-switch-slider:before {
    position: absolute;
    content: '';
    height: 32px;
    width: 32px;
    left: 1px;
    bottom: 1px;
    background-color: var(--event-primary-color, #4323FF);
    transition: transform 0.4s;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
}

.cbs-switch input:checked + .cbs-toggle-switch-slider {
    background-color: #515154;
}

.cbs-switch input:checked + .cbs-toggle-switch-slider:before {
    transform: translateX(36px);
    content: '+';
}

.cbs-switch input:not(:checked) + .cbs-toggle-switch-slider:before {
    transform: translateX(0);
    content: '-';
}

.cbs-toggle-switch-round {
    border-radius: 34px;
}

.cbs-toggle-switch-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    transition: 0.4s;
    font-size: 10px;
}

.cbs-toggle-switch-on-text {
    left: 8px;
}

.cbs-toggle-switch-off-text {
    right: 8px;
}

.cbs-toggle-switch-on-text,
.cbs-toggle-switch-off-text{
    font-size: 16px;
    visibility: hidden;
    opacity: 0;
}

.cbs-switch input:checked + .cbs-toggle-switch-slider .cbs-toggle-switch-on-text{
    visibility: visible;
    opacity: 1;
    color: var(--event-secondary-color, #4FF6B1);
}

.cbs-switch input:not(:checked) + .cbs-toggle-switch-slider .cbs-toggle-switch-off-text {
    visibility: visible;
    opacity: 1;
    color: #515154;
}

.cbs-toggle-switch-slider:before {
    z-index: 10;
}

.cbs-add-file-icon {
    padding: 12px 18px 12px 18px;
    border-radius: 32px;
    background: var(--event-primary-color, #4323FF);
    color: #FFFFFF;
    text-transform: capitalize;
    font-weight: 700;
    margin-right: 9px;
    border: 1px solid var(--event-primary-color, #4323FF);
}
.cbs-add-file-icon.--dragover {
    background: #1D1D1F;
    border: 1px solid var(--event-primary-color, #4323FF);
    margin-right: 9px;
    color: var(--event-primary-color, #4323FF);
    font-weight: 700;
}
.cbs-big-label{
    font-size: 16px;
    font-weight: 700;
}
.cbs-small-label{
    font-size: 16px;
    font-weight: 400;
}

/* Tooltip */
.cbs-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cbs-tooltip-icon svg {
    margin-left: 4px;
    margin-right: 4px;
}

.cbs-tooltip-text {
    visibility: hidden;
    width: 274px;
    background-color: var(--cfbc-gray);
    color: var(--cfbc-white);
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -137px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--cfbc-black);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cbs-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Flecha abajo */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--cfbc-gray) transparent transparent transparent;
}

.cbs-tooltip:hover .cbs-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.cbs-tooltip-text ul {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 20px;
}

.cbs-tooltip-text li {
    margin-bottom: 10px;
    text-align: left;
}

.bsa-tooltip {
    position: relative;
    display: inline-block;
}
.bsa-table-container {
    position: relative; /* Ensure the container is positioned */
    z-index: 1; /* Set a base z-index for the container */
}

.bsa-tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    background: #515154;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 100%; /* Position above the text */
    left: 70%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9999; /* Ensure this is higher than other elements */
    white-space: normal;
    word-break: break-word;
}



.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: -webkit-fill-available;
    display: inline-block;
    vertical-align: middle;
}

.popup-save:disabled {
    background: #2a2a2a;
    border: 2px solid #2a2a2a;
    cursor: grab;
}

/* Hide Osano Cookie Widget */
.osano-cm-widget {
    display: none !important;
}

.popup.rfp-popup .rfps-hint {
    display: block;
    font-size: 11px;
    color: #A3A3A3;
    margin-top: 6px;
    font-style: italic;
}

.popup.rfp-popup .bsa-field__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #E5E5E7;
    margin-bottom: 8px;
}

.popup.rfp-popup .rfps-tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #2a2a2c;
    border: 1px solid #3a3a3c;
    border-radius: 6px;
    min-height: 48px;
    cursor: text;
    transition: all 0.2s ease;
}

.popup.rfp-popup .rfps-tags-container:focus-within {
    border-color: var(--event-secondary-color, #4FF6B1);
    background: #323234;
}

.popup.rfp-popup .rfps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 1 auto;
}

.popup.rfp-popup .rfp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--event-secondary-color, #4FF6B1);
    color: #1a1a1c;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    animation: tagSlideIn 0.2s ease-out;
}

.popup.rfp-popup .rfp-tag-text {
    line-height: 1;
}

.popup.rfp-popup .rfp-tag-remove {
    cursor: pointer;
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #1a1a1c;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup.rfp-popup .rfp-tag-remove:hover {
    opacity: 1;
}

.popup.rfp-popup .rfp-tag-remove .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.popup.rfp-popup .rfps-input {
    flex: 1;
    min-width: 200px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    padding: 4px 0;
}

.popup.rfp-popup .rfps-input::placeholder {
    color: #6a6a6c;
}

.popup.rfp-popup .launchpad-hotel-sourcing-hotel-list .bsa-select {
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #2a2a2c;
    border: 1px solid #3a3a3c;
    border-radius: 6px;
    overflow-y: auto;
    max-height: 250px;
}

.popup.rfp-popup .launchpad-hotel-sourcing-hotel-list .bsa-select .bsa-select_option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #2a2a2c;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
}

.popup.rfp-popup .launchpad-hotel-sourcing-hotel-list .bsa-select .bsa-select_option .bsa-select__option-text {
    display: grid;
}

.popup.rfp-popup .launchpad-hotel-sourcing-hotel-list .bsa-select .bsa-select_option .bsa-select__option-text small {
    display: block;
    font-size: 11px;
    color: #A3A3A3;
    font-style: italic;
}

.loader {
    width: 50px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--event-secondary-color, #4FF6B1);
    --_m:
        conic-gradient(#0000 10%, #000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    to {
        transform: rotate(1turn)
    }
}

.loading-screen {
    position: absolute;
    width: 100%;
    height: 72px;
    top: 0;
    left: 0;
    justify-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
}

body.staff-committee-page,
body.staff-distribution-page {
    height: auto !important;
    overflow: auto;
}

body.staff-committee-page .main__content,
body.staff-distribution-page .main__content {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
}

body.staff-sevp-page:has(.staff-event-hub),
body.staff-committee-page:has(.staff-event-hub),
body.staff-distribution-page:has(.staff-event-hub) {
    --staff-brand-surface-primary: #141820;
    --staff-brand-surface-secondary: #1B212B;
    --staff-brand-surface-tertiary: #252E3B;
    --staff-brand-surface-border: #3E3E3E;
    --staff-brand-text-primary: #FFFFFF;
    --staff-brand-text-secondary: #AAB3BF;
    --staff-brand-text-disabled: #7B8491;
    --staff-brand-active-tab-color: #24B6FF;
    --staff-brand-table-highlight-primary: #003899;
    --staff-brand-progress-fill: #24B6FF;
    --staff-brand-page-shell-bg: #141820;
    --staff-brand-utility-contrast: #000000;
}

body.staff-sevp-page:has(.staff-event-hub),
body.staff-sevp-page:has(.staff-event-hub) .site-content,
body.staff-sevp-page:has(.staff-event-hub) main,
body.staff-sevp-page:has(.staff-event-hub) .main__content,
body.staff-committee-page:has(.staff-event-hub),
body.staff-committee-page:has(.staff-event-hub) .site-content,
body.staff-committee-page:has(.staff-event-hub) main,
body.staff-committee-page:has(.staff-event-hub) .main__content,
body.staff-distribution-page:has(.staff-event-hub),
body.staff-distribution-page:has(.staff-event-hub) .site-content,
body.staff-distribution-page:has(.staff-event-hub) main,
body.staff-distribution-page:has(.staff-event-hub) .main__content {
    background: var(--staff-brand-page-shell-bg, #141820) !important;
}

body.staff-dept-head-page .staff-event-hub,
body.staff-sevp-page .staff-event-hub,
body.staff-committee-page .staff-event-hub,
body.staff-distribution-page .staff-event-hub {
    max-width: 1200px;
    margin: 0 auto;
}