/* Adjustments for small, medium, and low-large screens */
@media screen and (max-width: 1499px) {
    /* Container div for division map on National calendar */
    .psia-calendar-division-map-wrapper {
        display: block !important;
    }
}

/* Adjustments for small and medium screens */
@media screen and (max-width: 959px) {
    /* Select Month to View" image in calendar header */
    .psia-calendar-header-image,
    /* Return link from event detail page back to calendar */
    .psia-calendar-event-desktop-return-link,
    /* Link to event detail page from list view calendar */
    .psia-calendar-list-table-event-name-desktop,
    /* Link to open "Add Event" popup window in event scheduling tool */
    .psia-calendar-desktop-add-event-link {
        display: none !important;
    }

    /* Link to event detail page from list view calendar */
    .psia-calendar-list-table-event-name-mobile,
    /* Return link from event detail page back to calendar */
    .psia-calendar-event-mobile-return-link,
    /* Link to open "Add Event" popup window in event scheduling tool */
    .psia-calendar-mobile-add-event-link {
        display: block !important;
    }

    /* Mobile version of "Select Month to View" link in calendar header */
    .psia-calendar-mobile-header-item {
        display: inline-block !important;
    }

    /* Discipline color key list in calendar header */
    .psia-calendar-color-key-list {
        text-align: left !important;
    }

    /* Division map for National calendar */
    .psia-calendar-division-map {
        display: none;
    }

    /* Mobile version of division map for National calendar */
    .psia-calendar-division-map-mobile {
        display: block !important;
    }
}

/* Adjustments for small screens */
@media screen and (max-width: 775px) {
    /* Previous & next month & year labels in calendar header */
    .psia-calendar-date-header-item, 
    /* Month & year label for currently displayed month in calendar header */
    .psia-calendar-current-date-header-item {
        display: block !important;
    }

    /* List containing month & year labels in calendar header */
    .psia-calendar-header-month-list {
        width: 170px !important;
    }

    /* Export events link on National calendar */
    .psia-calendar-national-export-link {
        width: 100% !important;
        display: block !important;
        text-align: center;
    }
    
    /* Calendar mode switch link on National calendar */
    .psia-calendar-national-mode-switch {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }
}

/* Print adjustments */
@media print {
    /* Hide the entire page to prevent printing of the WordPress menus */
    body {
        visibility: hidden;
    }

    /* Make only the calendar visible */
    .psia-calendar-wrapper {
        visibility: visible;
        page-break-before: always;
    }

    /* All of the calendar headers except the date row */
    .psia-calendar-headers,
    /* Select Month to View" image in calendar header */
    .psia-calendar-header-image,
    /* Previous & next month & year labels in calendar header */
    .psia-calendar-date-header-item, 
    /* All of the calendar footers */
    .psia-calendar-page-footers,
    /* Image link to select a specific month to view, located next to current month title */
    .psia-calendar-triangle-month-select {
        display: none !important;
    }

    /* Prevent page breaks within calendar table rows */
    .psia-calendar-calendar-table tr { 
        page-break-inside: avoid; 
        page-break-after: auto;
    }    
}

/* -------------------------- Sitewide Styles -------------------------- */

/* Various hidden divs opened with Javascript-enabled links */
.psia-calendar-hidden-div {
    display: none;
}
/* Hidden divs being shown on page load */
.psia-calendar-hidden-div-force-display {
    display: block;
}

/* Various error messages typically appearing at the top of the calendar or event detail pages */
.psia-calendar-error-message {
    color: red;
}

/* Various success messages typically appearing at the top of the calendar or event detail pages */
.psia-calendar-success-message {
    color: green;
}

/* Various image links */
.psia-calendar-image-link { 
    border: 1px solid white; 
    max-width: none;
} 

.psia-calendar-image-link:hover { 
    border: 1px dotted black; 
}

.psia-calendar-image-link:active {
    border: 1px solid black;
}

/* Container for various image links */
.psia-calendar-image-container {
    height: 22px;
    width: 22px;
}

/* Various text input fields */
.psia-calendar-text-input {
    color: black !important;
    margin: 0px !important;
    padding: 6px 4px;
}

