:root {
  --border-radius: 6px;
  --primary-color: #fab000;
  --primary-color-hover: #e0a000;
  --secondary-color: #ffe7b3;
  --secondary-color-hover: #ffe099;
  --background-color: #fffbe6;
  --text-color: #3a2e00;
  --text-color-muted: #8b6914;
  --month-separator-color: #3a2e004d;
  --heading-color: #fff;
  --heading-bg-color: #fab000;
  --heading-bg-color-hover: #e0a000;
  --stats-bg-color: #fff3cc;
  --stats-bg-color-hover: #ffe7b3;
  --stats-border-color: #fab000;
  --box-shadow: 0 8px 16px rgba(250, 176, 0, 0.15);
  --padding: 2em;
  --margin: 0 0 1.5em;
  --font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --attendance-bar-today-color: #fab000;
  --attendance-bar-bubble-color: #ffe7b3; }

* {
  box-sizing: border-box; }

html, body {
  width: 100%; }

body {
  background-color: #fff;
  color: var(--text-color);
  padding: 0 0 100px 0;
  margin: 0;
  font-family: var(--font-family);
  user-select: none;
  position: relative; }
  body .beer-foam {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #fff 0%, #fff5cc 100%);
    overflow: hidden; }
    body .beer-foam .bubble {
      position: absolute;
      bottom: 0;
      background-color: #fff;
      border-radius: 50%;
      opacity: 0.8;
      animation: float 5s infinite ease-in-out; }
    body .beer-foam .bubble:nth-child(1) {
      width: 20px;
      height: 20px;
      left: 10%;
      animation-duration: 4s; }
    body .beer-foam .bubble:nth-child(2) {
      width: 30px;
      height: 30px;
      left: 25%;
      animation-duration: 6s; }
    body .beer-foam .bubble:nth-child(3) {
      width: 15px;
      height: 15px;
      left: 40%;
      animation-duration: 3s; }
    body .beer-foam .bubble:nth-child(4) {
      width: 25px;
      height: 25px;
      left: 55%;
      animation-duration: 7s; }
    body .beer-foam .bubble:nth-child(5) {
      width: 20px;
      height: 20px;
      left: 70%;
      animation-duration: 5s; }
    body .beer-foam .bubble:nth-child(6) {
      width: 30px;
      height: 30px;
      left: 85%;
      animation-duration: 4.5s; }

@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 0; }
  30% {
    transform: translateY(-5px);
    opacity: 0.8; }
  100% {
    transform: translateY(-50px);
    opacity: 0.4; } }

input[type="button"], [onclick] {
  cursor: pointer; }

input, select {
  margin: .3em; }

#container {
  padding: var(--padding); }

#warnings, #fabOClock {
  border: 1px solid;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  display: block;
  box-shadow: var(--box-shadow); }

#warnings {
  border-color: #fab000;
  background-color: #fffbe6;
  color: #3a2e00;
  font-size: 18px;
  font-weight: 500; }

#fabOClock {
  border-color: #27ae60;
  background-color: #eafaf1;
  color: #27ae60;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; }

.fab-oclock-actions {
  display: flex;
  align-items: center;
  gap: 10px; }

.joining-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex: 1 1 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.12); }

.joining-question {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: normal; }

.joining-question-label {
  font-weight: bold; }

.joining-buttons {
  display: flex;
  gap: 6px; }

.joining-btn {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  outline: none;
  appearance: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
  .joining-btn:hover {
    opacity: 0.85;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
  .joining-btn.selected {
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid currentColor;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

.joining-lists {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: normal; }

.joining-eta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal; }

.joining-eta-label {
  font-weight: bold; }

.joining-eta-input {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  padding: 4px 8px; }
  .joining-eta-input:disabled {
    opacity: 0.55; }

.joining-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2; }

.joining-timeline-title {
  font-size: 13px;
  font-weight: bold; }

.joining-timeline-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.75;
  width: 100%;
  min-width: 0; }

.joining-timeline-track {
  position: relative;
  min-height: 44px;
  margin-top: 4px;
  width: 100%;
  min-width: 0;
  overflow: visible; }

.joining-timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.2); }

.joining-timeline-marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3; }

.joining-timeline-marker.is-edge-left {
  transform: none; }

.joining-timeline-marker.is-edge-right {
  transform: translateX(-100%); }

