/* Header Styles */
.header {
    background-color: #f8f8f8; /* Light Gray Background */
    color: #333;
    padding: 5px 0;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    margin-right: 10px; /* Space between logo and menu */
}

.logo-img {
    max-height: 50px;
}

/* Menu Styles */
.menu {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    position: relative;
}

/* Style links with the .no-underline class */
.menu-no-underline {
    color: #000; /* Black text color */
    text-decoration: none; /* Remove underline */
    cursor: default;
}

.menu-no-underline:hover {
    color: #333; /* Slightly lighter black on hover, if desired */
    cursor: default;
}

/* Style links with the .no-underline class but pointer */
.menu-pointer {
    color: #000; /* Black text color */
    text-decoration: none; /* Remove underline */
}

.menu-pointer:hover {
    color: #333; /* Slightly lighter black on hover, if desired */
    text-decoration: revert; /* Remove underline */
}

/* Prevent color change on hover for no-color-change items */
.menu-no-underline.no-color-change:hover {
    background-color: #f8f8f8; /* Maintain white background on hover */
    color: #333; /* Ensure text color remains consistent */
}

a {
    color: #007bff; /* Bootstrap primary color */
}

.dark-mode a{
    color: #e0e0e0; /* Light text color for links in dark mode */
}
/* Menu List Styles */
.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 5px;
}

.menu li {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensures vertical stacking of submenu items */
    padding: 10px;
}

/* Submenu Styles */
.submenu {
    display: none;
    position: absolute;
    top: 75%;
    left: 10%;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    white-space: nowrap; /* Ensure submenu items stay on one line */
    min-width: 200px; /* Adjust based on content */
}

.submenu ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
    display: block; /* Ensure submenu items are displayed vertically */
}

.submenu li {
    display: block;
    padding: 0px;
}

.submenu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.submenu a:hover {
    background-color: #ddd; /* Light gray hover effect for submenu items */
}

/* Show submenu on hover */
.menu li:hover .submenu {
    display: block;
}

/* Sub-Submenu Styles */
.sub-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    white-space: nowrap; /* Ensure sub-submenu items stay on one line */
    min-width: 200px; /* Adjust based on content */
}

.sub-submenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block; /* Ensure sub-submenu items are displayed vertically */
}

.sub-submenu li {
    display: block;
}

.sub-submenu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sub-submenu a:hover {
    background-color: #ddd; /* Light gray hover effect for sub-submenu items */
}

/* Show sub-submenu on hover */
.submenu li:hover .sub-submenu {
    display: block;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative; /* Make sure dropdown aligns correctly */
    padding: 10px;
}

.welcome-message {
    font-size: 14px;
    white-space: nowrap; /* Ensure "Hello User" stays on one line */
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    white-space: nowrap; /* Ensure content doesn’t break onto multiple lines */
    z-index: 100;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #ddd; /* Light gray hover effect for dropdown */
}

/* Menu Toggle Styles */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 40px; /* Adjust based on header height */
        right: 10px;
        width: auto;
        background-color: #f8f8f8;
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid #ddd;
        z-index: 1000;
        padding: 0px 0px 0px 15px;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .menu li {
        padding: 5px;
    }

    .menu a {
        text-align: right;
        padding:5px;
    }

    .menu-toggle {
        display: block; /* Show menu toggle button on mobile */
    }

    .menu.active {
        display: flex; /* Show menu when toggle is active */
    }
    
    .dark-mode .menu.active {
        display: flex; /* Show menu when toggle is active */
        background: #444;
        border-top: 1px solid #555;
    }
    
    .logo-img {
    max-height: 30px; /* Smaller size for mobile screens */
    }
    
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.05);
        padding: 0 0 0 12px;
        width: 100%;
    }

    .submenu.mobile-open {
        display: block !important;
    }

    .submenu li {
        padding: 5px !important;
    }

    .sub-submenu {
        position: static !important;
        display: none !important;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.05);
        padding: 0 0 0 12px;
        width: 100%;
        left: auto !important;
        top: auto !important;
    }

    .sub-submenu.mobile-open {
        display: block !important;
    }

    /* Arrow indicator for expandable items on mobile */
    .menu-no-underline.no-color-change::after {
        content: ' ▸';
        font-size: 0.75em;
    }
}



