body {
    font-family: Garamond, "Apple Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
    color: #333;
    background-color: #fafafa;
}

#allContent {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

.modal-overlay {
    height: 100vh;
    width: 100vw;
    /* rgba (not the opacity property) so only the dimmed backdrop is transparent —
       opacity on this element would composite its entire subtree, including the
       modal box itself, at reduced alpha. */
    background-color: rgba(80, 80, 80, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#boardTable, #forecastTable, #assignmentTallyTable {
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#boardTable td, #boardTable th,
#forecastTable td, #forecastTable th,
#assignmentTallyTable td, #assignmentTallyTable th {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

#boardTable th, #forecastTable th, #assignmentTallyTable th {
    background-color: #f2f2f2;
    font-weight: 600;
}

button {
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: #f0f0f0;
}

/* Pastel team palette — dark text (#333, inherited from body) for contrast on all. */
.team-red {
    background-color: #f7c9c9;
    border-color: #e59b9b !important;
}

.team-yellow {
    background-color: #f6e6a8;
    border-color: #e6cf6f !important;
}

.team-blue {
    background-color: #bcd6ef;
    border-color: #8fb8e0 !important;
}

.team-white {
    background-color: #e2e2e2;
    border-color: #c2c2c2 !important;
}

/* Admission checklist: white by default (unlike the core admission columns, which
   keep showing the row's team-pastel color), 5-shade green progression on checked
   cells, richer as more of a row's 10 steps are checked (2 steps per shade). Dark
   text (#333, inherited from body) stays legible on all shades. This rule must stay
   above the progress/row-complete rules below so those (same specificity) win by
   source order once a cell is also checked/complete. */
.checklist-col {
    background-color: #fff;
}

.checklist-cell {
    padding: 4px 8px !important;
}

/* Separates the core admission info (Admission #, Team, Time, Unassign) from the
   checklist group with a visible boundary, on the first checklist column. */
.checklist-divider {
    border-left: 3px solid #999;
}

.checklist-progress-1 {
    background-color: #e8f5e9;
}

.checklist-progress-2 {
    background-color: #c8e6c9;
}

.checklist-progress-3 {
    background-color: #a5d6a7;
}

.checklist-progress-4 {
    background-color: #81c784;
}

.checklist-progress-5 {
    background-color: #66bb6a;
}

.checklist-floor-input {
    width: 3em;
    text-align: center;
    text-transform: uppercase;
}

.row-complete {
    background-color: #43a047;
    color: #fff;
    font-weight: 700;
}

#assignmentTallyTable.hide-checklist .checklist-col {
    display: none;
}

/* Pill-style toggle switch (classic checkbox-hack: the real <input> stays in the DOM
   for keyboard/screen-reader access, just visually hidden behind the slider span). */
.toggle-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.toggle-switch-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: background-color 0.2s;
}

.toggle-switch-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-switch-slider {
    background-color: #66bb6a;
}

.toggle-switch input:checked + .toggle-switch-slider::before {
    transform: translateX(18px);
}

.toggle-switch input:focus-visible + .toggle-switch-slider {
    outline: 2px solid #337ab7;
    outline-offset: 2px;
}
