html {
  font-size: 14px;
}

.cheer-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cheer-entry-thumbnail { min-width: 0; display: flex; flex-direction: column; gap: .5rem; padding: .5rem; color: #174d3a; text-decoration: none; border: 1px solid #dce8df; border-radius: .75rem; background: #fff; }
.cheer-entry-thumbnail:hover { color: #8d3345; border-color: #8d3345; }
.cheer-entry-thumbnail:focus-visible { outline: 3px solid #174d3a; outline-offset: 3px; }
.cheer-entry-thumbnail-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f8f4; border-radius: .5rem; }
.cheer-entry-name { display: block; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.cheer-photo-lightbox .modal-content { border-color: #174d3a; }
.cheer-photo-lightbox .modal-body { min-height: 0; display: grid; place-items: center; }
.cheer-photo-lightbox .modal-footer { gap: .75rem; }
.cheer-photo-lightbox .modal-footer .cheer-entry-name { flex: 1 1 10rem; }
.cheer-photo-large { display: block; width: auto; height: auto; max-width: 100%; max-height: min(65vh, calc(100vh - 14rem)); object-fit: contain; margin: auto; }
.cheer-photo-large[hidden] { display: none; }
@supports (height: 100dvh) { .cheer-photo-large { max-height: min(65dvh, calc(100dvh - 14rem)); } }
@media (min-width: 768px) { .cheer-entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .cheer-entry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.award-voting { max-width: 58rem; margin: auto; padding-bottom: 2rem; overflow-wrap: anywhere; }
.award-vote-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .75rem; align-items: center; padding: .65rem; border-bottom: 1px solid #dce8df; }
.award-vote-row:nth-child(even) { background: #f3f8f4; }
.award-vote-row label { font-weight: 600; }
.award-choice { min-width: 0; }
.award-choice select { width: 100%; max-width: 100%; min-width: 0; }
.award-choice-label { display: block; font-size: .8rem; color: #456452; white-space: normal; overflow-wrap: anywhere; margin-top: .2rem; }
.award-voting .dashboard-welcome { overflow-wrap: anywhere; }
.award-voting .validation-summary-valid { display: none; }

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.admin-dashboard {
  --cheer-evergreen: #174d3a;
  --cheer-berry: #8d3345;
  --cheer-gold: #b27b21;
  padding: 1rem 0 2.5rem;
}

.dashboard-welcome {
  color: #fff;
  background: linear-gradient(120deg, #174d3a 0%, #226247 62%, #8d3345 150%);
  box-shadow: 0 1rem 2.5rem rgba(23, 77, 58, .14);
}

.dashboard-eyebrow {
  color: #d7bd73;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dashboard-subtitle {
  color: rgba(255, 255, 255, .8);
}

.admin-identity {
  min-width: 220px;
  color: #254336;
  background: rgba(255, 255, 255, .94);
}

.admin-identity .small {
  color: #668071;
  letter-spacing: .06em;
}

.dashboard-card {
  border: 1px solid #e8ece8;
  background: #fff;
  box-shadow: 0 .35rem 1.2rem rgba(30, 54, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .75rem 1.8rem rgba(30, 54, 42, .1);
}

.dashboard-card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .9rem;
  font-size: 1rem;
  letter-spacing: .04em;
  font-weight: 700;
}

.dashboard-card-icon.evergreen {
  color: #174d3a;
  background: #e6f1eb;
}

.dashboard-card-icon.berry {
  color: #8d3345;
  background: #f7e9ec;
}

.dashboard-card-icon.gold {
  color: #986718;
  background: #fbf2dc;
}

.coming-soon {
  display: inline-block;
  padding: .32rem .65rem;
  border-radius: 999px;
  color: #527060;
  background: #edf3ef;
  font-size: .78rem;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-card {
    transition: none;
  }
}

.employee-management,
.employee-details-page,
.employee-form-page {
  padding: .75rem 0 2.5rem;
}

.employee-back-link,
.dashboard-card-link {
  color: #174d3a;
  font-weight: 600;
  text-decoration: none;
}

.employee-back-link:hover,
.dashboard-card-link:hover {
  color: #8d3345;
  text-decoration: underline;
}

.employee-filter,
.employee-form-card,
.employee-details-card {
  background: #fff;
}

.employee-table-wrap {
  overflow: hidden;
  border: 1px solid #e8ece8;
  background: #fff;
}

.employee-table-wrap thead th {
  padding: .9rem 1rem;
  color: #456452;
  background: #f2f6f3;
  font-size: .78rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.employee-table-wrap tbody td {
  padding: .95rem 1rem;
}

.employee-status {
  display: inline-flex;
  align-items: center;
  padding: .32rem .68rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.employee-status.active {
  color: #20593d;
  background: #e6f1eb;
}

.employee-status.inactive {
  color: #7a3440;
  background: #f7e9ec;
}

.empty-employees {
  border: 1px dashed #d4e1d8;
  background: linear-gradient(145deg, #f7faf7, #fff);
}

.empty-employees-mark {
  color: #b27b21;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: .08em;
}

.employee-status-action {
  border: 1px solid #e8ece8;
  background: #f8faf8;
}

.employee-detail-list dt {
  color: #66796e;
  font-weight: 600;
}

.employee-detail-list dd {
  overflow-wrap: anywhere;
}

.competition-management,
.competition-details-page,
.competition-form-page {
  padding: .75rem 0 2.5rem;
}

.competition-card,
.competition-details-card {
  border: 1px solid #e8ece8;
  background: #fff;
  box-shadow: 0 .35rem 1.2rem rgba(30, 54, 42, .055);
}

.competition-card-dates {
  color: #314c3d;
  line-height: 1.65;
}

.competition-card-dates > div {
  overflow-wrap: anywhere;
}

.competition-period,
.competition-status-action {
  border: 1px solid #e8ece8;
  background: #f8faf8;
}

.competition-period h2 {
  color: #174d3a;
}

.competition-period dt {
  color: #66796e;
  font-size: .8rem;
  font-weight: 600;
}

.competition-period dd {
  margin-bottom: .8rem;
}

.competition-period dd:last-child {
  margin-bottom: 0;
}

.competition-settings dt {
  color: #66796e;
  font-weight: 600;
}

.competition-settings dd {
  overflow-wrap: anywhere;
}

.competition-description {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.submission-management,
.submission-details-page,
.submission-form-page {
  padding: .75rem 0 2.5rem;
}

.submission-photo-frame,
.current-submission-photo {
  display: grid;
  min-height: 14rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8ece8;
  background: #f7faf7;
}

.submission-photo-frame img,
.current-submission-photo img {
  display: block;
  max-height: 34rem;
  width: 100%;
  object-fit: contain;
}

.submission-review-panel {
  border: 1px solid #e8ece8;
  background: #f8faf8;
}

.submission-detail-list dt {
  color: #66796e;
  font-weight: 600;
}

.submission-detail-list dd {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .employee-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none !important;
  }

  .employee-table-wrap thead {
    display: none;
  }

  .employee-table-wrap table,
  .employee-table-wrap tbody,
  .employee-table-wrap tr,
  .employee-table-wrap td {
    display: block;
    width: 100%;
  }

  .employee-table-wrap tr {
    margin-bottom: .85rem;
    padding: .5rem .85rem;
    border: 1px solid #e8ece8;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem .9rem rgba(30, 54, 42, .05);
  }

  .employee-table-wrap tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border: 0;
    text-align: right;
  }

  .employee-table-wrap tbody td::before {
    flex: 0 0 38%;
    color: #66796e;
    content: attr(data-label);
    font-size: .78rem;
    font-weight: 650;
    text-align: left;
  }

  .employee-table-wrap tbody td[data-label="Actions"] {
    justify-content: flex-end;
  }

  .employee-table-wrap tbody td[data-label="Actions"]::before {
    content: "";
  }
}
.fourier-brand { display:flex; align-items:center; gap:.65rem; font-size:1rem; white-space:normal; }
.fourier-brand img { width:64px; height:64px; object-fit:contain; flex-shrink:0; }
.christmas-award-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.christmas-award-card { position:relative; min-width:0; padding:.7rem .5rem; text-align:center; border:1px solid #d8bd7a; border-radius:14px; background:linear-gradient(145deg,#fffdf5,#f0f7ed); box-shadow:0 2px 8px #123c2410; overflow-wrap:anywhere; }
.christmas-award-card h3 { font-size:.9rem; line-height:1.25; margin:.2rem 0 .4rem; color:#174d37; }
.christmas-award-card p { font-size:.85rem; line-height:1.3; margin:0; color:#922e35; }
.award-star { color:#ad7e26; font-size:1rem; }
.christmas-award-card.my-award { border:2px solid #287b48; background:#f2ffe9; }
.own-award-label { display:block; font-size:.65rem; margin-top:.3rem; color:#245d36; }
@media(min-width:768px) { .christmas-award-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:1100px) { .christmas-award-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:400px) { .fourier-brand img { width:48px; height:48px; } .fourier-brand { font-size:.85rem; gap:.4rem; } }
