.shift-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shift-section-header h2 {
    margin: 0;
}

.shift-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.shift-filter select,
.shift-filter input[type="search"],
.shift-filter input[type="date"] {
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.shift-filter-date-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.shift-section {
    margin-bottom: 4rem;
}

.shift-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shift-box:hover {
    border-color: #0073aa;
}

.shift-people {
    float: right;
}

.shift-meta {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

.shift-message {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999; /* very high so it overlays other elements */
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.8); /* optional: dark background */
    color: white; /* text color */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* optional shadow */
    display: none; /* hidden by default, shown by JS */
}

.shift-message.success {
    background: #dff0d8;
    color: #3c763d;
}

.shift-message.error {
    background: #f2dede;
    color: #a94442;
}

input.button {
    width: 100%;
    background-color: #0073aa;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

input.button-red {
    width: 100%;
    background-color: #aa3700;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

input.button-red:hover {
    background-color: #882b00;
}

input.button:hover {
    background-color: #005d88;
}

.eventadmin-tabs {
    font-family: inherit;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 1em;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    background-color: #f9f9f9;
    margin-right: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.tab-item.active {
    background-color: #fff;
    border-bottom: 2px solid white;
    font-weight: bold;
}

.tab-panel {
    border: 1px solid #ccc;
    padding: 15px;
    background: #fff;
    border-radius: 0 5px 5px 5px;
}

.shift-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.shift-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: flex-start;
}

.shift-category-label {
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-block;
}

/* Keep tab controls readable under themes with their own button styling. */
.eventadmin-tabs .tab-nav { gap: 4px; align-items: stretch; }
.eventadmin-tabs button.tab-item { color: #1d2327; font: inherit; text-align: left; margin: 0; }
.eventadmin-tabs .tab-item:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.eventadmin-tabs [hidden], .shift-section [hidden], .eventadmin-clear-shift-filters[hidden],
#eventadmin-filter-empty[hidden] { display: none !important; }
.eventadmin-profile-warning { display: block; font-size: .75em; color: #765000; font-weight: normal; }
.eventadmin-tabs .shift-section { margin-bottom: 1.5rem; }
.eventadmin-tabs .shift-box { padding: .85rem; margin-bottom: .65rem; }
.shift-day-heading { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.shift-box .shift-people { float: none; }
.shift-box .shift-meta { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0; }
.shift-box .shift-names { font-size: .9em; }
.shift-filter { width: 100%; margin-top: .5rem; }
.shift-filter input, .shift-filter select { max-width: 100%; }
.eventadmin-clear-shift-filters { cursor: pointer; }
@media (max-width: 600px) {
    .eventadmin-tabs .tab-panel { padding: 10px; }
    .eventadmin-tabs button.tab-item { padding: 10px 12px; }
    .shift-filter { align-items: stretch; }
    .shift-filter > * { flex: 1 1 100%; }
    .shift-filter-date-label input { flex: 1; min-width: 0; }
}
