/* * {
  box-sizing: border-box;
} */

.calendar-grid {
  margin: 1em auto;
  width: 100%;
  height: 60%;
  grid-gap: 10px 10px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: 3em 2em;
  grid-auto-rows: 1fr;
  border-top: 4px solid palegoldenrod;
  padding-top: 1em;
}

.calendar-day {
  padding: .4em;
  height: 100%;
  min-height: 4em;
  width: 100%;
  background: palegoldenrod;
  border-radius: 5px;
  color: black;
  text-align: left;
}

.showscore {
  font-size: min(1.9vw, 12px);
}

.current-day {
  background: lightskyblue;
  border: 4px;
  border-style: solid;
  border-color: rgb(42, 42, 160);
}

.schedule-day {
  background: rgba(1, 231, 97, 0.74);
}

.nonschedule-day {
  background: rgba(243, 61, 61, 0.74);
}

.first-day {
  grid-column-start: 4;
}

.calendar-dayname {
  padding: .4em;
  text-align: center;
  background: goldenrod;
  color: palegoldenrod;
}

.calendar-title {
  text-align: center;
  grid-column: 2 / -2;
  font-size: 1.5em;
  color: #f4dbaa;
}

.calendar-nav a {
  display: block;
  width: 100%;
  height: 100%;
  color: #f4dbaa;
  font-size: 2em;
  cursor: pointer;
}

.calendar-nav__right {
  text-align: right;
  color: #f4dbaa;
}

#statstable {
  border-collapse: separate;
}

.jumbotron_example > div {
  text-align: center;
}

/* Schedule modal legend (player day view — calendarpen.js); works on chalksta-app + dark-theme */
.chalksta-sched-modal-legend {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.45;
  background: var(--idx-surface-alt, #f8f9fa);
  border: 1px solid var(--idx-border, #dee2e6);
  color: var(--idx-fg, #212529);
}

body.dark-theme .chalksta-sched-modal-legend {
  background: var(--idx-surface-alt, #262626);
  border-color: var(--idx-border, #2a2a2a);
  color: var(--idx-fg, #f5f5f5);
}

.chalksta-sched-modal-legend strong {
  color: inherit;
}

.chalksta-sched-legend-icon-star {
  color: var(--espn-red, #e31837);
}

.chalksta-sched-legend-icon-pencil {
  color: #0d9488;
}

body.dark-theme .chalksta-sched-legend-icon-pencil {
  color: #2dd4bf;
}

.chalksta-sched-legend-icon-eye {
  color: var(--idx-muted, #6c757d);
}

#numweeks {
  width: 100%;
}

#new_locations_text_area {
  width: 100%;
  font-size: 14px;
}

jumbotron.style {
  padding: 0px;
}

/* Change-schedule calendar day actions — stacked vertically on the day cell */
.calendar-day {
  text-align: left;
}

.chalksta-cal-day-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  margin-top: 4px;
  padding-top: 0;
  width: 100%;
}

.chalksta-cal-day-action--static {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}

/* Make schedule: the lock is a status mark in the corner of the day, not an action button. */
#maketab .calendar-day {
  position: relative;
}

#maketab .chalksta-cal-day-lock {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  z-index: 1;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
}

.chalksta-cal-day-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 3px;
  line-height: 1;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.schedule-day .chalksta-cal-day-action {
  background: rgba(0, 0, 0, 0.26);
  color: #fff !important;
}

.calendar-day:not(.schedule-day) .chalksta-cal-day-action {
  background: rgba(255, 255, 255, 0.75);
  color: #1b4332 !important;
  border-color: rgba(0, 0, 0, 0.08);
}

.schedule-day .chalksta-cal-day-action:hover,
.schedule-day .chalksta-cal-day-action:focus {
  background: rgba(0, 0, 0, 0.42);
  color: #fff !important;
  text-decoration: none;
}

.chalksta-cal-day-action:hover,
.chalksta-cal-day-action:focus {
  text-decoration: none;
}

.calendar-day:not(.schedule-day) .chalksta-cal-day-action:hover,
.calendar-day:not(.schedule-day) .chalksta-cal-day-action:focus {
  background: #fff;
  color: #1b4332 !important;
}

.chalksta-cal-day-action--danger:hover,
.chalksta-cal-day-action--danger:focus {
  color: #ffe3e3;
}

/* Admin-only schedule modal columns (Manage Schedule → Change schedule) */
#schedule_modal .chalksta-sched-admin-only {
  display: none;
}

#schedule_modal.chalksta-sched-modal--edit .chalksta-sched-admin-only {
  display: table-cell;
  width: 2.75rem;
  white-space: nowrap;
  vertical-align: middle;
}

.chalksta-sched-modal-table-wrap--menu {
  overflow: visible !important;
}

.chalksta-sched-row-menu-btn {
  color: var(--idx-muted, #6c757d);
  background: transparent;
  border: 1px solid var(--idx-border, #ced4da);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
}

.chalksta-sched-row-menu-btn:hover,
.chalksta-sched-row-menu-btn:focus {
  color: var(--idx-fg, #212529);
  background: var(--idx-surface-alt, #f1f3f5);
  border-color: var(--idx-border, #adb5bd);
  box-shadow: none;
}

body.dark-theme .chalksta-sched-row-menu-btn {
  color: #ced4da;
  border-color: #495057;
}

body.dark-theme .chalksta-sched-row-menu-btn:hover,
body.dark-theme .chalksta-sched-row-menu-btn:focus {
  color: #f8f9fa;
  background: #454d55;
  border-color: #6c757d;
}

#schedule_modal .chalksta-sched-row-menu-panel {
  min-width: 13rem;
  font-size: 13px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.dark-theme #schedule_modal .chalksta-sched-row-menu-panel {
  background-color: #3d444b;
  border-color: #495057;
}

body.dark-theme #schedule_modal .chalksta-sched-row-menu-panel .dropdown-item {
  color: #f8f9fa;
}

body.dark-theme #schedule_modal .chalksta-sched-row-menu-panel .dropdown-item:hover,
body.dark-theme #schedule_modal .chalksta-sched-row-menu-panel .dropdown-item:focus {
  background-color: #454d55;
  color: #fff;
}

#schedule_modal .chalksta-sched-menu-move .fa {
  color: #0d6efd;
}

#schedule_modal .chalksta-sched-menu-swap .fa {
  color: #6f42c1;
}

#schedule_modal .chalksta-sched-menu-delete {
  color: #dc3545 !important;
}