.joining-timeline-marker:hover,
.joining-timeline-marker:focus-within,
.joining-timeline-marker.is-open {
  z-index: 8; }

.joining-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); }
  .joining-timeline-dot.is-me {
    background: #2e7d32;
    border-color: rgba(0, 0, 0, 0.25);
    cursor: grab; }
    .joining-timeline-dot.is-me:active {
      cursor: grabbing; }

.joining-timeline-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  width: 220px;
  max-width: 240px;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  z-index: 20; }

.joining-timeline-marker:hover .joining-timeline-popup,
.joining-timeline-marker:focus-within .joining-timeline-popup,
.joining-timeline-marker.is-open .joining-timeline-popup {
  display: block; }

.joining-timeline-popup-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px; }

.joining-timeline-popup-row {
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere; }

.joining-timeline-marker.is-edge-left .joining-timeline-popup {
  left: 0;
  right: auto;
  transform: none; }

.joining-timeline-marker.is-edge-right .joining-timeline-popup {
  left: auto;
  right: 0;
  transform: none; }

.joining-timeline-drag-ghost {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; }

.joining-timeline-drag-ghost-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2e7d32;
  opacity: 0.6;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  margin-top: 17px;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.35); }

.joining-timeline-drag-ghost-label {
  position: absolute;
  left: 50%;
  top: 17px;
  transform: translate(-50%, calc(-100% - 2px));
  font-size: 11px;
  font-weight: bold;
  color: #2e7d32;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 125, 50, 0.35);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap; }
  .joining-timeline-drag-ghost-label:empty {
    display: none; }

@media (max-width: 700px) {
  .joining-timeline-popup {
    width: 180px;
    max-width: 180px; } }

.joining-list-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px; }

.joining-list-label {
  font-weight: bold;
  white-space: nowrap; }

.joining-name-badge {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 13px; }
  .joining-name-badge.is-me {
    outline: 3px solid white;
    box-shadow: 0 0 0 5px #2e7d32;
    font-weight: bold; }

.todays-suggestion-banner {
  background: linear-gradient(135deg, #ff9a56 0%, #fab000 100%);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(250, 176, 0, 0.3);
  animation: pulse-glow 2s ease-in-out infinite; }
  .todays-suggestion-banner h2 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
  .todays-suggestion-banner .suggestion-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--border-radius) - 2px);
    padding: 15px;
    margin-bottom: 10px; }
    .todays-suggestion-banner .suggestion-item .suggestion-time {
      font-weight: bold;
      color: #e0a000;
      font-size: 16px;
      margin-bottom: 8px; }
    .todays-suggestion-banner .suggestion-item .suggestion-text {
      color: var(--text-color);
      font-size: 18px;
      line-height: 1.4; }
  .todays-suggestion-banner .view-suggestions-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--border-radius) - 2px);
    transition: background 0.3s ease; }
    .todays-suggestion-banner .view-suggestions-link:hover {
      background: rgba(255, 255, 255, 0.3); }

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(250, 176, 0, 0.3); }
  50% {
    box-shadow: 0 10px 40px rgba(250, 176, 0, 0.5); } }

.upcoming-suggestion-banner {
  background: linear-gradient(135deg, #ffe7b3 0%, #fff3cc 100%);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow); }
  .upcoming-suggestion-banner h2 {
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-size: 22px; }
  .upcoming-suggestion-banner .suggestion-item {
    background: #fff;
    border-radius: calc(var(--border-radius) - 2px);
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--secondary-color); }
    .upcoming-suggestion-banner .suggestion-item .suggestion-time {
      font-weight: bold;
      color: var(--text-color-muted);
      font-size: 15px;
      margin-bottom: 8px; }
    .upcoming-suggestion-banner .suggestion-item .suggestion-text {
      color: var(--text-color);
      font-size: 17px;
      line-height: 1.4; }

h1, h2 {
  font-weight: bold;
  text-align: center;
  margin: var(--margin); }

h1 {
  color: var(--heading-bg-color);
  padding-top: .5em;
  border-bottom: 2px solid var(--heading-bg-color); }

h2 {
  color: var(--heading-bg-color);
  border-bottom: 1px solid var(--heading-bg-color); }

#attendanceForm {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--stats-border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  box-shadow: var(--box-shadow); }
  #attendanceForm .input-container {
    width: 100%;
    display: block; }
  #attendanceForm .submit-button {
    clear: right; }