/* Various tables and table cells */
.psia-calendar-no-border,
.psia-calendar-no-border td,
/* Table and table cells containing the date selection options on the "Export Events" popup */
.psia-calendar-export-date-select-table,
.psia-calendar-export-date-select-table td,
/* Table and table cells containing the event roster in the popup on the event detail page */
.psia-calendar-roster-table,
.psia-calendar-roster-table td,
/* Table in event scheduling tool add/edit event mode select */
.psia-calendar-event-scheduling-mode-select,
/* Table and table cells in event scheduling tool add/edit event popup for editing event info */
.psia-calendar-event-scheduling-event-info-table,
.psia-calendar-event-scheduling-event-info-table td,
/* Table and table cells in inner registration deadline table in event scheduling tool add/edit event popup for editing event info */
.psia-calendar-event-scheduling-registration-deadline-inner-table,
.psia-calendar-event-scheduling-registration-deadline-inner-table td,
/* Table and table cells in inner session & package sections of multi-session events in event scheduling tool add/edit event popup */
.psia-calendar-event-scheduling-multi-session-inner-table,
.psia-calendar-event-scheduling-multi-session-inner-table td,
/* Table and table cells within main calendar table containing admin buttons */
.psia-calendar-calendar-table-event-cell-admin-table,
.psia-calendar-calendar-table-event-cell-admin-table td,
/* Table and table cells containing event information and calendar return link on event detail page */
.psia-calendar-event-display-table,
.psia-calendar-event-display-table td,
/* Table and table cells containing inner table with non-member price information in event scheduling tool add/edit event popup */
.psia-calendar-event-scheduling-tool-members-only-inner-table,
.psia-calendar-event-scheduling-tool-members-only-inner-table td,
/* Table and table cells containing inner table with price increase information in event scheduling tool add/edit event popup */
.psia-calendar-event-scheduling-price-increase-inner-table,
.psia-calendar-event-scheduling-price-increase-inner-table td,
/* Table and table cells containing inner table with location & location detail information in event scheduling tool add/edit event popup */
.psia-calendar-event-scheduling-location-inner-table,
.psia-calendar-event-scheduling-location-inner-table td,
/* Table and table cells containing the form to send an email to the event participants */ 
.psia-calendar-event-roster-email-table,
.psia-calendar-event-roster-email-table td {
    border: none !important;
}

/* Various popup windows */
.psia-calendar-modal-box {
    display: none;
    position: fixed;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #aaa;
    border-radius: 4px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
    overflow-y: auto;
    max-height: calc(100% - 60px);
    max-width: calc(100% - 60px);
    top: 30px;
    left: 30px;
}

/* Popup window header */
.psia-calendar-modal-box header {
    padding: 1.25em 2em;
    border-bottom: 1px solid #ddd;
}

/* Popup window header text */
.psia-calendar-modal-box header h3 {
    margin: 0;
}

/* Popup window body */
.psia-calendar-modal-body {
    padding: 2em 1.5em; 
    font-size: 14px;
}

/* Popup window footer */
.psia-calendar-modal-box footer {
    padding: 1em;
    border-top: 1px solid #ddd;
    background: rgba(0, 0, 0, 0.02);
    text-align: left;
}

