/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-7xl: 80rem;
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --font-weight-medium: 500;
    --radius-lg: 0.5rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .h-16 {
    height: calc(var(--spacing) * 16);
  }
  .max-w-7xl {
    max-width: var(--container-7xl);
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .hover\:text-\[var\(--cg-sky\)\] {
    &:hover {
      @media (hover: hover) {
        color: var(--cg-sky);
      }
    }
  }
  .focus\:not-sr-only {
    &:focus {
      position: static;
      width: auto;
      height: auto;
      padding: 0;
      margin: 0;
      overflow: visible;
      clip-path: none;
      white-space: normal;
    }
  }
  .focus\:fixed {
    &:focus {
      position: fixed;
    }
  }
  .focus\:top-4 {
    &:focus {
      top: calc(var(--spacing) * 4);
    }
  }
  .focus\:left-4 {
    &:focus {
      left: calc(var(--spacing) * 4);
    }
  }
  .focus\:z-50 {
    &:focus {
      z-index: 50;
    }
  }
  .focus\:rounded-lg {
    &:focus {
      border-radius: var(--radius-lg);
    }
  }
  .focus\:bg-\[var\(--cg-sky\)\] {
    &:focus {
      background-color: var(--cg-sky);
    }
  }
  .focus\:px-4 {
    &:focus {
      padding-inline: calc(var(--spacing) * 4);
    }
  }
  .focus\:py-2 {
    &:focus {
      padding-block: calc(var(--spacing) * 2);
    }
  }
  .focus\:text-sm {
    &:focus {
      font-size: var(--text-sm);
      line-height: var(--tw-leading, var(--text-sm--line-height));
    }
  }
  .focus\:font-medium {
    &:focus {
      --tw-font-weight: var(--font-weight-medium);
      font-weight: var(--font-weight-medium);
    }
  }
  .focus\:text-white {
    &:focus {
      color: var(--color-white);
    }
  }
  .sm\:flex-row {
    @media (width >= 40rem) {
      flex-direction: row;
    }
  }
  .sm\:px-6 {
    @media (width >= 40rem) {
      padding-inline: calc(var(--spacing) * 6);
    }
  }
}
:root {
  --cg-bg: #0a0a0a;
  --cg-bg-card: #1a1a1a;
  --cg-bg-header: #000000;
  --cg-bg-input: rgba(255,255,255,0.08);
  --cg-bg-input-focus: rgba(255,255,255,0.12);
  --cg-border: rgba(255,255,255,0.15);
  --cg-border-card: rgba(255,255,255,0.12);
  --cg-sky: #007AFF;
  --cg-sky-light: rgba(0,122,255,0.1);
  --cg-green: #30D158;
  --cg-amber: #FF9500;
  --cg-red: #FF3B30;
  --cg-text: rgba(255,255,255,0.87);
  --cg-text-muted: rgba(255,255,255,0.6);
  --cg-text-inverse: #000000;
  --cg-heading: #ffffff;
  --cg-table-header: rgba(0,122,255,0.15);
  --cg-table-hover: rgba(0,122,255,0.08);
  --cg-table-border: rgba(255,255,255,0.1);
  --cg-shadow-color: rgba(0,0,0,0.5);
  --cg-footer-bg: #0a0a0a;
  --cg-translucent: rgba(255,255,255,0.08);
  --cg-haze: rgba(255,255,255,0.05);
  --cg-ease: cubic-bezier(0.39, 0.575, 0.565, 1);
}
html[data-theme="light"] {
  --cg-bg: #f5f5f7;
  --cg-bg-card: #ffffff;
  --cg-bg-header: #ffffff;
  --cg-bg-input: #ffffff;
  --cg-bg-input-focus: #ffffff;
  --cg-border: rgba(0,0,0,0.2);
  --cg-border-card: rgba(0,0,0,0.12);
  --cg-text: #1d1d1f;
  --cg-text-muted: rgba(0,0,0,0.5);
  --cg-text-inverse: #ffffff;
  --cg-heading: #000000;
  --cg-table-header: rgba(0,122,255,0.08);
  --cg-table-hover: rgba(0,122,255,0.06);
  --cg-table-border: rgba(0,0,0,0.1);
  --cg-shadow-color: rgba(0,0,0,0.08);
  --cg-footer-bg: #ffffff;
  --cg-translucent: rgba(0,0,0,0.05);
  --cg-haze: rgba(0,0,0,0.05);
}
html {
  scroll-behavior: smooth;
  font-family: Verdana, Geneva, sans-serif;
}
::selection {
  background-color: var(--cg-sky);
  color: white;
}
:focus-visible {
  outline: 2px solid var(--cg-sky);
  outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--cg-heading);
  font-weight: 600;
  line-height: 1.3;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cg-haze);
}
::-webkit-scrollbar-thumb {
  background: var(--cg-sky);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.2);
}
@media print {
  header, footer, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
body {
  background-color: var(--cg-bg);
  color: var(--cg-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Geneva, sans-serif;
  transition: background-color 0.3s var(--cg-ease), color 0.3s var(--cg-ease);
}
a {
  color: inherit;
  text-decoration: none;
}
.header {
  background: var(--cg-bg-header);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--cg-border);
}
.header .branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header .branding .title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cg-sky);
}
.header-nav {
  display: flex;
  gap: 0.5rem;
}
.header .nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  color: var(--cg-text);
  text-decoration: none;
  transition: color 0.2s var(--cg-ease);
  font-size: 0.875rem;
}
.header .nav-link:hover {
  color: var(--cg-sky);
}
.header .nav-link.active {
  color: var(--cg-sky);
}
.location-strip {
  background: var(--cg-bg-card);
  border-bottom: 1px solid var(--cg-border-card);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--cg-text-muted);
}
.location-strip .loc-display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.location-strip .loc-postcode {
  color: var(--cg-text);
  font-weight: 500;
  text-transform: uppercase;
}
.location-strip .loc-change {
  color: var(--cg-sky);
  cursor: pointer;
  font-size: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.location-strip .loc-change:hover {
  text-decoration: underline;
}
.location-strip .loc-edit {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.location-strip .loc-edit.visible {
  display: flex;
}
.location-strip .loc-edit input {
  width: 7rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
}
.location-strip .loc-edit .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}
.distance-field .loc-postcode {
  color: var(--cg-sky);
  font-weight: 600;
  text-transform: uppercase;
}
.distance-field .loc-change {
  color: var(--cg-sky);
  cursor: pointer;
  font-size: 0.65rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  opacity: 0.7;
}
.distance-field .loc-change:hover {
  opacity: 1;
  text-decoration: underline;
}
.distance-field .loc-edit {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.distance-field .loc-edit.visible {
  display: flex;
}
.distance-field .loc-edit input {
  width: 7rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
}
.distance-field .loc-edit .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}
.content-container {
  flex: 1;
  padding: 1.5rem 0;
  width: 100%;
}
.card {
  background: var(--cg-bg-card);
  border-width: 1px;
  border-style: solid;
  border-color: var(--cg-border-card);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3rem var(--cg-shadow-color);
  overflow: hidden;
  transition: background-color 0.3s var(--cg-ease), border-color 0.3s var(--cg-ease), box-shadow 0.3s var(--cg-ease);
}
.card:hover {
  box-shadow: 0 1px 4rem var(--cg-shadow-color);
}
.card-header {
  background: var(--cg-sky-light);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--cg-border-card);
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--cg-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-body {
  padding: 1.25rem;
  color: var(--cg-text);
}
.table {
  color: var(--cg-text);
  background: var(--cg-bg-card);
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 0.75rem 1rem !important;
  text-align: left;
  vertical-align: middle;
}
.table th {
  color: var(--cg-text);
  background: var(--cg-table-header);
  font-weight: 500;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: var(--cg-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.table td {
  color: var(--cg-text);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--cg-table-border);
  font-size: 0.875rem;
}
.table tbody tr:hover {
  background: var(--cg-table-hover);
}
.table-responsive {
  background: var(--cg-bg-card);
  overflow-x: auto;
}
.form-control {
  background: var(--cg-bg-input);
  border-width: 1px;
  border-style: solid;
  border-color: var(--cg-border);
  color: var(--cg-text);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.875rem;
  transition: background-color 0.3s var(--cg-ease), border-color 0.3s var(--cg-ease);
  width: 100%;
  box-sizing: border-box;
}
.form-control:focus {
  background: var(--cg-bg-input-focus);
  border-color: var(--cg-sky);
  color: var(--cg-text);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.25);
  outline: none;
}
.form-control::placeholder {
  color: var(--cg-text-muted);
}
select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none !important;
  line-height: 1.5;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888888' d='M1 0l5 8 5-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  padding-right: 2rem;
}
html[data-theme="light"] select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333333' d='M1 0l5 8 5-8z'/%3E%3C/svg%3E");
}
input[type="date"].form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888888' d='M1 0l5 8 5-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  padding-right: 2rem;
}
html[data-theme="light"] input[type="date"].form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333333' d='M1 0l5 8 5-8z'/%3E%3C/svg%3E");
}
.form-label {
  color: var(--cg-text-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check input[type="checkbox"] {
  accent-color: var(--cg-sky);
  width: 1rem;
  height: 1rem;
}
.form-check label {
  color: var(--cg-text);
  font-size: 0.875rem;
}
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  transition: all 0.2s var(--cg-ease);
  white-space: nowrap;
  background: transparent;
  color: var(--cg-text);
}
.btn-primary {
  background: var(--cg-sky) !important;
  border-color: var(--cg-sky) !important;
  color: white !important;
}
.btn-primary:hover {
  filter: brightness(0.9);
}
.btn-outline-primary {
  background: transparent;
  border-color: var(--cg-sky) !important;
  color: var(--cg-sky);
}
.btn-outline-primary:hover {
  background: var(--cg-sky) !important;
  color: white !important;
}
.btn-outline-secondary {
  background: transparent;
  border-color: var(--cg-border) !important;
  color: var(--cg-text-muted);
}
.btn-outline-secondary:hover {
  background: var(--cg-translucent);
  border-color: var(--cg-text) !important;
  color: var(--cg-text);
}
.btn-danger {
  background: transparent;
  border-color: var(--cg-red) !important;
  color: var(--cg-red);
}
.btn-danger:hover {
  background: var(--cg-red) !important;
  color: white !important;
}
.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}
.badge {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.badge-success {
  background: var(--cg-green) !important;
  color: white !important;
}
.badge-danger {
  background: var(--cg-red) !important;
  color: white !important;
}
.badge-warning {
  background: var(--cg-amber) !important;
  color: var(--cg-text-inverse) !important;
}
.badge-info {
  background: var(--cg-sky) !important;
  color: white !important;
}
.badge-muted {
  background: var(--cg-translucent);
  color: var(--cg-text-muted);
  border-width: 1px;
  border-style: solid;
  border-color: var(--cg-border);
}
.filter-panel {
  background: var(--cg-bg-card);
  border: 1px solid var(--cg-border-card);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}
.filter-panel > summary {
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--cg-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  user-select: none;
}
.filter-panel > summary::-webkit-details-marker {
  display: none;
}
.filter-panel > summary::marker {
  content: '';
}
.filter-panel > summary::before {
  content: '\25B6';
  font-size: 0.6rem;
  transition: transform 0.2s var(--cg-ease);
  color: var(--cg-text-muted);
}
.filter-panel[open] > summary::before {
  transform: rotate(90deg);
}
.filter-count {
  background: var(--cg-sky);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  margin-left: auto;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--cg-ease);
}
.filter-count:hover {
  background: var(--cg-sky-hover, #1a6fbf);
}
.filter-form {
  padding: 0 1rem 1rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: flex-end;
  margin-bottom: 0.625rem;
}
.filter-row-dates .filter-field {
  flex: 0 0 auto;
  min-width: 9rem;
}
.filter-row-selects .filter-field {
  flex: 1 1 10rem;
  min-width: 9rem;
}
.date-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-bottom: 0.35rem;
}
.preset-pill {
  background: var(--cg-translucent);
  border: 1px solid var(--cg-border);
  color: var(--cg-text);
  border-radius: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--cg-ease);
  white-space: nowrap;
}
.preset-pill:hover {
  border-color: var(--cg-sky);
  color: var(--cg-sky);
}
.preset-pill.active {
  background: var(--cg-sky-light);
  border-color: var(--cg-sky);
  color: var(--cg-sky);
  font-weight: 500;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.filter-field .disc-toggle,
.filter-field .venue-toggle {
  height: 2.0rem;
  display: flex;
  align-items: center;
}
.filter-field select.form-control {
  height: 2.0rem;
  min-height: 2.0rem;
  line-height: 1.5;
  vertical-align: middle;
}
.pony-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.45rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--cg-text);
  white-space: nowrap;
  user-select: none;
}
.pony-check input[type="checkbox"] {
  accent-color: var(--cg-sky);
  width: 0.95rem;
  height: 0.95rem;
  cursor: pointer;
}
.disc-field {
  position: relative;
}
.disc-toggle {
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.disc-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--cg-bg-card);
  border: 1px solid var(--cg-border);
  border-radius: 0.5rem;
  padding: 0.375rem;
  margin-top: 0.25rem;
  max-height: 14rem;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 10rem;
}
.disc-dropdown.open {
  display: block;
}
.disc-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--cg-text);
  transition: background-color 0.1s var(--cg-ease);
  white-space: nowrap;
}
.disc-option:hover {
  background: var(--cg-sky-light);
}
.disc-option input[type="checkbox"] {
  accent-color: var(--cg-sky);
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.venue-field {
  position: relative;
}
.venue-toggle {
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.venue-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--cg-bg-card);
  border: 1px solid var(--cg-border);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 14rem;
}
.venue-dropdown.open {
  display: flex;
  flex-direction: column;
}
.venue-search {
  padding: 0.4rem 0.5rem;
  border: none;
  border-bottom: 1px solid var(--cg-border);
  background: transparent;
  color: var(--cg-text);
  font-size: 0.8125rem;
  font-family: inherit;
  outline: none;
  border-radius: 0.5rem 0.5rem 0 0;
}
.venue-search::placeholder {
  color: var(--cg-text-muted);
}
.venue-options {
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.375rem;
}
.venue-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--cg-text);
  transition: background-color 0.1s var(--cg-ease);
  white-space: nowrap;
}
.venue-option:hover {
  background: var(--cg-sky-light);
}
.venue-option input[type="checkbox"] {
  accent-color: var(--cg-sky);
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.filter-actions {
  display: flex;
  gap: 0.5rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--cg-sky-light);
  color: var(--cg-sky);
  border: 1px solid rgba(0,122,255,0.25);
  border-radius: 1rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s var(--cg-ease);
  white-space: nowrap;
}
.filter-chip:hover {
  background: rgba(0,122,255,0.2);
  border-color: var(--cg-sky);
}
.filter-chip i {
  font-size: 0.8rem;
  opacity: 0.7;
}
.filter-chip:hover i {
  opacity: 1;
}
.event-training {
  border-left: 4px solid #F59E0B;
}
.event-venue-hire {
  border-left: 4px solid #9CA3AF;
}
.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--cg-border);
  border-radius: 9999px;
  background: var(--cg-bg-card);
  color: var(--cg-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s var(--cg-ease);
  white-space: nowrap;
}
.type-pill:hover {
  border-color: var(--cg-sky);
  color: var(--cg-sky);
}
.type-pill.active {
  background: var(--cg-sky);
  color: white;
  border-color: var(--cg-sky);
}
.type-pill.toggle-pill {
  background: transparent;
  color: var(--cg-text);
  border: 1px solid rgba(0,122,255,0.2);
}
.type-pill.toggle-pill:hover {
  border-color: rgba(0,122,255,0.4);
}
.type-pill.toggle-pill.active {
  background: var(--cg-sky-light) !important;
  color: var(--cg-sky) !important;
  border-color: rgba(0,122,255,0.25) !important;
  font-weight: 500;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--cg-text-muted);
}
.results-count strong {
  color: var(--cg-text);
}
.sort-control select {
  width: auto;
  padding: 0.3rem 0.5rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
}
.comp-list {
  background: var(--cg-bg-card);
  border: 1px solid var(--cg-border-card);
  border-radius: 0.75rem;
  overflow: hidden;
}
.date-separator {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cg-haze);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cg-text-muted);
  border-bottom: 1px solid var(--cg-border-card);
}
html[data-theme="light"] .date-separator {
  background: #f0f0f2;
}
.comp-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: var(--cg-text);
  border-bottom: 1px solid var(--cg-table-border);
  transition: background-color 0.15s var(--cg-ease);
  align-items: center;
}
.comp-item:last-child {
  border-bottom: none;
}
.comp-item:hover {
  background: var(--cg-table-hover);
}
.ci-date {
  width: 2.75rem;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.1;
}
.ci-day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cg-heading);
}
.ci-mon {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cg-text-muted);
}
.ci-range {
  display: block;
  font-size: 0.625rem;
  color: var(--cg-text-muted);
  margin-top: 0.125rem;
}
.ci-body {
  flex: 1;
  min-width: 0;
}
.ci-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cg-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
}
.ci-distance {
  font-size: 0.75rem;
  color: var(--cg-text-muted);
  white-space: nowrap;
}
.ci-distance i {
  font-size: 0.65rem;
}
.badge-disc {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.175rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid;
  white-space: nowrap;
  background: var(--cg-translucent);
  color: var(--cg-text-muted);
  border-color: var(--cg-border);
}
.badge-disc[data-disc="show-jumping"] {
  background: rgba(0,122,255,0.1);
  color: #007AFF;
  border-color: rgba(0,122,255,0.3);
}
.badge-disc[data-disc="dressage"] {
  background: rgba(175,82,222,0.1);
  color: #AF52DE;
  border-color: rgba(175,82,222,0.3);
}
.badge-disc[data-disc="eventing"] {
  background: rgba(48,209,88,0.1);
  color: #30D158;
  border-color: rgba(48,209,88,0.3);
}
.badge-disc[data-disc="cross-country"] {
  background: rgba(255,149,0,0.1);
  color: #FF9500;
  border-color: rgba(255,149,0,0.3);
}
.badge-disc[data-disc="hunter-trial"],
.badge-disc[data-disc="hunter-trials"] {
  background: rgba(205,133,63,0.1);
  color: #CD853F;
  border-color: rgba(205,133,63,0.3);
}
.badge-disc[data-disc="pony-club"] {
  background: rgba(88,86,214,0.1);
  color: #5856D6;
  border-color: rgba(88,86,214,0.3);
}
.badge-disc[data-disc="combined-training"] {
  background: rgba(0,199,190,0.1);
  color: #00C7BE;
  border-color: rgba(0,199,190,0.3);
}
.badge-disc[data-disc="drag-hunt"] {
  background: rgba(139,69,19,0.1);
  color: #8B4513;
  border-color: rgba(139,69,19,0.3);
}
.badge-disc[data-disc="showing"] {
  background: rgba(255,45,85,0.1);
  color: #FF2D55;
  border-color: rgba(255,45,85,0.3);
}
.badge-pony {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.175rem 0.5rem;
  border-radius: 1rem;
  background: rgba(255,149,0,0.1);
  color: #FF9500;
  border: 1px solid rgba(255,149,0,0.3);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s var(--cg-ease);
}
.badge-pony:hover {
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--cg-shadow-color);
}
.badge-tag-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.175rem 0.5rem;
  border-radius: 1rem;
  white-space: nowrap;
  border: 1px solid;
}
.badge-tag-type[data-type="competition"] {
  background: rgba(34,197,94,0.1);
  color: #22C55E;
  border-color: rgba(34,197,94,0.3);
}
.badge-tag-type[data-type="training"] {
  background: rgba(245,158,11,0.1);
  color: #F59E0B;
  border-color: rgba(245,158,11,0.3);
}
.badge-tag-type[data-type="venue-hire"] {
  background: rgba(168,85,247,0.1);
  color: #A855F7;
  border-color: rgba(168,85,247,0.3);
}
.badge-disc,
.badge-tag-type.clickable-tag {
  cursor: pointer;
  transition: all 0.15s var(--cg-ease);
}
.badge-disc:hover,
.badge-tag-type.clickable-tag:hover {
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--cg-shadow-color);
}
.badge-source {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 0.75rem;
  background: rgba(99,102,241,0.1);
  color: #6366F1;
  border: 1px solid rgba(99,102,241,0.3);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s var(--cg-ease);
}
.badge-source:hover {
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--cg-shadow-color);
}
html[data-theme="light"] .badge-source {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
}
.badge-venue {
  font-size: 0.75rem;
  color: var(--cg-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s var(--cg-ease);
}
.badge-ical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.2rem;
  border-radius: 0.375rem;
  color: var(--cg-text-muted);
  text-decoration: none;
  transition: all 0.15s var(--cg-ease);
}
.badge-ical:hover {
  color: var(--cg-accent);
  transform: translateY(-1px);
}
.comp-item[target="_blank"] .ci-name::after {
  content: "\F1C5";
  font-family: "bootstrap-icons";
  font-size: 0.6rem;
  margin-left: 0.35rem;
  opacity: 0.4;
  vertical-align: middle;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--cg-border);
  background: var(--cg-bg-card);
  color: var(--cg-text);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.15s var(--cg-ease);
}
.page-btn:hover:not(.disabled) {
  border-color: var(--cg-sky);
  color: var(--cg-sky);
  background: var(--cg-sky-light);
}
.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.page-info {
  font-size: 0.8125rem;
  color: var(--cg-text-muted);
  font-weight: 500;
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--cg-text-muted);
}
.empty-state .icon {
  font-size: 3rem;
  color: var(--cg-sky);
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state p:first-of-type {
  font-size: 1.1rem;
  color: var(--cg-text);
  margin-bottom: 0.25rem;
}
.app-footer {
  background: var(--cg-footer-bg);
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: var(--cg-translucent);
  padding: 1.5rem 1rem;
  margin-top: auto;
}
@media (max-width: 767px) {
  .content-container {
    padding: 0.5rem;
  }
  .header-nav {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .table th, .table td {
    padding: 0.5rem !important;
    font-size: 0.75rem;
  }
  .btn-sm {
    min-height: 2.25rem;
    min-width: 2.25rem;
    padding: 0.4rem 0.75rem;
  }
  .ci-name {
    font-size: 0.875rem;
  }
}
@media (min-width: 768px) {
  .comp-item {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 1rem;
  }
  .ci-date {
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
  }
  .ci-day {
    font-size: 0.9375rem;
  }
  .ci-mon {
    font-size: 0.75rem;
  }
  .ci-range {
    font-size: 0.6875rem;
    margin-top: 0;
  }
  .ci-name {
    display: block;
    -webkit-line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-font-weight: initial;
    }
  }
}