.self-checkin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0; }

.identity-box {
  border: 1px solid var(--stats-border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center; }
  .identity-box h2 {
    margin: 0 0 8px 0; }
  .identity-box p {
    margin: 0 0 12px 0;
    color: var(--text-color-muted); }

.identity-input-row {
  position: relative;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto; }
  .identity-input-row input {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--stats-border-color);
    background-color: #fff;
    color: var(--text-color);
    min-width: 260px; }

.identity-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  right: 0;
  margin-top: 4px;
  text-align: left; }

.self-checkin-button {
  padding: 8px 14px;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: var(--heading-color);
  cursor: pointer; }
  .self-checkin-button:hover {
    background-color: var(--primary-color-hover); }
  .self-checkin-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666; }

.self-checkin-status {
  font-size: 0.9em;
  color: var(--text-color-muted); }

.rfid-register-container {
  display: flex;
  align-items: center;
  gap: 8px; }

.rfid-register-button {
  padding: 8px 14px;
  border: none;
  border-radius: var(--border-radius);
  background-color: #3d7ab5;
  color: #fff;
  cursor: pointer;
  white-space: nowrap; }
  .rfid-register-button:hover {
    background-color: #2f6096; }

.rfid-waiting-text {
  font-size: 0.9em;
  color: #3d7ab5;
  font-style: italic; }

.rfid-cancel-button {
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9em;
  line-height: 1; }
  .rfid-cancel-button:hover {
    background: rgba(255, 255, 255, 0.9); }

.admin-rfid-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border-radius: 5px;
  flex-shrink: 0;
  user-select: none; }
  .admin-rfid-icon svg {
    width: 13px;
    height: 13px; }
  .admin-rfid-icon:hover {
    background: rgba(0, 0, 0, 0.5); }

.matrix-edit-icon {
  margin-right: 0;
  margin-left: 0;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  pointer-events: all;
  color: #fff;
  background-color: #4a9eff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center; }
  .matrix-edit-icon svg {
    width: 12px;
    height: 12px; }

.admin-rfid-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px; }

.admin-rfid-card-text {
  font-family: monospace;
  font-size: 0.85em;
  flex: 1;
  word-break: break-all;
  color: var(--text-color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap; }

.admin-card-badge {
  font-family: var(--font-family, sans-serif);
  font-size: 0.8em;
  background: #8e44ad;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap; }

.admin-rfid-delete-btn {
  padding: 4px 10px;
  border: none;
  border-radius: var(--border-radius);
  background-color: #c0392b;
  color: #fff;
  cursor: pointer;
  font-size: 0.85em;
  white-space: nowrap; }
  .admin-rfid-delete-btn:hover {
    background-color: #a93226; }
  .admin-rfid-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed; }

.admin-rfid-empty {
  color: var(--text-color-muted);
  font-style: italic; }

.admin-rfid-confirm {
  display: flex;
  flex-direction: column;
  gap: 12px; }
  .admin-rfid-confirm h3 {
    margin: 0; }

.admin-rfid-confirm-desc {
  margin: 0; }

.admin-rfid-pass-label {
  font-size: 0.9em;
  font-weight: bold; }

.admin-password-input {
  padding: 8px 10px;
  border: 1px solid var(--stats-border-color);
  border-radius: var(--border-radius);
  font-size: 1em;
  width: 100%; }

.admin-rfid-error {
  color: #c0392b;
  font-size: 0.9em;
  margin: 0; }

.admin-card-scan-section {
  display: flex;
  flex-direction: column;
  gap: 6px; }

.admin-card-scan-status {
  color: var(--text-color-muted);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9em;
  text-align: center; }
  .admin-card-scan-status.is-retry {
    cursor: pointer;
    text-decoration: underline; }

@keyframes admin-card-spin {
  to {
    transform: rotate(360deg); } }

.admin-card-scan-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--stats-border-color);
  border-top-color: var(--text-color-muted);
  border-radius: 50%;
  animation: admin-card-spin 0.8s linear infinite;
  flex-shrink: 0; }

.admin-rfid-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; }

form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--stats-border-color);
  border-radius: var(--border-radius);
  background-color: var(--background-color); }

.checkbox-container, label, .unknown-label {
  display: flex;
  align-items: center;
  gap: 10px; }

.unknown-input {
  margin-left: 10px; }