#schedule_modal .chalksta-sched-menu-delete .fa {
  color: #dc3545;
}

#schedule_modal #modal_sched_table th.chalksta-sched-col-mid,
#schedule_modal #modal_sched_table td.chalksta-sched-col-mid {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  visibility: hidden;
}

.chalksta-sched-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  line-height: 1;
  font-size: 13px;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chalksta-sched-action-move {
  background: rgba(13, 110, 253, 0.14);
  border-color: rgba(13, 110, 253, 0.45);
  color: #0a58ca;
}

.chalksta-sched-action-swap {
  background: rgba(111, 66, 193, 0.14);
  border-color: rgba(111, 66, 193, 0.45);
  color: #5a32a3;
}

.chalksta-sched-action-delete {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.45);
  color: #b02a37;
}

body.dark-theme .chalksta-sched-action-move {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(147, 197, 253, 0.55);
  color: #bfdbfe;
}

body.dark-theme .chalksta-sched-action-swap {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(196, 181, 253, 0.55);
  color: #ddd6fe;
}

body.dark-theme .chalksta-sched-action-delete {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(252, 165, 165, 0.55);
  color: #fecaca;
}

.chalksta-sched-row-action:hover,
.chalksta-sched-row-action:focus {
  filter: brightness(1.08);
  text-decoration: none;
}

.chalksta-sched-legend-chip {
  pointer-events: none;
  margin-right: 6px;
  vertical-align: middle;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 11px;
}

.chalksta-sched-admin-legend-list {
  list-style: none;
  margin-top: 8px;
}

.chalksta-sched-admin-legend-list li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.chalksta-sched-admin-legend-list li:last-child {
  margin-bottom: 0;
}

.chalksta-sched-inline-prompt {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--idx-surface-alt, #f8f9fa);
  border: 1px solid var(--idx-border, #dee2e6);
}

body.dark-theme .chalksta-sched-inline-prompt {
  background: #2c3034;
  border-color: #495057;
}

body.dark-theme .chalksta-sched-inline-prompt .form-control {
  background-color: #454d55;
  border-color: #5c636a;
  color: #f8f9fa;
}

#schedule_modal.chalksta-sched-modal--edit .chalksta-sched-td-action {
  padding: 0.35rem 0.2rem !important;
}