/* Background overlay across the rest of the page when a popup window is open */
.psia-calendar-modal-overlay {
    opacity: 0;
    filter: alpha(opacity=0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Top "X" link in popup windows to close the window */
.psia-calendar-modal-box-header-close-button {
    line-height: 1;
    font-size: 1.5em;
    position: absolute;
    top: 10px;
    right: 10px;
    text-decoration: none;
    color: #bbb;
}

.psia-calendar-modal-box-header-close-button:hover {
    color: #222;
    -webkit-transition: color 1s ease;
    -moz-transition: color 1s ease;
    transition: color 1s ease;
}

/* Popup windows being shown on page load */
.psia-calendar-modal-box-force-display {
    display: block;
}

/* Background overlay across the rest of the page when a popup window is being shown on page load */
.psia-calendar-modal-overlay-force-display {
    opacity: 0.7;
}

/* Various form buttons */
.psia-calendar-blue-button,
.psia-calendar-red-button {
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 8px;
    padding: 0px 7px 15px 7px;
    height: 29px;
    line-height: 26px;
}

.psia-calendar-blue-button::-moz-focus-inner,
.psia-calendar-red-button::-moz-focus-inner {
    padding: 0;
    border: 0
}

/* Various blue form buttons */
.psia-calendar-blue-button {
    background-color: #EEEEEE; 
    color: black; 
    border: 3px solid #008CBA;
    font-weight: normal;
}

.psia-calendar-blue-button:hover {
    background-color: #C9E3FF;
}

.psia-calendar-blue-button:active {
    background-color: #008CBA;
    color: white;
}

/* Various red form buttons */
.psia-calendar-red-button {
    background-color: #EEEEEE; 
    color: black; 
    border: 3px solid #f44336;
    font-weight: normal;
}

.psia-calendar-red-button:hover {
    background-color: #FFc9c9;
}

.psia-calendar-red-button:active {
    background-color: #f44336;
    color: white;
}

/* Various HR elements */
.psia-calendar-wrapper hr {
    margin: 10px 0px 30px 0px;
    border: solid #ddd;
    border-width: 1px 0px 0px;
}

/* Orange button wrapper class, replicating how buttons are displayed on thesnowpros.org */
.psia-calendar-orange-button-wrapper {
    display: inline;
}

/* Orange button class, replicating how buttons are displayed on thesnowpros.org */
.psia-calendar-orange-button {
    display: inline-block;
    background: #ea7600;
    border-color: white;
    border-width: 0px;
    border-radius: 2px;
    padding: 9px 20px;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: "Open Sans";
    font-style: normal;
    text-transform: uppercase;
    -webkit-transition: all .2s;
    transition: all .2s;
    line-height: 17px;
    font-size: 14px;
    color: white;
}

.psia-calendar-orange-button:hover {
    background: #ff9c37;
    color: white;
}

.psia-calendar-orange-button:active {
    color: white;
    text-decoration: none;
}

/* -------------------------- Main Calendar Page Headers -------------------------- */

/* Unordered list of discipline color keys in the calendar header */
.psia-calendar-color-key-list {
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Title and line items in discipline color key in calendar header */
.psia-calendar-color-key-item,
.psia-calendar-color-key-title {
    padding: 4px !important;
    margin: 0px !important;
    display: inline-block;
    text-align: center;
}

/* Title of discipline color key in calendar header */
.psia-calendar-color-key-title {
    font-weight: bold;
}

/* Links within the disicpline color key in the calendar header */
.psia-calendar-color-key-link:link {
	color: black;
	text-decoration: none;
}

.psia-calendar-color-key-link:visited {
	color: black;
	text-decoration: none;
}

.psia-calendar-color-key-link:hover {
	color: #888888;
}

.psia-calendar-color-key-link:active {
	color: #888888;
	text-decoration: underline;
}

/* Header area of main calendar page that shows when filters are active */
.psia-calendar-filter-active-box {
    width: 100%;
    text-align: center;
    padding: 0px 0px 4px;
}

/* Main text in header area of main calendar page that shows when filters are active */
.psia-calendar-filter-active-title {
    color: red;
}

/* Unordered list containing the "Filter Displayed Events" and "Switch Calendar Mode" links in the calendar header */
.psia-calendar-header-list {
    margin: auto;
    padding: 0;
    text-align: center;
}

/* "Filter Displayed Events" and "Switch Calendar Format" links in calendar and event scheduling tool header */
.psia-calendar-header-item,
.psia-calendar-event-scheduling-tool-header-item {
	width: 50%;
  	min-width: 225px;
	text-align: center;
    border: none;
    padding-bottom: 4px;
    display: inline-block;
    margin: 0px !important;
    font-size: 120%;
}

/* "Filter Displayed Events" and "Switch Calendar Format" links in event scheduling tool header */
.psia-calendar-event-scheduling-tool-header-item {
    width: 33%;
    margin: 0px;
}

/* Mobile version of link to open popup window to add new event in the event scheduling tool */
.psia-calendar-mobile-add-event-link {
    display: none;
    font-weight: bold;
    width: 100%;
}

/* Desktop version of link to open popup window to add new event in the event scheduling tool */
.psia-calendar-desktop-add-event-link {
    font-weight: bold;
    font-size: 120%;
}

/* Unordered list containing the date items in the calendar header */
.psia-calendar-header-month-list {
  	margin: auto;
  	padding: 0;
  	text-align: center;
}

/* Mobile version of the "Select Month to View" link in the calendar header */
.psia-calendar-mobile-header-item {
	text-align:center;
  	width: 50%;
    padding-bottom: 4px;
    min-width: 150px;
  	display: none;
}

/* Image in calendar header which links to open "Select Month to View" popup window */
.psia-calendar-header-image {
	text-align: center;
  	width: 20px;
    display: inline-block;
    margin: 0px;
}

/* Previous & next month & year labels in calendar header */
.psia-calendar-date-header-item,
/* Month & year label for currently displayed month in calendar header */
.psia-calendar-current-date-header-item {
	text-align: center;
	max-width: 300px;
  	width: 30%;
    font-size: 120%;
    display: inline-block;
    padding-bottom: 6px;
    min-width: 170px;
    margin: 0px;
    line-height: normal;
}

/* Image link to select a specific month to view, located next to current month title */
.psia-calendar-triangle-month-select {
    display: inline-block;
    margin: 0px 5px 0px 0px;
    line-height: auto;
} 

/* Container div holding image which opens "Select Month to View" dropdown div when clicked */
.psia-calendar-triangle-month-select-wrapper {
    display: inline-block;
    position: relative;
}

/* "Select Month to View" dropdown div */
#psia-calendar-month-select-dropdown:not(table):not(select) {
    margin: 20px 0px 0px 0px;
    padding: 15px;
    display: none;
    position: absolute;
    min-width: 200px;
    background-color: #fbfbfb;
    border: 2px solid black;
    border-radius: 0px 10px 10px 10px;
    z-index: 1;
    font-weight: normal;
    text-align: left;
}

/* Table cell within "Select Month to View" dropdown div */
#psia-calendar-month-select-dropdown td {
    font-size: 83.333333333%;
}

/* Title within "Select Month to View" dropdown div */
.psia-calendar-month-select-dropdown-title {
    font-weight: bold;
    margin: 0px 0px 10px 0px;
}

/* Month & year label for currently displayed month in calendar header */
.psia-calendar-current-date-header-item {
    font-weight: bold;
}

/* "Select All" label for national calendar filter selection */
.psia-calendar-national-filter-select-all {
    font-weight: bold;
}

/* Container div for division map on National calendar */
.psia-calendar-division-map-wrapper {
    display: inline-block;
}

/* Division map on National calendar */
.psia-calendar-division-map {
    margin: 0px auto 20px auto;
}
/* Mobile version of division map on National calendar */
.psia-calendar-division-map-mobile {
    margin: 0px auto 20px auto;
    display: none;
}

/* Container div holding filter options on National calendar */
.psia-calendar-national-filter-select-wrapper {
    width: 100%;
    text-align: center;
}

/* Inner container div holding one type of filter options on National calendar */
.psia-calendar-national-filter-select-table {
    width: 200px;
    display: inline-block;
    vertical-align: top;
    margin: 0px 10px 20px 10px;
    text-align: left;
}

/* Title of one type of filter options on National calendar */
.psia-calendar-national-filter-select-title {
    font-size: 130%;
    font-weight: bold;
    font-style: italic;
}

/* Subtitle of one type of filter options on National calendar */
.psia-calendar-national-filter-select-subtitle {
    font-style: italic;
}

/* Export events link on National calendar */
.psia-calendar-national-export-link {
    width: 50%;
    margin: -15px 0px 4px 0px;
    display: inline-block;
}

/* Calendar mode switch link on National calendar */
.psia-calendar-national-mode-switch {
    text-align: right;
    width: 50%;
    margin: -15px 0px 4px 0px;
    display: inline-block;
}

/* Menu anchor at top of calendar */
.psia-calendar-menu-anchor {
    position: relative !important;
}

/* -------------------------- Main Calendar Tables -------------------------- */

/* Main calendar table, holding the actual calendar */
.psia-calendar-calendar-table {
	border-collapse: collapse;
    border: thin solid;
    width: 100%;
}

/* Top row of the main calendar table, holding the day of the week labels */
.psia-calendar-calendar-table-top-row {
	height: 40px;
	vertical-align: top;
	border-right: thin dotted;
    text-align: center;
    width: 14.2857%;
}

/* Day of month label cells of the main calendar table before the month starts and after it ends */
.psia-calendar-calendar-table-empty-cell {
	border: thin solid;
}

/* Day of month label cells of the main calendar table */
.psia-calendar-calendar-table-date-cell {
	font-size: 120%;
	border: thin solid;
	text-align:center;
    padding: 1px;
    font-weight: bold;
}

/* Row of main calendar table which may contain events */
.psia-calendar-calendar-table-event-row {
    height: 30px;
}

/* Event cells of the main calendar table */
.psia-calendar-calendar-table-event-cell {
    font-size: 85%;
	border: thin dotted;
	text-align: center;
    padding: 2px;
    line-height: 1.1;
    vertical-align: middle;
    color: black;
}

/* Event cells of the main calendar table not containing an event */
.psia-calendar-calendar-table-available-event-cell {
	border-right: thin dotted;
	border-left: thin dotted;
}

/* Table within main calendar table containing admin buttons */
.psia-calendar-calendar-table-event-cell-admin-table {
    padding: 0px;
    width: 100%;
    margin: 0px;
}

/* Table cell of admin inner table inside calendar table containing event information */
.psia-calendar-calendar-table-event-cell-admin-cell {
    border: none;
    text-align: center;
    padding: 0px;
    vertical-align: middle;
    height: 100%;
}

/* Table cell of admin inner table inside calendar table containing admin buttons */
.psia-calendar-calendar-table-event-cell-admin-image-cell {
    padding: 2px; 
    vertical-align: middle;
    border: none;
}

/* Event name for events with an event type set as being displayed in bold */
.psia-calendar-bold-event-name {
    font-weight: bold;
}

/* Main calendar table when in list view mode */
.psia-calendar-list-table {
    border-collapse: collapse;
    border: none;
}

/* Cell of calendar list view table which contains admin buttons */
.psia-calendar-list-table-admin-cell {
    border-bottom: 1px solid black;
    border-right: none;
    padding: 4px;
    vertical-align: middle;
    width: 20px;
}

/* Cell of calendar list view table which contains an event */
.psia-calendar-list-table-event-cell {
    border-bottom: 1px solid black;
    padding: 9px 20px;
}

/* Mobile version of the event information in the main calendar table on list view mode */
.psia-calendar-list-table-event-name-mobile {
    display: none;
}

/* Additional month header in the main calendar table on list view paginated mode */
.psia-calendar-list-table-additional-month-header {
    text-align: center;
    font-weight: bold;
    font-size: 120%;
}

/* Event name in the main calendar table on list view mode */
.psia-calendar-list-event-name {
    font-size: 120%;
}

/* Links to event detail pages in the calendar table */
.psia-calendar-event-link:link {
	color: #333333;
	text-decoration: none;
}

.psia-calendar-event-link:visited {
	color: #333333;
	text-decoration: none;
}

.psia-calendar-event-link:hover {
	color: #777777;
}

.psia-calendar-event-link:active {
	color: #777777;
	text-decoration: underline;
}

/* Event name of an event that has a modifier attached */
.psia-calendar-modified-event-name {
    text-decoration: line-through;
    font-style: italic;
}

/* Modifier information of an event that has a modifier attached */
.psia-calendar-event-modifier {
    font-weight: bold;
}

/* Link to log out of admin mode at the bottom of the calendar and event detail pages */
.psia-calendar-log-out-link {
    font-weight: bold;
}


/* -------------------------- Popup Windows -------------------------- */

/* Dropdown menus to select month and year in the "Select Month to View" popup window */
.psia-calendar-month-select-dropdown {
    width: 100px;
    color: black !important;
    margin: 0px !important;
}

/* Header row of table in popup window to filter & export events */
.psia-calendar-filter-popup-header {
	text-decoration: underline;
	text-align: center;
	font-weight: bold;
	width: 350px;
    padding: 0px;
}

/* Table cell containing all of the filter options of one type in popup window to filter & export events */
.psia-calendar-filter-popup-filter-list {
	vertical-align: text-top;
    padding: 0px;
}

/* Table cell containing checkbox to select a filter in the filter & export popup windows */
.psia-calendar-filter-popup-checkbox-cell {
    padding: 1px;
    width: 15px;
}

/* Table cell containing checkbox to select a filter or all of the filters in the filter & export popup windows */
.psia-calendar-filter-popup-filter-name-cell,
.psia-calendar-filter-popup-filter-select-all-cell {
    padding: 1px;
}

/* Table cell containing checkbox to select all of the filters in the filter & export popup windows */
.psia-calendar-filter-popup-filter-select-all-cell {
    font-weight: bold;
}

.psia-calendar-location-row {
    display: none;
}

/* Table in export popup window containing the date selection options */
.psia-calendar-export-date-select-table {
    width: fit-content;
}

/* Month & year label for start & end dates in the export popup window */
.psia-calendar-export-date-label {
    font-weight: bold;
}

/* Dropdown menus to select dates in the export popup window */
.psia-calendar-date-select-dropdown {
    width: 150px;
    color: black !important;
    margin: 0px !important;
}

/* Table cell on popup window to log in to the calendar */
.psia-calendar-login-cell,
.psia-calendar-date-select-cell {
    vertical-align: middle;
    padding: 10px;
    margin: 0px;
}

/* -------------------------- Event Detail Page -------------------------- */

/* Table cell containing refresh button for administrators on event detail page */
.psia-calendar-admin-event-cell {
    padding: 0px;
    width: 22px;
    min-width: 22px;
}

/* Event name on event detail page */
.psia-calendar-event-page-title {
	font-weight: bold;
	font-size: 175%;
}

/* Table containing event information and calendar return link on event detail page */
.psia-calendar-event-display-table {
    width: 100%;
    margin: 0px;
    font-size: 120%;
    background: none !important;
}

/* Table row containing event information and calendar return link on event detail page */
.psia-calendar-event-display-table tr {
    background: none !important;
}

/* Table cell containing event information or calendar return link on event detail page */
.psia-calendar-event-display-cell {
    width: 775px;
    padding: 0px;
}

/* Desktop version of calendar return link on event detail page */
.psia-calendar-event-desktop-return-link {
    padding: 0px;
    vertical-align: text-top;
    text-align: right;
}

/* Mobile version of the return link to the calendar on the event detail page */
.psia-calendar-event-mobile-return-link {
    text-align: right; 
    padding-bottom: 4px; 
    width: 100%;
    display: none;
}

/* Event information label on the event detail page */
.psia-calendar-event-info-label {
    font-weight: bold;
}

/* Price sheet information for currently inactive prices on the event detail page */
.psia-calendar-non-current-price-text {
    color: #999;
}

/* Registration link area on event detail page */
.psia-calendar-event-registration-area {
	font-size: 120%;
}

/* Information on when event was last updated on event detail page */
.psia-calendar-event-last-updated,
/* Option information in package detail popup window on event detail page */
.psia-calendar-event-option-info {
    font-style: italic;
}

/* Event description title on event detail page */
.psia-calendar-event-description-title {
    font-weight: bold;
}

/* Session description in package info popup window on event detail page */
.psia-calendar-session-description {
    display: none;
    margin-left: 20px;
}

/* Table containing form to send event participants an email in roster popup window on event detail page */
.psia-calendar-event-roster-email-table {
    width: 400px;
}

/* Table cells containing form to send event participants an email in roster popup window on event detail page */
.psia-calendar-event-roster-email-table td {
    padding: 0px 10px 6px 0px;
}

/* First table cell of each row in table containing form to send event participants an email in roster popup window on event detail page */
.psia-calendar-event-roster-email-table td:first-child {
    font-weight: bold;
    width: 100px;
}

/* Header cells in event roster popup window on event detail page */
.psia-calendar-event-roster-header {
    text-align: center;
    font-weight: bold;
}

/* Even-numbered rows of the table in the event roster popup on the event detail page */
.psia-calendar-roster-table tr:nth-child(even) td {
    background-color: #e0e0e0;
}

/* -------------------------- Upcoming Events Module -------------------------- */

/* Header link to main calendar page from the upcoming events module */
.psia-calendar-upcoming-event-calendar-link {
    width: 100%;
    text-align: center;
}

/* Event name in the upcoming events module */
.psia-calendar-upcoming-event-name {
    font-weight: bold;
}

/* Event location in the upcoming events module */
.psia-calendar-upcoming-event-location {
    font-style: italic;
}

/* -------------------------- Event Scheduling Tool -------------------------- */

/* Table cell of inner table inside calendar table containing admin buttons when in event scheduling tool mode */
.psia-calendar-preliminary-calendar-table-image-cell {
    padding: 2px;
    vertical-align: middle;
    border: none;
    width: 42px;
}

/* Table cell of inner table inside list view table containing admin buttons when in event scheduling tool mode */
.psia-calendar-list-table-event-scheduling-cell {
    border-bottom: 1px solid black;
    border-right: none;
    padding: 2px;
    vertical-align: middle;
    width: 42px;
}

/* Table cell of inner table inside list view table containing admin buttons when in preliminary calendar mode */
.psia-calendar-list-table-preliminary-cell {
    border-bottom: 1px solid black;
    border-right: none;
    padding: 2px 0px 0px 4px;
    vertical-align: middle;
    width: 20px;
}

/* Image container div inside table cell of inner table inside calendar table in event scheduling tool mode */
.psia-calendar-preliminary-calendar-table-image {
    display: inline-block;
}

/* Left-side image container div inside table cell of inner table inside calendar table in event scheduling tool mode */
.psia-calendar-preliminary-calendar-table-image:nth-of-type(odd) {
    padding-right: 2px;
}

/* Event name in event scheduling tool popup window */
.psia-calendar-event-notes-popup-event-name {
    font-weight: bold;
}

/* Event date in event scheduling tool popup window */
.psia-calendar-event-notes-popup-event-date {
    font-style: italic;
}

/* Table cells in event scheduling tool add/edit event mode select */
.psia-calendar-event-scheduling-mode-select td {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin: 0px;
    cursor: pointer;
}

/* Dropdown menu to select the location detail in the event scheduling tool popup window */
.psia-calendar-event-scheduling-location-detail-select-dropdown {
    width: 300px;
    color: black !important;
    margin: 0px !important;
}

/* Dropdown menu to select the day of the week for the registration deadline in the event scheduling tool popup window */
.psia-calendar-event-scheduling-day-of-week-select-dropdown {
    width: 100px;
    color: black !important;
    margin: 0px !important;
}

/* Dropdown menu to select event types in the event scheduling tool popup window */
.psia-calendar-event-scheduling-event-type-select-dropdown {
    width: 200px !important;
    color: black !important;
    margin: 0px !important;
}

/* Header table to allow event mode selection in event scheduling tool popup window */
.psia-calendar-event-scheduling-mode-select {
    width: fit-content;
    width: -moz-fit-content;
    border-collapse: unset;
}

/* Table cell not currently selected in header table to allow event mode selection in event scheduling tool popup window */
.psia-calendar-event-scheduling-mode-select td:not(.psia-calendar-event-scheduling-mode-selected) {
    border: 1px solid white !important;
    border-left: 1px solid white !important;
    border-top: 1px solid white !important;
    border-right: 1px solid white !important;
    border-bottom: 1px solid white !important;
}

/* Table cell currently selected in header table to allow event mode selection in event scheduling tool popup window */
.psia-calendar-event-scheduling-mode-selected {
    border: 1px solid black !important;
    border-left: 1px solid black !important;
    border-top: 1px solid black !important;
    border-right: 1px solid black !important;
    border-bottom: 1px solid black !important;
}

/* Table holding event information in event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table {
    width: fit-content;
    width: -moz-fit-content;
    border-collapse: collapse;
    margin: 0px;
}

/* Table cells holding event information in event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table > tbody > tr > td {
    border-top: 1px dotted #999 !important;
}


/* All table cells within event information table in event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table td {
    padding: 6px 10px;
    vertical-align: middle;
    background-color: white;
    color: black;
}

/* First column in table holding event information in event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table > tbody > tr > td:first-child {
    font-weight: bold;
    width: 185px;
    min-width: 185px;
    text-align: right;
}

/* Second column in table holding event information in event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table > tbody > tr > td:nth-child(2) {
    width: 850px;
    text-align: left;
}

/* All cells in the event info table (except the last row of each table) in the event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table > tbody > tr:not(:last-of-type) > td,
/* All cells in the event info table for multi-session events (except the last row of each table) in the event scheduling tool popup window */
#psia-calendar-simple-multi-session-event > .psia-calendar-event-scheduling-event-info-table:first-of-type > tbody > tr:last-of-type > td,
#psia-calendar-simple-multi-session-event-edit > .psia-calendar-event-scheduling-event-info-table:first-of-type > tbody > tr:last-of-type > td,
/* All cells in the event info table for complex events (except the last row of each table) in the event scheduling tool popup window */
#psia-calendar-complex-event > .psia-calendar-event-scheduling-event-info-table:first-of-type > tbody > tr:last-of-type > td,
#psia-calendar-complex-event-edit > .psia-calendar-event-scheduling-event-info-table:first-of-type > tbody > tr:last-of-type > td,
/* All cells in the last row of the last event info table in the event scheduling tool popup window */
form > .psia-calendar-event-scheduling-event-info-table:last-of-type > tbody > tr:last-of-type > td {
    border-bottom: 1px dotted #999 !important;
}

/* First cell of each row in the event info tables in the event scheduling tool popup window */
.psia-calendar-event-scheduling-event-info-table > tbody > tr > td:first-of-type {
    border-right: 1px dotted #999 !important;
}

/* Inner table holding registration deadline fields in table holding event information in event scheduling tool popup window */
.psia-calendar-event-scheduling-registration-deadline-inner-table {
    width: fit-content;
    margin: 0px;
    width: -moz-fit-content;
}

/* Table cells of inner table holding registration deadline fields in table holding event information in event scheduling tool popup window */
.psia-calendar-event-scheduling-registration-deadline-inner-table td {
    padding: 0px 5px 0px 0px;
    width: fit-content;
    width: -moz-fit-content;
    vertical-align: middle;
}

/* Large text field in event scheduling tool popup window */
.psia-calendar-event-scheduling-large-field {
    color: black !important;
    width: 350px !important;
    margin: 0px !important;
    padding: 6px 4px;
}

/* Small text field in event scheduling tool popup window */
.psia-calendar-event-scheduling-small-field {
    color: black !important;
    width: 50px !important;
    margin: 0px !important;
    padding: 6px 4px !important;
}

/* Inner table to set location and location detail settings for an event in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-location-inner-table {
    background-color: transparent !important;
    margin: 0px;
    width: fit-content;
    width: -moz-fit-content;
}

/* Inner table to set price increase settings for an event in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-price-increase-inner-table {
    width: fit-content;
    width: -moz-fit-content;
    background-color: transparent !important;
    margin: 0px;
}

/* Row of inner table to set price increase settings for an event in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-price-increase-inner-table tr,
/* Row of inner table to set members-only status and related settings for an event in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-tool-members-only-inner-table tr,
/* Row of inner table to set location and location detail settings for an event in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-location-inner-table tr {
    background-color: transparent !important;
}

.psia-calendar-event-scheduling-price-increase-preview {
    padding: 0px 5px 0px 25px !important;
}

/* Inner table to set members-only or not settings for an event in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-tool-members-only-inner-table {
    width: fit-content;
    width: -moz-fit-content;
    background-color: transparent !important;
    margin: 0px;
}

/* Inner table cells in event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-tool-members-only-inner-table td,
.psia-calendar-event-scheduling-price-increase-inner-table td,
.psia-calendar-event-scheduling-location-inner-table td {
    background-color: transparent !important;
    padding: 0px 5px 0px 0px;
    width: fit-content;
    width: -moz-fit-content;
    vertical-align: middle;
}

/* Last cell in the price increase inner table in the event scheduling tool add/edit event popup window */
.psia-calendar-event-scheduling-price-increase-inner-table td:last-of-type {
    padding-left: 25px !important;
}

/* Description for "Notes" section in event scheduling tool popup window */
.psia-calendar-event-scheduling-tool-notes-description {
    font-weight: normal;
    font-style: italic;
}

/* Textarea for "Notes" section in event scheduling tool popup window */
.psia-calendar-event-scheduling-tool-event-notes {
    width: 100%;
    color: black !important;
    margin: 0px;
}

/* Links to add or remove new dates for multi-day non-consecutive and complex events in event scheduling tool popup window */
#psia-calendar-event-scheduling-add-date-link-add-complex,
#psia-calendar-event-scheduling-add-date-link-edit-complex,
#psia-calendar-event-scheduling-add-date-link-add-simple-non-consecutive,
#psia-calendar-event-scheduling-add-date-link-edit-simple-non-consecutive {
    margin-top: 10px;
}