.submit-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: var(--heading-color);
  cursor: pointer; }
  .submit-button:hover {
    background-color: var(--primary-color-hover); }
  .submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666; }

#stats {
  display: flex;
  flex-direction: column;
  color: var(--secondary-color);
  font-weight: bold; }
  #stats > .flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between; }
    #stats > .flex-row > .flex-col {
      background-color: var(--stats-bg-color);
      border: 1px solid var(--stats-border-color);
      padding: var(--padding);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      gap: 1em;
      display: flex;
      margin: 10px 0;
      flex-direction: column;
      width: 100%; }
    #stats > .flex-row.matrix-row tbody {
      display: block;
      max-height: 50vh;
      overflow-y: auto;
      width: 100%; }
    #stats > .flex-row.matrix-row tr {
      display: table;
      width: 100%;
      table-layout: fixed;
      border-spacing: 0 2px; }

.bar-container {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-weight: bold; }
  .bar-container span {
    flex: 1; }
  .bar-container div {
    flex: 2; }

.label {
  margin-right: 10px;
  width: 30%;
  text-align: right; }

.bar {
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
  color: var(--primary-color);
  line-height: 20px;
  padding-left: 10px; }
  .bar:hover {
    background-color: var(--secondary-color-hover); }

table {
  width: 100%;
  max-width: 100vw;
  border-collapse: separate;
  border-spacing: 0 10px;
  white-space: nowrap;
  table-layout: fixed; }
  table td.attended {
    background-color: var(--heading-bg-color);
    color: var(--primary-color);
    border-radius: 0;
    overflow: visible; }
    table td.attended.hoverable:hover {
      background-color: var(--secondary-color-hover);
      box-shadow: var(--box-shadow); }
    table td.attended.streak-start {
      border-top-left-radius: var(--border-radius);
      border-bottom-left-radius: var(--border-radius); }
    table td.attended.streak-end {
      border-top-right-radius: var(--border-radius);
      border-bottom-right-radius: var(--border-radius); }
  @media (min-width: 801px) {
    table td.month-separator {
      border-left: 2px solid var(--month-separator-color); } }
  table td:first-child {
    color: var(--text-color);
    width: 100px;
    padding-right: 10px; }

.position-cell {
  width: 2em !important;
  text-align: center;
  padding: 0 0.2em !important;
  position: relative;
  z-index: 10; }

.participant-name {
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
  width: 4.5em;
  padding-right: 0.5em !important; }
  .participant-name:hover {
    background-color: var(--secondary-color) !important; }
    .participant-name:hover .user-stats-tooltip {
      display: block;
      opacity: 1; }

tr.is-me td {
  font-weight: bold; }

tr.is-me .participant-name {
  color: var(--primary-color); }

tr.is-me .position-cell {
  color: var(--primary-color); }

.is-me-name {
  font-weight: bold;
  color: #000;
  background-color: #f5c842;
  border-radius: 3px;
  padding: 0 2px; }

.user-stats-tooltip {
  display: none;
  opacity: 0;
  position: fixed;
  left: auto;
  top: auto;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 280px;
  transition: opacity 0.2s ease;
  pointer-events: none; }
  .user-stats-tooltip:has(.matrix-edit-icon) {
    pointer-events: all; }
  .user-stats-tooltip .stats-header {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px; }
  .user-stats-tooltip .stats-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px; }
    .user-stats-tooltip .stats-row .stats-label {
      color: var(--text-color);
      font-weight: 500; }
    .user-stats-tooltip .stats-row .stats-value {
      color: var(--primary-color);
      font-weight: bold; }
  .user-stats-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--primary-color); }
  .user-stats-tooltip::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #fff;
    margin-right: -2px; }

.hoverable {
  position: relative; }
  .hoverable .date-overlay {
    color: var(--text-color);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 10;
    background-color: var(--secondary-color-hover); }
  .hoverable:hover .date-overlay {
    display: block; }