.chalksta-sched-modal-table-wrap {
  font-size: 14px;
}

.chalksta-sched-modal-table tbody tr:hover {
  background-color: var(--idx-surface-alt, rgba(0, 0, 0, 0.03));
}

/* Rows a multi-sheet switch, move, or delete will change. */
#schedule_modal #modal_sched_table tr.chalksta-sched-linked td {
  background: rgba(227, 24, 55, 0.07);
  box-shadow: inset 3px 0 0 #e31837, inset -3px 0 0 #e31837;
}

#schedule_modal #modal_sched_table tr.chalksta-sched-linked--first td {
  box-shadow: inset 3px 0 0 #e31837, inset -3px 0 0 #e31837, inset 0 3px 0 #e31837;
}

#schedule_modal #modal_sched_table tr.chalksta-sched-linked--last td {
  box-shadow: inset 3px 0 0 #e31837, inset -3px 0 0 #e31837, inset 0 -3px 0 #e31837;
}

#schedule_modal #modal_sched_table tr.chalksta-sched-linked--first.chalksta-sched-linked--last td {
  box-shadow: inset 3px 0 0 #e31837, inset -3px 0 0 #e31837, inset 0 3px 0 #e31837, inset 0 -3px 0 #e31837;
}

body.dark-theme #schedule_modal #modal_sched_table tr.chalksta-sched-linked td {
  background: rgba(227, 24, 55, 0.16);
}

body.dark-theme .chalksta-sched-modal-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.chalksta-sched-explainer-icon-move {
  color: #0d6efd;
}

.chalksta-sched-explainer-icon-swap {
  color: #6f42c1;
}

