.w-form-width{
    max-width: 1300px;
}
#id_person_prices-FORMS{
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}
.dates-panel .w-panel__wrapper,.spots-panel .w-panel__wrapper {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
}
.dates-panel .w-panel__wrapper:last-child,.spots-panel .w-panel__wrapper:last-child {
    margin-right: 0;
}
.spots-panel input{
    width: auto;
}
.checkbox-select-multiple{
    display: grid;
    grid-template-columns: auto auto auto;
}
.modal { 
    display: none; 
    position: fixed; 
    top: 0%; 
    left: 0%; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
}
.model-column{
    padding: 10px;
    width: 750px;
}
.modal-content-custom { 
    background: var(--w-bg-primary, white);
    color: var(--w-text-primary, black);;
    padding: 20px; 
    width: max-content; 
    margin: 10% auto; 
    border-radius: 10px;
    display: block;
}
.close { 
    float: right; 
    cursor: pointer; 
    color: var(--w-text-secondary, #333); ;
}
.model-column div{
    padding: 10px;
}
.model-column input[type="checkbox"]{
    margin-bottom: 5px;
    vertical-align: middle;
    filter: var(--w-filter-invert, none); 
}
.model-column select{
    font-size: 0.9rem;
    min-height: 1.5rem;
    background-position-y: 0.85rem, 0.85rem;
    margin-top: 3px;
    background-color: var(--w-bg-secondary, #f8f9fa); /* Light background in light mode */
    color: var(--w-text-primary, black);
    border: 1px solid var(--w-border-color, #ccc);
}
/* Ensure labels and text are readable */
.checkbox-group label, .dropdown-group label, .modal-content-custom h2 {
    font-weight: bold;
    color: var(--w-text-primary, black);
}
.modal-content-custom h2{
    text-align: center;
}
.button-row{
    text-align: right;
    padding: 1rem 0 0.5rem 0;
}

/* Checkbox Row */
.checkbox-row {
    display: flex;
    justify-content: space-between; /* Spreads items evenly */
    margin-bottom: 20px; /* Space between rows */
}

.checkbox-group {
    flex: 1; /* Each group takes equal space */
    margin-right: 15px; /* Space between groups */
}

.checkbox-group:last-child {
    margin-right: 0; /* Remove margin from the last item */
}

/* Dropdown Row */
.dropdown-row {
    display: flex;
    justify-content: space-between; /* Spreads items evenly */
}

.dropdown-group {
    flex: 1; /* Each group takes equal space */
    margin-right: 15px; /* Space between groups */
}

.dropdown-group:last-child {
    margin-right: 0; /* Remove margin from the last item */
}

.dropdown-group select {
    width: 100%; /* Ensure dropdowns fill their container */
}

.w-header .right {
    margin-top: .85rem;
}

/* Base styles for the button */
.btn-outline-primary {
    /* Core button styles (from Bootstrap's .btn class) */
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem; /* Default padding */
    font-size: 1rem; /* Default font size */
    border-radius: 0.375rem; /* Default border-radius in Bootstrap 5 */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, 
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

    /* Outline-specific styles */
    color: var(--w-color-text-button); /* Primary color for text */
    background-color: var(--w-color-surface-button-default); /* Transparent background */
    background-image: none; /* Reset any gradient */
    border: 1px solid var(--w-color-surface-button-default); /* Primary color for border */
}

/* Hover state */
.btn-outline-primary:hover {
    color: var(--w-color-text-button); /* White text on hover */
    background-color: var(--w-color-surface-button-default); /* Primary color background */
    border-color: var(--w-color-surface-button-default); /* Ensure border matches */
}

/* Focus state */
.btn-outline-primary:focus,
.btn-outline-primary.focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Focus ring */
}

/* Active/Pressed state */
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: var(--w-color-text-button); /* White text */
    background-color: var(--w-color-surface-button-default); /* Primary color background */
    border-color: var(--w-color-surface-button-default); /* Match border */
}

/* Disabled state */
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: var(--w-color-text-button); /* Keep text color */
    background-color: transparent; /* Still transparent */
    border-color: var(--w-color-surface-button-default); /* Keep border color */
    opacity: 0.65; /* Reduced opacity for disabled look */
}

/* Base styles for the button */
.btn-outline-secondary {
    /* Core button styles (from Bootstrap's .btn class) */
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem; /* Default padding */
    font-size: 1rem; /* Default font size */
    border-radius: 0.375rem; /* Default border-radius in Bootstrap 5 */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, 
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

    /* Outline-specific styles */
    color: #6c757d; /* Secondary color for text */
    background-color: transparent; /* Transparent background */
    background-image: none; /* Reset any gradient */
    border: 1px solid #6c757d; /* Secondary color for border */
}

/* Hover state */
.btn-outline-secondary:hover {
    color: #fff; /* White text on hover */
    background-color: #6c757d; /* Secondary color background */
    border-color: #6c757d; /* Ensure border matches */
}

/* Focus state */
.btn-outline-secondary:focus,
.btn-outline-secondary.focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25); /* Focus ring */
}

/* Active/Pressed state */
.btn-outline-secondary:active,
.btn-outline-secondary.active {
    color: #fff; /* White text */
    background-color: #6c757d; /* Secondary color background */
    border-color: #6c757d; /* Match border */
}

/* Disabled state */
.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled {
    color: #6c757d; /* Keep text color */
    background-color: transparent; /* Still transparent */
    border-color: #6c757d; /* Keep border color */
    opacity: 0.65; /* Reduced opacity for disabled look */
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#organizer-buttons button.active {
    background-color: var(--w-color-surface-button-hover);
}

.tour-listing-table td.field-name.title {
    display: grid;
    justify-content: flex-start;
}

/*  .tour-listing-table th:first-child,
.tour-listing-table td:first-child {
    min-width: 17rem;
    white-space: normal;
}

.tour-listing-table th:nth-child(3),
.tour-listing-table td:nth-child(3),
.tour-listing-table th:nth-child(4),
.tour-listing-table td:nth-child(4){
    min-width: 10rem;
    white-space: normal;
}

@media screen and (min-width: 75em) {
    .modeladmin .result-list.col9 {
        width: 87% !important;
    }
    .modeladmin .changelist-filter{
        width: 13% !important;
    }
} */

.scrollable-checkbox{
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
}
.scrollable-checkbox div{
    margin: 0 0 5px 0;
}