/* "Edit Event" button in event scheduling tool popup window */
.psia-calendar-event-scheduling-edit-event-button {
    width: 100%;
    text-align: center;
}

/* Parent div around input fields that have autocomplete enabled in event scheduling tool popup window */
.psia-calendar-auto-complete {
    position: relative;
    display: inline-block;
    width: 360px;
}

/* Items in the list of autocomplete options in event scheduling tool popup window */
.psia-calendar-auto-complete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

/* Table containing mode selection options for multi-session events in the event scheduling tool popup window */
#psia-calendar-simple-multi-session-event .psia-calendar-event-scheduling-mode-select,
#psia-calendar-simple-multi-session-event-edit .psia-calendar-event-scheduling-mode-select {
    margin-left: auto;
    margin-right: auto;
}

/* Link to add or remove packages or sessions from the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-add-package-link {
    margin-top: 15px;
    font-weight: normal;
}

/* Inner table (holding session or package information) in the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-multi-session-inner-table {
    width: fit-content;
    width: -moz-fit-content;
    margin: 0px;
}

/* Rows of inner table (holding session or package information) in the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-multi-session-inner-table tr {
    background-color: transparent !important;
}

/* Cells of inner table (holding session or package information) in the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-multi-session-inner-table td {
    background-color: transparent !important;
    padding: 5px;
    width: fit-content;
    width: -moz-fit-content;
}

/* Unordered list containing event dates and checkboxes to add those dates to sessions and packages in the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-multi-session-inner-table ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

/* Line items of list containing event dates and checkboxes to add those dates to sessions and packages in the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-multi-session-inner-table ul li {
    margin: 0px;
}

/* Checkbox to add event dates to sessions and packages in the event scheduling tool popup window for multi-session events */
.psia-calendar-event-scheduling-multi-session-inner-table input[type=checkbox] {
    margin-right: 10px;
}

