/* OddsCat layout helpers layered atop DaisyUI */
:root {
  color-scheme: light dark;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--b1));
  color: hsl(var(--bc));
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: hsl(var(--p));
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: color-mix(in srgb, hsl(var(--p)) 80%, white);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.oc-muted {
  color: color-mix(in srgb, hsl(var(--bc)) 60%, hsl(var(--b1)) 40%);
}

.oc-text-pos {
  color: hsl(var(--su));
}

.oc-text-neg {
  color: hsl(var(--er));
}

.oc-text-center {
  text-align: center;
}

.oc-text-right {
  text-align: right;
}

.oc-container {
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 2.5rem;
  width: 100%;
}

.oc-stack {
  display: grid;
  gap: 1.5rem;
}

.oc-stack--sm {
  gap: 1rem;
}

.oc-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oc-card__head--compact {
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .oc-card__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .oc-card__head--compact {
    align-items: flex-start;
  }
}

.oc-card__title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  color: hsl(var(--bc));
}

.oc-card__sub {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, hsl(var(--bc)) 60%, hsl(var(--b1)) 40%);
}

.oc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.oc-gap-8 {
  gap: 2rem !important;
}

.oc-gap-12 {
  gap: 3rem !important;
}

.oc-gap-16 {
  gap: 4rem !important;
}

.oc-grid-2,
.oc-grid-3,
.oc-grid-2-lg {
  display: grid;
  gap: 1.25rem;
}

.oc-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .oc-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.oc-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .oc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .oc-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oc-grid-2-lg {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .oc-grid-2-lg {
    grid-template-columns: 1fr 2fr;
  }
}

.oc-form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .oc-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.oc-form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.oc-form-inline__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.oc-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.oc-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.oc-section {
  display: grid;
  gap: 1rem;
}

.oc-segment {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--rounded-box);
  border: 1px solid color-mix(in srgb, hsl(var(--b3)) 80%, transparent);
  background-color: hsl(var(--b1));
}

.oc-segment--soft {
  background-color: color-mix(in srgb, hsl(var(--b2)) 70%, transparent);
}

.oc-sep {
  height: 1px;
  background-color: color-mix(in srgb, hsl(var(--b3)) 75%, transparent);
}

.oc-hide {
  display: none !important;
}

.oc-only-mobile {
  display: inline-flex;
}

.oc-only-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .oc-only-mobile {
    display: none !important;
  }

  .oc-only-desktop {
    display: inline-flex !important;
  }
}

.oc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.oc-navbar--sticky {
  position: sticky;
  top: 0;
  z-index: 60;
}

.oc-shadow-sm {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.oc-nav--primary {
  position: fixed;
  inset: 4rem 0 auto 0;
  background-color: hsl(var(--b1));
  border-bottom: 1px solid color-mix(in srgb, hsl(var(--b3)) 80%, transparent);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#oc-mainmenu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .oc-nav--primary,
  #oc-mainmenu.is-open {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    gap: 0.5rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 0;
  }
}

.oc-table-wrap {
  overflow-x: auto;
}

.oc-table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.oc-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 23, 42, 0.65);
  padding: 1.5rem;
  z-index: 80;
}

.oc-modal-backdrop.is-open {
  display: flex;
}

.oc-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem 1.5rem;
  background: radial-gradient(circle at top, color-mix(in srgb, hsl(var(--p)) 18%, transparent) 0%, transparent 55%);
}

.oc-auth__card {
  width: min(100%, 26rem);
  text-align: center;
}

.oc-auth__logo img {
  width: 72px;
  margin-inline: auto;
}

.oc-auth__title {
  font-size: 1.5rem;
}

.oc-auth__subtitle,
.oc-auth__footer {
  color: color-mix(in srgb, hsl(var(--bc)) 55%, hsl(var(--b1)) 45%);
}

.oc-auth__footer {
  font-size: 0.85rem;
  margin-top: 1.25rem;
  text-align: center;
}

.oc-leg-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--rounded-box);
  border: 1px solid color-mix(in srgb, hsl(var(--b3)) 80%, transparent);
  background-color: hsl(var(--b1));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.oc-leg-card__actions {
  display: flex;
  gap: 0.5rem;
}

.oc-leg-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .oc-leg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.oc-leg-grid__wide {
  grid-column: 1 / -1;
}

.oc-row--pos {
  background-color: color-mix(in srgb, hsl(var(--su)) 12%, hsl(var(--b1)) 88%);
}

.oc-empty {
  text-align: center;
  color: color-mix(in srgb, hsl(var(--bc)) 55%, hsl(var(--b1)) 45%);
}

.oc-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.oc-kpi__label {
  font-size: 0.9rem;
  color: color-mix(in srgb, hsl(var(--bc)) 60%, hsl(var(--b1)) 40%);
}

.oc-kpi__value {
  font-size: 1.75rem;
  font-weight: 700;
}