#latest-attendance-bar {
  position: relative;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 20px;
  overflow: visible;
  margin: 40px 0;
  box-shadow: var(--box-shadow); }
  #latest-attendance-bar .filled-bar {
    height: 100%;
    background-color: var(--attendance-bar-today-color);
    border-radius: 20px 0 0 20px;
    transition: width 0.5s ease-in-out; }
    #latest-attendance-bar .filled-bar.full {
      border-radius: 20px; }
  #latest-attendance-bar .attending-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 16px; }
  #latest-attendance-bar .bubble {
    position: absolute;
    padding: 5px 10px;
    background-color: var(--attendance-bar-bubble-color);
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold; }
    #latest-attendance-bar .bubble.above {
      top: -32px; }
      #latest-attendance-bar .bubble.above .bubble-arrow {
        bottom: -5px; }
    #latest-attendance-bar .bubble.below {
      bottom: -32px; }
      #latest-attendance-bar .bubble.below .bubble-arrow {
        top: -5px;
        border-top: none;
        border-bottom: 5px solid var(--attendance-bar-bubble-color); }
    #latest-attendance-bar .bubble .bubble-arrow {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid var(--attendance-bar-bubble-color); }
    #latest-attendance-bar .bubble .bubble-line {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2px;
      background-color: var(--attendance-bar-bubble-color); }
    #latest-attendance-bar .bubble.bubble-today {
      background-color: var(--attendance-bar-today-color); }
      #latest-attendance-bar .bubble.bubble-today .bubble-arrow {
        border-top-color: var(--attendance-bar-today-color); }
      #latest-attendance-bar .bubble.bubble-today .bubble-line {
        background-color: var(--attendance-bar-today-color); }

.histogram-row {
  display: grid;
  align-items: flex-end;
  justify-content: stretch;
  margin-top: 0;
  padding: 10px;
  height: 200px;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2px; }
  .histogram-row .histogram-bar {
    position: relative;
    background-color: var(--heading-bg-color);
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s ease-in-out, height 0.3s ease-in-out;
    overflow: visible; }
    .histogram-row .histogram-bar:hover {
      background-color: var(--heading-bg-color-hover); }
      .histogram-row .histogram-bar:hover .histogram-overlay {
        display: block; }
    .histogram-row .histogram-bar .histogram-overlay {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      padding: 5px;
      background-color: var(--secondary-color);
      color: var(--text-color-muted);
      border: 1px solid var(--stats-border-color);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      white-space: pre-wrap;
      z-index: 10;
      min-width: 200px;
      word-wrap: break-word; }
      .histogram-row .histogram-bar .histogram-overlay .histogram-overlay-edit-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
        padding: 4px 8px;
        border: none;
        border-radius: var(--border-radius);
        background-color: var(--heading-bg-color-hover);
        color: #fff;
        font-size: 0.85em;
        cursor: pointer;
        white-space: nowrap; }
        .histogram-row .histogram-bar .histogram-overlay .histogram-overlay-edit-btn svg {
          width: 13px;
          height: 13px;
          flex-shrink: 0; }
        .histogram-row .histogram-bar .histogram-overlay .histogram-overlay-edit-btn:hover {
          background-color: #c8900a; }

.histogram-edit-user-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 55vh;
  overflow-y: auto;
  margin-top: 8px; }
  .histogram-edit-user-list .admin-rfid-card-text.histogram-edit-attending {
    font-weight: bold;
    color: var(--heading-bg-color); }

