/* Shared site header styling */
.header-gradient {
  background: linear-gradient(120deg, rgba(4, 47, 40, 0.95), rgba(4, 120, 87, 0.92), rgba(16, 185, 129, 0.9));
  color: #f8fafc;
  border-color: transparent !important;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.25);
}

.dark .header-gradient {
  background: linear-gradient(120deg, rgba(2, 37, 32, 0.95), rgba(6, 95, 70, 0.92), rgba(22, 163, 74, 0.88));
  color: #f1f5f9;
  box-shadow: 0 12px 28px rgba(6, 95, 70, 0.35);
}

.header-gradient .brand-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
}

.tee-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  color: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dark .tee-header {
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  border-bottom-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.tee-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
}

.tee-header__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.tee-header__logo {
  height: 42px;
  width: auto;
  display: block;
}

.tee-header__tagline {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tee-header__brand {
  font-size: 0.65rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(4, 120, 87, 0.75);
}

.dark .tee-header__brand {
  color: rgba(45, 212, 191, 0.7);
}

.tee-header__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.dark .tee-header__title {
  color: #f8fafc;
}

.tee-header__center {
  flex: 1 1 100%;
  order: 3;
  display: flex;
  justify-content: center;
}

.tee-header__center-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.tee-header__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.tee-header__nav:hover,
.tee-header__nav:focus-visible {
  border-color: rgba(4, 120, 87, 0.6);
  color: #047857;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.dark .tee-header__nav {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.tee-header__date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tee-header__date-input {
  min-width: 160px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 0.9rem;
  padding: 0.55rem 0.85rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tee-header__date-input::placeholder {
  color: rgba(71, 85, 105, 0.6);
}

.tee-header__date-input::-webkit-calendar-picker-indicator {
  color: #047857;
  opacity: 0.85;
  cursor: pointer;
}

.tee-header__date-input:focus {
  outline: none;
  border-color: rgba(4, 120, 87, 0.75);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.dark .tee-header__date-input {
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.28);
}

.tee-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tee-header__status {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
}

.dark .tee-header__status {
  color: rgba(226, 232, 240, 0.68);
}

.tee-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tee-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
}

.tee-header__action--ghost {
  background: transparent;
  color: #047857;
  border-color: rgba(4, 120, 87, 0.22);
}

.tee-header__action--ghost:hover,
.tee-header__action--ghost:focus-visible {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(4, 120, 87, 0.45);
  color: #065f46;
  outline: none;
}

.tee-header__action--primary {
  background: #047857;
  color: #ecfdf5;
  border-color: #047857;
  box-shadow: 0 10px 18px rgba(4, 120, 87, 0.25);
}

.tee-header__action--primary:hover,
.tee-header__action--primary:focus-visible {
  background: #0f9d67;
  border-color: #0f9d67;
  box-shadow: 0 12px 22px rgba(15, 157, 103, 0.28);
  outline: none;
}

.dark .tee-header__action--ghost {
  color: #34d399;
  border-color: rgba(34, 197, 94, 0.35);
}

.dark .tee-header__action--ghost:hover,
.dark .tee-header__action--ghost:focus-visible {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.dark .tee-header__action--primary {
  background: linear-gradient(135deg, #10b981, #047857);
  border-color: rgba(48, 209, 162, 0.75);
  color: #f0fdf4;
}

.tee-header__account {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.tee-header__account-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: #0f172a;
}

.tee-header__account-name {
  font-weight: 600;
}

.dark .tee-header__account-info {
  color: #f1f5f9;
}

.tee-header__account-email {
  font-size: 0.74rem;
  color: rgba(15, 23, 42, 0.6);
}

.dark .tee-header__account-email {
  color: rgba(226, 232, 240, 0.65);
}

@media (max-width: 900px) {
  .tee-header__inner {
    padding: 0.8rem 1.25rem;
  }

  .tee-header__center {
    order: 3;
    flex: 1 1 100%;
  }

  .tee-header__center-controls {
    width: 100%;
    justify-content: space-between;
  }

  .tee-header__date-input {
    flex: 1 1 auto;
  }

  .tee-header__right {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 901px) {
  .tee-header__center {
    order: 2;
    flex: 0 1 auto;
  }
}

@media (max-width: 520px) {
  .tee-header__inner {
    gap: 0.75rem;
  }

  .tee-header__left {
    width: 100%;
    justify-content: flex-start;
  }

  .tee-header__right {
    width: 100%;
    justify-content: flex-end;
  }

  .tee-header__center-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tee-header__nav {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }

  .tee-header__date-input {
    width: 100%;
  }

  .tee-header__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.header-toolbar {
  width: 100%;
}

.header-toolbar__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
  order: -1;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.header-toolbar__actions::-webkit-scrollbar {
  display: none;
}

.header-toolbar__actions > button {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.header-toolbar__actions > .header-toolbar__date {
  flex: 1 1 0%;
  min-width: 0;
}

.header-toolbar__actions > .header-toolbar__chip--compact {
  width: auto;
  align-self: center;
}

.header-toolbar__action-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-toolbar__actions {
    order: 0;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 0.6rem;
  }
}

@media (max-width: 640px) {
  .header-toolbar__action-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .header-toolbar__actions {
    gap: 0.3rem;
    padding-bottom: 0.15rem;
  }
  .header-toolbar__chip {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }
  .header-toolbar__chip svg {
    width: 0.85rem;
    height: 0.85rem;
  }
  .header-toolbar__date {
    padding: 0.45rem 0.7rem;
    gap: 0.5rem;
  }
  .header-toolbar__date-input {
    font-size: 0.82rem;
    padding-inline-end: 2.1rem;
  }
}

.header-toolbar__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.header-toolbar__chip svg {
  width: 1rem;
  height: 1rem;
}

.header-toolbar__chip--compact {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.header-toolbar__chip--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
}

.header-toolbar__chip--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 32px -22px rgba(15, 118, 110, 0.65);
}

.header-toolbar__chip--ghost:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 24px -20px rgba(15, 118, 110, 0.55);
}

.header-toolbar__chip--accent {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(45, 212, 191, 0.9));
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(187, 247, 208, 0.65);
  box-shadow: 0 18px 38px -22px rgba(16, 185, 129, 0.75);
}

.header-toolbar__chip--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -18px rgba(16, 185, 129, 0.8);
}

.header-toolbar__chip--accent:active {
  transform: translateY(1px);
  box-shadow: 0 14px 32px -18px rgba(16, 185, 129, 0.65);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.88), rgba(13, 148, 136, 0.82));
}

