/* 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;
}

/* OGF top header */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.dark #siteHeader {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.dark #siteHeader .navlinks {
  color: #cbd5e1;
}

.dark #siteHeader .navlinks a {
  color: #e2e8f0;
}

.dark #siteHeader .navlinks .nav-static {
  color: #94a3b8;
}

.dark #siteHeader .navlinks a:hover {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.16);
}

#siteHeader .container.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 18px;
}

#siteHeader .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#siteHeader .logo-img {
  width: auto;
  height: 52px;
  max-width: min(42vw, 560px);
  object-fit: contain;
  object-position: left center;
  display: block;
}

#siteHeader .navlinks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 650;
  color: #475569;
  font-size: 13px;
}

#siteHeader .navlinks a {
  padding: 8px 10px;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
}

#siteHeader .navlinks .nav-static {
  padding: 8px 10px;
  border-radius: 12px;
  opacity: 0.82;
  color: #475569;
}

#siteHeader .navlinks a:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

#siteHeader .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  min-width: 0;
}

.dark #siteHeader .actions {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

.dark #siteHeader .actions .btn {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
}

.dark #siteHeader .actions .btn:hover {
  background: rgba(148, 163, 184, 0.2);
}

#siteHeader .actions-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

#siteHeader .actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

#siteHeader .actions .btn:hover {
  background: rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

#siteHeader .actions .btn.ghost {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

#siteHeader .actions .btn.primary {
  background: linear-gradient(135deg, #93cf49, #b3e25d);
  color: #0b1220;
  border: 1px solid rgba(12, 107, 47, 0.2);
  box-shadow: 0 8px 18px rgba(147, 207, 73, 0.24);
}

#siteHeader .actions .btn.primary:hover {
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 10px 22px rgba(147, 207, 73, 0.3);
}

#siteHeader .langSelect {
  min-width: 96px;
  max-width: 108px;
  flex: 0 0 auto;
  padding: 8px 24px 8px 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 11px;
  -webkit-text-fill-color: #0f172a;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 12px) calc(50% - 2px),
    calc(100% - 8px) calc(50% - 2px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.dark #siteHeader .langSelect {
  background-color: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
  -webkit-text-fill-color: #e2e8f0;
}

#siteHeader .welcome {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.dark #siteHeader .welcome {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.12);
}

@media (max-width: 980px) {
  #siteHeader .navlinks {
    display: none;
  }

  #siteHeader .container.nav {
    min-height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  #siteHeader .actions {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    padding: 8px 10px;
    border-radius: 14px;
  }

  #siteHeader .actions .btn {
    padding: 10px 12px;
  }

  #siteHeader .langSelect {
    min-width: 90px;
    max-width: 96px;
  }

  #siteHeader .logo-img {
    width: auto;
    height: 56px;
    max-width: min(84vw, 360px);
  }
}

.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);
}

/* Date controls reused inside left filter panel */
.filter-card .tee-header__center-controls {
  width: 100%;
  display: grid;
  max-width: 100%;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "date date"
    "prev next";
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.filter-card .tee-header__date {
  grid-area: date;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-card .tee-header__date-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-card .tee-header__nav {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  padding-inline: 0.7rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.filter-card .tee-header__nav:first-of-type {
  grid-area: prev;
}

.filter-card .tee-header__nav:last-of-type {
  grid-area: next;
}

.filter-card .filter-card__body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.filter-card .filter-card__body > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.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);
}