.hamburger-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000; }
  .hamburger-menu .hamburger-icon {
    font-size: 30px;
    cursor: pointer; }
  .hamburger-menu .hamburger-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px;
    z-index: 1000; }
    .hamburger-menu .hamburger-content a {
      text-decoration: none;
      color: var(--text-color);
      display: block;
      padding: 5px 0; }
    .hamburger-menu .hamburger-content a:hover {
      color: var(--primary-color); }
  .hamburger-menu:hover .hamburger-content {
    display: block; }

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000; }
  .overlay .overlay-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    scrollbar-gutter: stable; }
    .overlay .overlay-content .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 30px;
      cursor: pointer; }
    .overlay .overlay-content pre {
      white-space: pre-wrap;
      word-wrap: break-word; }
    .overlay .overlay-content #suggestions-container {
      margin: 10px;
      padding: 10px;
      border: 2px solid #fab000;
      border-radius: 5px;
      background-color: #fff3cc; }
    .overlay .overlay-content #add-suggestion-form {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 10px;
      padding: 0 0 10px 0; }
      .overlay .overlay-content #add-suggestion-form input,
      .overlay .overlay-content #add-suggestion-form button {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px; }
      .overlay .overlay-content #add-suggestion-form input {
        min-width: 0; }
      .overlay .overlay-content #add-suggestion-form button {
        background-color: #007bff;
        color: white;
        cursor: pointer;
        display: block;
        margin: 0 auto;
        width: fit-content;
        padding: 8px 24px;
        box-sizing: border-box; }
        .overlay .overlay-content #add-suggestion-form button:hover {
          background-color: #0056b3; }
      .overlay .overlay-content #add-suggestion-form input[type="time"]:invalid::after {
        content: "Time must be after 16:00 Europe/Oslo";
        color: #e74c3c;
        font-size: 0.9em;
        margin-top: 5px;
        display: block; }
    .overlay .overlay-content .suggestion {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 25px 10px;
      margin-bottom: 15px;
      border-bottom: 1px solid #ccc; }
      .overlay .overlay-content .suggestion.approved {
        position: relative;
        background-color: #d4edda;
        /* Light green */
        color: #155724; }
        .overlay .overlay-content .suggestion.approved::after {
          content: 'APPROVED';
          position: absolute;
          bottom: 15px;
          right: 0;
          transform: rotate(-15deg);
          font-size: 1.5em;
          font-weight: bold;
          color: rgba(21, 87, 36, 0.5);
          text-transform: uppercase;
          border: 2px solid rgba(21, 87, 36, 0.5);
          padding: 5px 10px;
          border-radius: 5px; }
      .overlay .overlay-content .suggestion.rejected {
        position: relative;
        background-color: #f8d7da;
        /* Light red */
        color: #721c24; }
        .overlay .overlay-content .suggestion.rejected::after {
          content: 'REJECTED';
          position: absolute;
          bottom: 15px;
          right: 0;
          transform: rotate(-15deg);
          font-size: 1.5em;
          font-weight: bold;
          color: rgba(114, 28, 36, 0.5);
          text-transform: uppercase;
          border: 2px solid rgba(114, 28, 36, 0.5);
          padding: 5px 10px;
          border-radius: 5px; }
      .overlay .overlay-content .suggestion.forgot-to-vote {
        position: relative;
        background-color: #ffe69c;
        /* Darker yellow */
        color: #856404;
        border-bottom: none; }
        .overlay .overlay-content .suggestion.forgot-to-vote::after {
          content: 'FORGOT TO VOTE';
          position: absolute;
          bottom: 15px;
          right: 0;
          transform: rotate(-15deg);
          font-size: 1.5em;
          font-weight: bold;
          color: rgba(133, 100, 4, 0.5);
          text-transform: uppercase;
          border: 2px solid rgba(133, 100, 4, 0.5);
          padding: 5px 10px;
          border-radius: 5px; }
    .overlay .overlay-content .suggestion:last-child {
      border-bottom: none; }
    .overlay .overlay-content .button-container {
      display: flex;
      gap: 10px; }
    .overlay .overlay-content .accept-button,
    .overlay .overlay-content .reject-button {
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer; }
    .overlay .overlay-content .accept-button {
      background-color: #28a745;
      color: white; }
    .overlay .overlay-content .accept-button:hover {
      background-color: #218838; }
    .overlay .overlay-content .reject-button {
      background-color: #dc3545;
      color: white; }
    .overlay .overlay-content .reject-button:hover {
      background-color: #c82333; }

#changelog {
  font-family: 'Courier New', Courier, monospace;
  background-color: #e8f4e8;
  color: #222;
  border: 2px solid #4caf50;
  border-radius: var(--border-radius);
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); }
  #changelog h1, #changelog h2, #changelog h3 {
    font-family: inherit;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.2em;
    text-align: left; }
  #changelog h1 {
    font-size: 2em;
    border-bottom: 2px solid #bbb; }
  #changelog h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: #555; }
  #changelog h3 {
    font-size: 1.2em;
    border-bottom: none; }
  #changelog strong {
    font-weight: bold;
    color: #2e7d32; }
  #changelog em {
    font-style: italic;
    color: #2980b9; }
  #changelog br {
    margin-bottom: 1em;
    display: block;
    content: ""; }
  #changelog p {
    margin: 1em 0;
    line-height: 1.7; }