.header-toolbar__chip--soft {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(248, 250, 252, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  padding-inline: 0.9rem;
}

.header-toolbar__chip--soft:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}

.header-toolbar__chip--soft:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 30px -20px rgba(15, 118, 110, 0.55);
}

.header-toolbar__date {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.32), rgba(15, 118, 110, 0.22));
  box-shadow: 0 18px 34px -24px rgba(6, 78, 59, 0.55);
  flex: 1 1 auto;
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 768px) {
  .header-toolbar__date {
    min-width: 200px;
    flex-wrap: nowrap;
    width: auto;
  }
}

.header-toolbar__date-icon {
  width: 1rem;
  height: 1rem;
  color: rgba(248, 250, 252, 0.8);
}

.header-toolbar__date-input {
  flex: 1;
  border: none;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  caret-color: rgba(248, 250, 252, 0.9);
  min-width: 0;
  padding-inline-end: 1.2rem;
}

.header-toolbar__date-input::placeholder {
  color: rgba(226, 232, 240, 0.75);
}

.header-toolbar__date-input:focus {
  outline: none;
}

.header-gradient #authWidget {
  color: inherit;
}

.header-gradient #authWidget a:not(.btn-accent),
.header-gradient #authWidget button {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: transparent;
}

.header-gradient #authWidget a:not(.btn-accent):hover,
.header-gradient #authWidget button:hover {
  border-color: rgba(255, 255, 255, 0.65) !important;
  background-color: rgba(255, 255, 255, 0.08);
}

.header-gradient #authWidget a:not(.btn-accent):focus-visible,
.header-gradient #authWidget button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}