/* Error/Success Messaging*/
#role_cat_note_container,
#media_type_description,
.message,
.error-message {
    position: relative;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    background-color: #fff2cc;
    color: #333;
    border-radius: 5px;
    text-align: center;
}

.error-message {
	background-color: #FFB6C1;
}

#role_cat_note_container,
#media_type_description {
	text-align: left;
    margin: 0px 20px 0px;
    font-size: 80%;
    display: block;
    color: #666;
    line-height: 1;
    top: -15px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #333;
}

option.placeholder,
::placeholder {
    font-style: italic;
    font-size: .8rem;
}

#loadingMessage {
    text-align: center;
    font-size: 18px;
    color: #ff0000;
    font-weight: bold;
    margin-top: 20px;
}

/* Basic Styling */
body {
    background-color: #e6e9ec;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.2;
}

h1 {
    color: #082946;
    text-align: center;
    margin: 5px 5px;
    font-size: 2em;
}

/* Form Container */
.box,
#stats {
    position: relative;
    /* Add this line */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 15px auto;
    margin-bottom: 15px;
}


.collapsible {
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f4f4f4;
    margin-bottom: 15px;
    cursor: pointer; /* Change the cursor to indicate that it's clickable */
}

.collapsible-header {
    color: #0056b3;
    border-radius: 5px 5px 0 0;
}

.collapsible-content {
    display: block; /* Hidden by default */
    border-top: 1px solid #ccc;
    font-style: italic;
}

.collapsible-content p {
    margin: 0;
}

/* Form Container */
#collapsible-box,
#search,
#entry,
#edit,
#results,
#details,
#family-section {
    position: relative;
    /* Ensure proper positioning */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 15px auto;
}

#collapsible-box{
	margin-top: 0px;
	margin-bottom: 0px;
	padding-top: 0px;
	padding-bottom: 0px;
	}

#initialMessage {
    font-style: italic;
}

/* Results Styling */
#entry,
#results,
#details {
    border: 1px solid #ddd;
    /* Optional border for results */
}

/* Table Styling inside Results */
#results table,
#details table {
    width: 100%;
    border-collapse: collapse;
}

#results th,
#results td,
#details th,
#details td {
    padding: 5px;
    border: 1px solid #ccc;
    text-align: left;
}

#results th,
#details th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#results tr:nth-child(even),
#details tr:nth-child(even) {
    background-color: #f9f9f9;
}

#results tr:hover,
#details tr:hover {
    background-color: #f1f1f1;
}

/* Hector Award Notes */
.toggle-link {
    cursor: pointer;
    text-decoration: underline;
    padding-left: 25px;
    font-size: .8em;
}

.toggle-content {
	display: none; /* Hidden by default */
	padding-left: 35px;
}

.date-awarded,
.show-title {
	padding-left: 15px;
	font-size: .9em;
}


/* Required Field Indicator */
.req {
    color: red;
    font-weight: bold;
}

p {
    margin: 0;
    padding: 0;
}

/* Style for the production list table */
.production-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px; /* Space below each table */
}

.production-list-table th, .production-list-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Light border for rows */
}

.production-list-table th {
    background-color: #f4f4f4; /* Light grey background for headers */
    font-weight: bold;
}

.production-list-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Zebra striping for rows */
}

/* Specific style for the Edit link in production list tables */
.production-list-table .edit-link,
#performance-table .more-link {
    color: #6c757d; /* Subtle grey color for the Edit link */
    text-decoration: none;
    font-weight: bold; /* Bold text */
    font-size: 0.7em; /* Smaller font size */
    text-transform: uppercase; /* All caps */
}

.production-list-table .edit-link:hover,
#performance-table .more-link:hover {
    color: #5a6268; /* Slightly darker grey on hover */
    text-decoration: underline;
}

#performance-table,
#performance-table td {
	padding: 4px;
}