/* Inner div inside items in the list of autocomplete options in event scheduling tool popup window */
.psia-calendar-auto-complete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.psia-calendar-auto-complete-items div:hover {
    background-color: #e9e9e9;
}

.psia-calendar-auto-complete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Textarea for "Add Notes" section in preliminary calendar popup window */
.psia-calendar-preliminary-calendar-event-notes {
    width: 200px;
    color: black !important;
    margin: 0px;
}

/* Div containing button to add events to the national database in the popup window allowing such actions */
#psia-calendar-event-scheduling-add-to-ams-button {
    margin-top: 20px;
    display: none;
    width: 100%;
    text-align: center;
}

/* -------------------------- Admin Pages -------------------------- */

/* Various page headers in the admin settings pages */
.psia-calendar-setup-header {
    font-size: 15px;
}

/* Various important section headers in the admin settings pages */
.psia-calendar-important-setup-heading {
    font-weight: bold;
    font-size: 15px;
}

/* Various section headers in the admin settings pages */
.psia-calendar-setup-sub-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Label for various fields in the admin settings pages */
.psia-calendar-setup-label {
    font-weight: 600;
}

/* Various lists of links that open hidden divs in the admin settings pages */
.psia-calendar-setup-hidden-div-list {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Various text that needs emphasis in the admin settings pages */
.psia-calendar-setup-emphasis-text {
    font-weight: 600;
}

/* Various small text input fields in the admin settings pages */
.psia-calendar-setup-small-text-input {
    width: 50px;
}

/* Various medium text input fields in the admin settings pages */
.psia-calendar-setup-medium-text-input {
    width: 100px;
}

/* Various large text input fields in the admin settings pages */
.psia-calendar-setup-large-text-input {
    width: 300px;
}

/* Various extra-large text input fields in the admin settings pages */
.psia-calendar-setup-extra-large-text-input {
    width: 500px;
}

/* Admin notice box in the WordPress admin area */
.psia-calendar-admin-notice {
    border: 1px solid black;
    border-radius: 5px;
    padding: 12px;
    background-color: white;
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
}

/* Label for missing required fields in the admin settings page */
.psia-calendar-required-setup-missing {
    font-weight: bold;
    color: red;
}

/* Header cells in the table of current users in the admin settings page */
.psia-calendar-setup-current-user-table-header td {
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
}

/* Table containing current user information in the admin settings page */
.psia-calendar-setup-current-user-table {
    border-collapse: collapse;
}

/* Table cells containing user information in the table of current users in the admin settings page */
.psia-calendar-setup-current-user-table-row td {
    border-top: 1px solid #999999;
    padding: 8px 12px;
}