#vedtekter {
  font-family: 'Courier New', Courier, monospace;
  background-color: #fff3cc;
  color: #222;
  border: 2px solid #fab000;
  border-radius: var(--border-radius);
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); }
  #vedtekter h1, #vedtekter h2, #vedtekter h3 {
    font-family: inherit;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a1a;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.2em;
    text-align: left; }
  #vedtekter h1 {
    font-size: 2em;
    border-bottom: 2px solid #bbb; }
  #vedtekter h2 {
    font-size: 1.5em; }
  #vedtekter h3 {
    font-size: 1.2em;
    border-bottom: none; }
  #vedtekter strong {
    font-weight: bold;
    color: #c0392b; }
  #vedtekter em {
    font-style: italic;
    color: #2980b9; }
  #vedtekter br {
    margin-bottom: 1em;
    display: block;
    content: ""; }
  #vedtekter p {
    margin: 1em 0;
    line-height: 1.7; }

.archive-section {
  margin: 3em auto;
  padding: 2em;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-hover) 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center; }
  .archive-section h2 {
    color: var(--heading-color);
    margin-bottom: 1.5em;
    font-size: 2em; }

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center; }

.archive-link {
  display: inline-block;
  padding: 0.8em 1.5em;
  background-color: white;
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
  .archive-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color); }
  .archive-link.active {
    background-color: var(--text-color);
    color: white;
    cursor: default; }
    .archive-link.active:hover {
      transform: none; }

.archive-header {
  text-align: center;
  margin: 2em 0;
  padding: 1em;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-hover) 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow); }
  .archive-header h1 {
    color: var(--heading-color);
    margin: 0;
    font-size: 2.5em; }

.season-stats-header {
  text-align: center;
  margin: 2em 0 1em 0;
  padding: 1.5em;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow); }
  .season-stats-header h2 {
    color: white;
    margin: 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }

.season-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin: 2em 0; }
  @media (max-width: 600px) {
    .season-stats-grid {
      grid-template-columns: 1fr; } }
.season-highlight-box {
  background: linear-gradient(135deg, white 0%, var(--secondary-color) 100%);
  border: 3px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; }
  .season-highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
  .season-highlight-box .highlight-icon {
    font-size: 3em;
    margin-bottom: 0.3em; }
  .season-highlight-box .highlight-title {
    font-size: 1em;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5em;
    letter-spacing: 1px; }
  .season-highlight-box .highlight-value {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.3em; }
  .season-highlight-box .highlight-subtitle {
    font-size: 0.9em;
    color: #666;
    font-style: italic; }
  @media (max-width: 600px) {
    .season-highlight-box {
      grid-column: 1 !important; } }
#user-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--stats-border-color);
  border-radius: var(--border-radius);
  background-color: #fff;
  color: var(--text-color);
  transition: all 0.3s ease; }
  #user-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(250, 176, 0, 0.1); }
  #user-input::placeholder {
    color: var(--text-color-muted);
    opacity: 0.7; }

.user-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background-color: #fff;
  border: 2px solid var(--stats-border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000; }
  .user-suggestions .suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--secondary-color); }
    .user-suggestions .suggestion-item:last-child {
      border-bottom: none; }
    .user-suggestions .suggestion-item:hover, .user-suggestions .suggestion-item.highlighted {
      background-color: var(--secondary-color-hover); }
    .user-suggestions .suggestion-item.new-user {
      background-color: var(--stats-bg-color);
      color: var(--primary-color); }
      .user-suggestions .suggestion-item.new-user strong {
        color: var(--primary-color); }
      .user-suggestions .suggestion-item.new-user:hover {
        background-color: var(--secondary-color); }

.attending-users-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background-color: var(--stats-bg-color);
  border-radius: var(--border-radius);
  min-height: 50px;
  width: 100%;
  align-self: stretch; }
  .attending-users-container:empty::before {
    content: 'No users added yet';
    color: var(--text-color-muted);
    font-style: italic;
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px; }

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: var(--heading-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease; }
  .user-badge:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(250, 176, 0, 0.3); }
  .user-badge.disabled {
    background-color: var(--text-color-muted);
    opacity: 0.6;
    cursor: not-allowed; }
    .user-badge.disabled:hover {
      transform: none;
      box-shadow: none; }
  .user-badge.is-me {
    outline: 3px solid white;
    box-shadow: 0 0 0 5px var(--primary-color);
    font-weight: bold; }
  .user-badge .user-badge-remove {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 50%;
    transition: background-color 0.2s ease; }
    .user-badge .user-badge-remove:hover {
      background-color: rgba(255, 255, 255, 0.3); }