#performance-table th.date,
#performance-table th.time,
#performance-table th.presold,
#performance-table th.atdoor,
#performance-table th.total,
#performance-table th.soldout,
#performance-table th.canceled,
#performance-table th.asl
{
    font-size: 0.7em; /* Smaller font size */
    background-color: lightgray;
	writing-mode: vertical-rl; /*Rotate -90deg; */
	text-align: center; /* Center text horizontally */
    vertical-align: middle; /* Center text vertically */
    padding: 10px; /* Padding for spacing */
    height: 50px; /* Adjust height to fit rotated text */
    overflow: hidden; /* Hide any overflow from the rotation */
    align-items: center; /* Center text vertically in the flex container */
    justify-content: center; /* Center text horizontally in the flex container */
}
#performance-table th.notes,
#performance-table th.wnotes,
#performance-table th.snotes,
#performance-table th.pnotes,
#performance-table th.onotes,
#performance-table th.edit
{
    font-size: 0.7em; /* Smaller font size */
    background-color: lightgray;
	text-align: center; /* Center text horizontally */
    vertical-align: middle; /* Center text vertically */
    padding: 10px; /* Padding for spacing */
    height: 50px; /* Adjust height to fit rotated text */
    overflow: hidden; /* Hide any overflow from the rotation */
    align-items: center; /* Center text vertically in the flex container */
    justify-content: center; /* Center text horizontally in the flex container */
}



#performance-table td.notes,
#performance-table td.wnotes,
#performance-table td.snotes,
#performance-table td.pnotes,
#performance-table td.onotes
{
    font-size: 0.7em; /* Smaller font size */
}

#performance-table td.date,
#performance-table td.time
{
	font-size: 0.85em;
    width: auto;
    white-space: nowrap; /* Prevents text from wrapping to a new line */
}

#performance-table td
{
	text-align: center;
}


/* Style for the request-issue table */

#requestsIssuesTable {
    width: auto;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

#requestsIssuesTable th,
#requestsIssuesTable td {
    border: 1px solid #ddd;
    padding: 4px;
}

#requestsIssuesTable th {
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

#requestsIssuesTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#requestsIssuesTable tr:hover {
    background-color: #ddd;
}

/* Container for the buttons */
.button-container {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    align-items: center; /* Center the buttons vertically */
    width: 100%;
    margin: 0 auto 15px; /* Center the container */
    max-width: 800px;
}

/* Style for the buttons */
input[type="submit"],
.return-button,
.update-button,
.delete-button,
.add-button,
.remove_excluded,
.tag-button {
    padding: 12px 20px; /* Ensure sufficient padding */
    text-transform: uppercase;
    font-weight: bold;
    font-size: .8em;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin: 0 10px; /* Space out the buttons */
    display: inline-block; /* Ensure buttons are inline */
}

.remove_excluded {
    padding: 3px 5px; 
    margin: 0 2px; /* Space out the buttons */
}

/* Style for the submit button */
input[type="submit"] {
    background-color: #007bff;
    color: white;
}

/* Style for the return button */
.return-button,
.tag-button {
    background-color: #007bff;
    color: white;
}

/* Style for the update profile button */
.update-button,
.add-button {
    background-color: #28a745; /* Green color for update profile */
    color: white;
}

/* Style for the delete button */
.delete-button,
.remove_excluded {
    background-color: #dc3545; /* Red color for delete */
    color: white;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Hover effects */
.return-button:hover {
    background-color: #0056b3;
}

.update-button:hover,
.add-button:hover{
    background-color: #218838; /* Darker green for hover effect */
}

.delete-button:hover,
.remove_excluded:hover {
    background-color: #c82333;
}

/* Required Field Indicator */
p.required {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: .8em;
    margin: 0;
    padding: 0;
}

/* Labels and Inputs */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #082946;
}

/* Inputs and Selects */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    font-family: Arial, sans-serif; /* Clean, readable font */
    width: calc(100% - 0px);
    /* Adjust width to leave space around */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 1em;
    box-sizing: border-box;
    /* Ensures padding doesn't affect the overall width */
}

/*Shadow around infocus inputs*/
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 5px 2px #007bff;
}