.chalksta-sched-explainer-icon-view {
  color: var(--idx-muted, #6c757d);
}

.chalksta-sched-modal-explainer {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  background: var(--idx-surface-alt, #f8f9fa);
  border: 1px solid var(--idx-border, #dee2e6);
  color: var(--idx-fg, #212529);
}

body.dark-theme .chalksta-sched-modal-explainer {
  background: #2c3034;
  border-color: #454d55;
  color: #f8f9fa;
}

.chalksta-sched-explainer-list {
  line-height: 1.55;
}

.chalksta-sched-move-date-input {
  max-width: 14rem;
}

.chalksta-sched-modal-legend--admin .chalksta-sched-legend-action {
  display: inline-block;
  margin-top: 2px;
}

/* Day / change-schedule modal — readable on light + dark (Manage Schedule + divschedule) */
#schedule_modal.chalksta-sched-modal .modal-content,
#movedate_modal.chalksta-sched-modal .modal-content,
#deletedate_modal.chalksta-sched-modal .modal-content {
  background-color: var(--idx-surface, #fff);
  color: var(--idx-fg, #212529);
  border: 1px solid var(--idx-border, rgba(0, 0, 0, 0.12));
  border-radius: 0.35rem;
}

#schedule_modal.chalksta-sched-modal .modal-header,
#movedate_modal.chalksta-sched-modal .modal-header,
#deletedate_modal.chalksta-sched-modal .modal-header {
  background-color: var(--idx-surface-alt, #f8f9fa);
  border-bottom: 1px solid var(--idx-border, #dee2e6);
}

#schedule_modal.chalksta-sched-modal .modal-title,
#movedate_modal.chalksta-sched-modal .modal-title,
#deletedate_modal.chalksta-sched-modal .modal-title {
  color: var(--idx-fg, #1a1a1a);
  font-weight: 700;
  font-size: 1.05rem;
}

#schedule_modal.chalksta-sched-modal .close,
#movedate_modal.chalksta-sched-modal .close,
#deletedate_modal.chalksta-sched-modal .close {
  color: var(--idx-fg, #495057);
  text-shadow: none;
  opacity: 0.85;
}

#schedule_modal.chalksta-sched-modal .close:hover,
#movedate_modal.chalksta-sched-modal .close:hover,
#deletedate_modal.chalksta-sched-modal .close:hover {
  opacity: 1;
}

#schedule_modal.chalksta-sched-modal .modal-body,
#movedate_modal.chalksta-sched-modal .modal-body,
#deletedate_modal.chalksta-sched-modal .modal-body {
  background-color: var(--idx-surface, #fff);
  color: var(--idx-fg, #212529);
}

#schedule_modal.chalksta-sched-modal .modal-footer,
#movedate_modal.chalksta-sched-modal .modal-footer,
#deletedate_modal.chalksta-sched-modal .modal-footer {
  background-color: var(--idx-surface-alt, #f8f9fa);
  border-top: 1px solid var(--idx-border, #dee2e6);
}

#schedule_modal.chalksta-sched-modal #modal_sched_table {
  color: var(--idx-fg, #212529);
  background-color: transparent;
}

#schedule_modal.chalksta-sched-modal #modal_sched_table thead th {
  background-color: var(--idx-surface-alt, #e9ecef);
  color: var(--idx-fg, #212529);
  border-color: var(--idx-border, #dee2e6);
  font-size: 13px;
  font-weight: 600;
}

#schedule_modal.chalksta-sched-modal #modal_sched_table tbody td {
  background-color: var(--idx-surface, #fff);
  color: var(--idx-fg, #212529);
  border-color: var(--idx-border, #dee2e6);
  vertical-align: middle;
}

#schedule_modal.chalksta-sched-modal #modal_sched_table thead th.chalksta-sched-admin-only {
  font-weight: 500;
  color: var(--idx-muted, #495057);
}

#schedule_modal.chalksta-sched-modal #modal_sched_table .text-muted {
  color: var(--idx-muted, #6c757d) !important;
}

#schedule_modal.chalksta-sched-modal #modal_sched_table select {
  color: var(--idx-fg, #212529);
  background-color: var(--idx-surface, #fff);
  border-color: var(--idx-border, #ced4da);
}

body.dark-theme #schedule_modal.chalksta-sched-modal .modal-content,
body.dark-theme #movedate_modal.chalksta-sched-modal .modal-content,
body.dark-theme #deletedate_modal.chalksta-sched-modal .modal-content {
  background-color: #343a40;
  color: #f8f9fa;
  border-color: #454d55;
}

body.dark-theme #schedule_modal.chalksta-sched-modal .modal-header,
body.dark-theme #schedule_modal.chalksta-sched-modal .modal-footer,
body.dark-theme #movedate_modal.chalksta-sched-modal .modal-header,
body.dark-theme #movedate_modal.chalksta-sched-modal .modal-footer,
body.dark-theme #deletedate_modal.chalksta-sched-modal .modal-header,
body.dark-theme #deletedate_modal.chalksta-sched-modal .modal-footer {
  background-color: #2c3034;
  border-color: #454d55;
}

body.dark-theme #schedule_modal.chalksta-sched-modal .modal-title,
body.dark-theme #schedule_modal.chalksta-sched-modal .close,
body.dark-theme #movedate_modal.chalksta-sched-modal .modal-title,
body.dark-theme #movedate_modal.chalksta-sched-modal .close,
body.dark-theme #deletedate_modal.chalksta-sched-modal .modal-title,
body.dark-theme #deletedate_modal.chalksta-sched-modal .close {
  color: #f8f9fa;
}

body.dark-theme #schedule_modal.chalksta-sched-modal .modal-body,
body.dark-theme #movedate_modal.chalksta-sched-modal .modal-body,
body.dark-theme #deletedate_modal.chalksta-sched-modal .modal-body {
  background-color: #343a40;
  color: #f8f9fa;
}

body.dark-theme #schedule_modal.chalksta-sched-modal #modal_sched_table {
  color: #f8f9fa;
}

body.dark-theme #schedule_modal.chalksta-sched-modal #modal_sched_table thead th {
  background-color: #3d444b;
  color: #f8f9fa;
  border-color: #454d55;
}

body.dark-theme #schedule_modal.chalksta-sched-modal #modal_sched_table thead th.chalksta-sched-admin-only {
  color: #ced4da;
}

body.dark-theme #schedule_modal.chalksta-sched-modal #modal_sched_table tbody td {
  background-color: #343a40;
  color: #f8f9fa;
  border-color: #454d55;
}

body.dark-theme #schedule_modal.chalksta-sched-modal #modal_sched_table .text-muted {
  color: #adb5bd !important;
}

body.dark-theme #schedule_modal.chalksta-sched-modal #modal_sched_table select {
  color: #f8f9fa;
  background-color: #454d55;
  border-color: #495057;
}