/* Ensure the container for each radio button and label is displayed as a flexbox */
.role-radio-container {
    display: flex;
    align-items: center; /* Align items vertically centered */
    margin: 0 0 4px 30px; /* Optional: add some spacing between each radio button */
}

/* Style for the radio button */
.role-radio-container input[type="radio"] {
    margin-right: 10px; /* Space between radio button and label */
    accent-color: #007bff; /* Optional: change radio button color */
    vertical-align: middle; /* Align radio button vertically in the middle */
        margin: 0 5px 0 0px; /* Optional: add some spacing between each radio button */

}

/* Style for the label */
.role-radio-container label {
    font-size: 14px; /* Adjust font size if needed */
    vertical-align: middle; /* Align label text vertically in the middle */
        margin: 0 0 0 0px; /* Optional: add some spacing between each radio button */

}

select {
    width: calc(100% - 0px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    /* Vertically centers checkbox and label */
    margin-bottom: 10px;
    /* Space below each checkbox group */
    margin-left: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    /* Space between checkbox and label */
}

.checkbox-group label {
    margin: 0;
    /* Remove default margin from label to control spacing */
}

/* Grouping and Alignment */
#name_first_container,
#new_name_fields {
    display: none;
}

#new_name_fields {
    display: none;
    border: solid;
    margin: 0px 15px 0px;
    padding: 7px;
}

#individual_info {
	margin-left: 20px;
}

h3,
h2 {
    margin: 5px 5px;
    color: #0056b3;
}

p.input_note {
    font-size: 80%;
    /* Match the font size of <small> */
    display: block;
    margin-left: 20px;
    margin-top: -5px;
    margin-bottom: 4px;
    color: #666;
    line-height: 1;
}

p.note {
    font-size: 80%;
    /* Match the font size of <small> */
    display: block;
    margin-left: 10px;
    margin-top: -5px;
    margin-bottom: 10px;
    color: #666;
    line-height: 1;
}

.performance-times {
	margin-bottom: 10px;
}

.performance-times h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.performance-time-group {
    display: flex;
    align-items: baseline;
    padding-left: 20px;
}

.performance-time-group label {
    margin-right: 10px; /* Space between label and input */
    white-space: nowrap; /* Prevents the label from wrapping */
}

.performance-time-group input[type="time"],
.performance-time-group input[type="date"]
{
    width: auto; /* Adjust width to fit the input's content */
    flex-shrink: 0; /* Prevents the input from shrinking */
    font-family: Arial, sans-serif; /* Clean, readable font */
    font-size: 1em; /* Adjust size */
    font-weight: 400; /* Normal weight */
    color: #333; /* Text color */
    padding: 2px; /* Padding for spacing */
    border-radius: 4px; /* Rounded corners */
    border: 1px solid #ccc; /* Light border */
    background-color: #f9f9f9; /* Light background */
}

.performance-time-group input[type="time"]:focus,
.performance-time-group input[type="date"]:focus
{
    border-color: #007bff; /* Border color on focus */
}

.date-fields,
.price-fields,
.book-fields,
.time-fields,
.name-fields,
.media-search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between columns */
}

.date-field,
.price-field,
.book-field,
.time-field,
.name-field,
.media-search-field {
    flex: 1 1 30%; /* Flex-grow, flex-shrink, flex-basis */
}

.date-field label,
.price-field label,
.book-field label,
.time-field label,
.name-field label,
.media-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.date-field input,
.price-field input,
.book-field input,
.time-field input,
.name-field input,
.media-search-field input {
    width: 100%; /* Makes input field take full width of its container */
}

@media (max-width: 768px) {
.date-field,
.price-field,
.book-field,
.time-field,
.name-field,
.media-search-field {
        flex: 1 1 100% !important; /* Full width on mobile */
    }
}


input:required,
select:required {
    background-color: ivory;
    border: 1px solid red;
}

/* Sortable Columns */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable:hover {
    text-decoration: underline;
}

.sort-icon {
    font-size: 0.8em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.asc::after {
    content: '▲' !important;
}

.desc::after {
    content: '▼' !important;
}
.sortable.desc,
.sortable.asc {
    color: red !important;
}

/* Style for the select element with multiple options */
select[multiple] {
    width: 100%;
    /* Adjust as needed */
    overflow-y: auto;
    /* Add scrollbar if needed */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
    height: 22px;
    resize: vertical;
    /* Allow vertical resizing only */
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    input[type="email"],
    select {
        font-size: 0.9em;
    }

    input[type="submit"] {
        padding: 10px;
        font-size: 0.9em;
    }
}

ul {
    margin-block-start: 0em;
}

.menu-button {
    text-align: center;
    background-color: var(--button-bg, lightgray); /* Default background color */
    border-radius: 8px;
    font-size: 0.65em;
    justify-content: space-evenly;
    padding: 10px; /* Add some padding for better appearance */
    color: var(--button-text-color, black); /* Default text color */
}

/* Dark Mode Styles */
:root {
    --button-bg: lightgray; /* Light mode background */
    --button-text-color: black; /* Light mode text color */
}

/* Dark mode styles */
.dark-mode {
    --button-bg: #444; /* Dark mode background */
    --button-text-color: white; /* Dark mode text color */
}

.menu-button:hover {
    background-color: var(--button-hover-bg, #ccc); /* Light mode hover */
}

.dark-mode .menu-button:hover {
    background-color: #444; /* Dark mode hover */
}

.dark-mode {
    background-color: #1a1a1a; /* Dark background for body */
    color: #e0e0e0; /* Light text color */
}

.dark-mode .header {
    background-color: #333; /* Dark gray background for header */
    color: #e0e0e0; /* Light text color */
}

.dark-mode .menu-toggle {
	color: #e0e0e0;
}

.dark-mode .menu-no-underline,
.dark-mode .menu-pointer {
    color: #e0e0e0; /* Light text color */
}

.dark-mode .menu-no-underline:hover,
.dark-mode .menu-pointer:hover {
    color: #fff; /* Brighter color on hover */
}

/* Submenu styles in dark mode */
.dark-mode .submenu {
    background-color: #444; /* Dark background for submenu */
    border: 1px solid #555; /* Dark border */
    padding: 10px; /* Padding inside the submenu */
}

.dark-mode .submenu ul {
    list-style-type: none; /* Remove default list style */
    padding: 0;
    margin: 0;
}

.dark-mode .submenu a {
    color: #e0e0e0; /* Light text color */
    display: block; /* Make links fill the submenu area */
    padding: 8px 12px; /* Spacing for submenu links */
    text-decoration: none;
}

.dark-mode .submenu a:hover {
    background-color: #555; /* Darker hover background */
    color: #fff; /* Bright hover text */
}

/* Sub-submenu specific styles in dark mode */
.dark-mode .sub-submenu {
    background-color: #444; /* Dark background for sub-submenu */
    border: 1px solid #555; /* Dark border for sub-submenu */
    position: absolute; /* Position the sub-submenu */
    left: 50%; /* Align the sub-submenu to the right of its parent */
    top: 0; /* Align sub-submenu with its parent submenu */
    display: none; /* Hidden by default */
}

.dark-mode .submenu li:hover > .sub-submenu {
    display: block; /* Show sub-submenu on hover */
}

/* Sub-submenu links */
.dark-mode .sub-submenu a {
    color: #e0e0e0; /* Light text color for sub-submenu */
    padding: 8px 12px; /* Padding for sub-submenu links */
    display: block; /* Fill the sub-submenu area */
}

.dark-mode .sub-submenu a:hover {
    background-color: #555; /* Darker background on hover */
    color: #fff; /* Bright text on hover */
}

/* Additional padding or indentation if needed */
.dark-mode .submenu ul ul a {
    padding-left: 20px; /* Extra indentation for sub-submenu links */
}



.dark-mode .collapsible {
    background-color: #333; /* Dark background for collapsible */
}

.dark-mode .box,
.dark-mode #stats,
.dark-mode #collapsible-box,
.dark-mode #search,
.dark-mode #entry,
.dark-mode #edit,
.dark-mode #results,
.dark-mode #details,
.dark-mode #family-section {
    background-color: #222; /* Dark background for boxes */
    border: 1px solid #555; /* Dark border */
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3 {
    color: #e0e0e0; /* Light color for headings */
}


.dark-mode label {
    color: #ccc; /* Lighter color for paragraphs and labels */
}

.dark-mode input[type="text"],
.dark-mode input[type="number"],
.dark-mode input[type="date"],
.dark-mode input[type="tel"],
.dark-mode input[type="email"],
.dark-mode input[type="file"],
.dark-mode select,
.dark-mode textarea {
    background-color: #444; /* Dark background for inputs */
    color: #e0e0e0; /* Light text color */
    border: 1px solid #666; /* Darker border */
}

.dark-mode .performance-time-group input[type="time"],
.dark-mode .performance-time-group input[type="date"] {
    background-color: #444; /* Dark background for time/date inputs */
    color: #e0e0e0; /* Light text color */
    border: 1px solid #666; /* Darker border */
}

/* Adjust table styles for dark mode */
.dark-mode #results th,
.dark-mode #details th {
    background-color: #333; /* Dark background for table headers */
    color: #e0e0e0; /* Light text color */
}

.dark-mode #results td,
.dark-mode #details td {
    background-color: #222; /* Dark background for table cells */
    color: #e0e0e0; /* Light text color */
}

.dark-mode #photo-stats th,
.dark-mode #people-stats th {
    background-color: #333;
    color: #e0e0e0;
}

.dark-mode #photo-stats td,
.dark-mode #people-stats td {
    background-color: #222;
    color: #e0e0e0;
}

.dark-mode #people-stats .hist-bar {
    background-color: #4a7ab5;
}

.dark-mode #people-stats p {
    color: #aaa;
}

.dark-mode #requestsIssuesTable th {
    background-color: #333; /* Dark background for request issues table */
    color: #e0e0e0; /* Light text color */
}

.dark-mode #requestsIssuesTable tr:nth-child(even) {
    background-color: #333; /* Dark background for even rows */
}

.dark-mode #requestsIssuesTable tr:hover {
    background-color: #555; /* Darker hover effect for rows */
}

/* Shadow effect on focus inputs */
.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    box-shadow: 0 0 5px 2px #007bff; /* Keep the same shadow */
}

/* === Dark-mode styles for Select2 === */
/* the “box” that shows the selected value */
.dark-mode .select2-container--default .select2-selection--single {
    background-color: #444 !important;
    color:            #e0e0e0 !important;
    border:           1px solid #666 !important;
}

/* the dropdown panel */
.dark-mode .select2-container--default .select2-dropdown {
    background-color: #444 !important;
    border:           1px solid #666 !important;
}

/* each option in the list */
.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color:            #e0e0e0 !important;
}

/* hovered / highlighted option */
.dark-mode .select2-container--default 
       .select2-results__option--highlighted {
    background-color: #555 !important;
    color:            #fff  !important;
}


/* Production info banner on production_list.php */
#prod-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    max-width: 800px;
    margin: -8px auto 0;  /* pull up slightly to reduce gap between cards */
    font-size: 0.875rem;
    color: #333;
}

#prod-info-dates,
#prod-info-venue {
    white-space: nowrap;
}

#prod-info a {
    margin-left: auto;
    font-size: 0.8rem;
    color: #1a6eb5;
    text-decoration: none;
    border: 1px solid #1a6eb5;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}

#prod-info a:hover {
    background: #1a6eb5;
    color: #fff;
}

.dark-mode #prod-info {
    background-color: #222;
    border: 1px solid #555;
    color: #e0e0e0;
}

.dark-mode #prod-info a {
    color: #7ab3e0;
    border-color: #7ab3e0;
}

.dark-mode #prod-info a:hover {
    background: #7ab3e0;
    color: #222;
}

.immich-notice {
    background: #fff8e1;
    border: 1px solid #f0c040;
    border-radius: 6px;
    padding: 0.8em 1.2em;
    margin-bottom: 1em;
    font-size: 0.9em;
    color: #333;
}

.dark-mode .immich-notice {
    background: #3a3000;
    border-color: #a07800;
    color: #f0d060;
}

.dark-mode .immich-notice a {
    color: #ffd040;
}