﻿:root {
  --header-glass: rgba(18, 26, 45, 0.55);
  --header-glass-hover: rgba(255, 255, 255, 0.95);
  --header-shadow: 0 20px 45px -25px rgba(9, 12, 23, 0.95);
  --brand-gradient: linear-gradient(135deg, #0EA5E9, #6366F1);
  --text-light: #F8FAFC;
  --text-dark: #0F172A;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(255, 255, 255, 0.7);
  --border-muted: rgba(148, 163, 184, 0.35);
  --accent: #0EA5E9;
  --accent-strong: #2563EB;
  --danger: #DC2626;
  --success: #22C55E;
  --shadow-soft: 0 18px 40px -30px rgba(15, 23, 42, 0.8);
  --radius-lg: 24px;
  --radius-full: 999px;
  --transition-fast: all 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Roboto', sans-serif;
  background: #0B172A;
  background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 45%),
                    radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.14), transparent 50%),
                    url('https://www.abuservice.hu/eservice/icons/hatter.webp');
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-light);
  padding-bottom: 90px;
}

a {
  color: #BAE6FD;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  line-height: 1.6;
}

.site-header {
  width: 100%;
  padding: 28px 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 50;
}

.site-header__inner {
  width: min(1220px, 94vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-brand {
  display: none;
}

.site-logo {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.site-tagline {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.7);
}

.menu-bar {
  display: flex;
  align-items: center;
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--header-shadow);
  flex-shrink: 0;
  overflow-x: auto;
}

.menu-bar ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.menu-bar li {
  position: relative;
}

.menu-bar__cta a {
  background: var(--brand-gradient);
  color: var(--text-light);
  box-shadow: var(--header-shadow);
  padding: 10px 20px;
}

.menu-bar__cta a:hover,
.menu-bar__cta a:focus-visible {
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -16px rgba(14, 165, 233, 0.8);
}

.menu-bar a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.menu-bar a:hover,
.menu-bar a:focus-visible {
  color: var(--text-dark);
  background: var(--header-glass-hover);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.38);
  transform: translateY(-1px);
}
.menu-bar li.is-active a {
  color: var(--text-dark);
  background: var(--header-glass-hover);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.38);
}

.site-header__account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.site-header__greeting {
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.75);
}

.button,
button,
input[type=submit],
input[type=button] {
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--brand-gradient);
  color: var(--text-light);
  box-shadow: 0 14px 30px -18px rgba(14, 165, 233, 0.8);
  border: none;
  position: relative;
  overflow: hidden;
}

.button:hover,
button:hover,
input[type=submit]:hover,
input[type=button]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -18px rgba(14, 165, 233, 0.75);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 26px -18px rgba(99, 102, 241, 0.65);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--text-dark);
  background: var(--header-glass-hover);
  box-shadow: 0 10px 28px -16px rgba(59, 130, 246, 0.55);
}

.button-danger {
  background: linear-gradient(135deg, #F87171, #DC2626);
  color: var(--text-light);
  box-shadow: 0 16px 32px -18px rgba(220, 38, 38, 0.9);
  border: none;
}

.button-danger:hover,
.button-danger:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -18px rgba(220, 38, 38, 0.75);
}

main {
  color: var(--text-light);
}

.container {
  max-width: min(95vw, 1200px);
  width: min(95vw, 1200px);
  width: fit-content;
  margin: 0 auto 48px;
  padding: 28px 32px;
  background: rgb(67 63 63 / 92%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.container--wide {
  max-width: min(1200px, 98vw);
  width: min(1200px, 98vw);
  width: 100%;
}

.cases-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cases-actions {
  display: flex;
  gap: 12px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.alert.success {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.alert.error {
  background: rgba(220, 38, 38, 0.22);
  color: #991B1B;
}

/* Form fields */
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: #f5f9ff;
  font-size: 1rem;
}

select {
  color: #f5f9ff;
}

select option,
select optgroup {
  background: #111827;
  color: #f5f9ff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.checkbox-wrapper-6 .tgl {
  display: none;
}
.checkbox-wrapper-6 .tgl,
.checkbox-wrapper-6 .tgl:after,
.checkbox-wrapper-6 .tgl:before,
.checkbox-wrapper-6 .tgl *,
.checkbox-wrapper-6 .tgl *:after,
.checkbox-wrapper-6 .tgl *:before,
.checkbox-wrapper-6 .tgl + .tgl-btn {
  box-sizing: border-box;
}
.checkbox-wrapper-6 .tgl + .tgl-btn {
  outline: 0;
  display: block;
  width: 4em;
  height: 2em;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.checkbox-wrapper-6 .tgl + .tgl-btn:after,
.checkbox-wrapper-6 .tgl + .tgl-btn:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}
.checkbox-wrapper-6 .tgl + .tgl-btn:after {
  left: 0;
}
.checkbox-wrapper-6 .tgl + .tgl-btn:before {
  display: none;
}
.checkbox-wrapper-6 .tgl:checked + .tgl-btn:after {
  left: 50%;
}
.checkbox-wrapper-6 .tgl-light + .tgl-btn {
  background: #f0f0f0;
  border-radius: 2em;
  padding: 2px;
  transition: all 0.4s ease;
}
.checkbox-wrapper-6 .tgl-light + .tgl-btn:after {
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
}
.checkbox-wrapper-6 .tgl-light:checked + .tgl-btn {
  background: #9FD6AE;
}

.case-list .table,
.settings-section .table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-muted);
}

.case-list .table th,
.case-list .table td,
.settings-section .table th,
.settings-section .table td {
  padding: 14px 16px;
  border: 1px solid var(--border-muted);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.432);
}

.case-list .table th,
.settings-section .table th {
  background: rgba(0, 0, 0, 0.404);
  font-weight: 600;
  color: var(--text-dark);
}

.case-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-actions form {
  display: inline;
}

.print-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.print-actions .button {
  width: 100%;
}

.entity-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-stack__primary {
  font-weight: 600;
}

.entity-stack__secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-card {
  min-height: 140px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  font-size: 1.3rem;
}

.stat-card__title {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-light);
}

.stat-card__counts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px -18px rgba(0, 0, 0, 0.55);
}

.stat-pill--open {
  background: linear-gradient(135deg, #34D399, #059669);
  color: #f5fff8;
}

.stat-pill--closed {
  background: linear-gradient(135deg, #94A3B8, #475569);
  color: #f8fbff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.case-type-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-type-badge__title {
  font-weight: 600;
}


.priority-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.priority-low {
  background: linear-gradient(135deg, #34D399, #059669);
}

.priority-normal {
  background: linear-gradient(135deg, #60A5FA, #2563EB);
}

.priority-high {
  background: linear-gradient(135deg, #F97316, #EA580C);
}

.priority-urgent {
  background: linear-gradient(135deg, #F87171, #DC2626);
}

.cases-toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cases-toolbar .form-field {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #00000038;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field--checkbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--checkbox label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.case-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px 20px;
  margin-bottom: 28px;
}

.case-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.case-form .form-section {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px -28px rgba(15, 23, 42, 0.8);
}

.case-form .form-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text-dark);
}

.case-view__grid .case-view__full {
  grid-column: 1 / -1;
}

.existing-files {
  margin-top: 12px;
}

.case-card__files {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.case-card__files li {
  margin-bottom: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  overflow-y: auto;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.modal-dialog {
  position: relative;
  width: min(760px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 35px 60px -45px rgba(15, 23, 42, 0.9);
  color: var(--text-dark);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: rgba(71, 85, 105, 0.75);
}

.modal-close:hover {
  color: var(--text-dark);
}

@media (max-width: 640px) {
  .modal-dialog {
    padding: 20px 16px;
    border-radius: 18px;
  }
}

.case-view__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.case-view__section {
  margin-bottom: 18px;
}

.case-view__section h4 {
  margin-bottom: 6px;
  color: var(--text-dark);
}

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 8px 32px -20px rgba(15, 23, 42, 0.8);
  color: var(--text-light);
}

.settings-section h3 {
  margin-bottom: 12px;
  color: var(--text-light);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-form--inline .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.settings-form textarea {
  resize: vertical;
}

.settings-form .form-grid__full {
  grid-column: 1 / -1;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.inline-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stats-card {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 14px;
  font-size: 0.9rem;
}

.stats-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text-light);
}


.customer-status {
  display: grid;
  gap: 28px;
}

.customer-status__card > h1 {
  margin-bottom: 0.6em;
}

.customer-status__card p {
  margin-bottom: 1em;
}

.token-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.token-form__row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.token-form input[type="text"] {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-form input[type="text"]::placeholder {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.status-card {
  display: grid;
  gap: 24px;
}

.status-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-card__header h2 {
  margin-bottom: 0.2em;
}

.status-card__token span {
  font-family: ''Roboto Mono'', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, ''Liberation Mono'', ''Courier New'', monospace;
  background: rgba(14, 165, 233, 0.14);
  color: #0F172A;
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.status-tag {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.16);
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.status-grid__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.18);
  min-height: 80px;
}

.status-grid__item .label {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-grid__item .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  word-break: break-word;
}

.status-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.status-details__block {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.status-details__block h3 {
  margin-bottom: 0.6em;
}

.status-details__block ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(226, 232, 240, 0.9);
}

.status-details__block li {
  margin-bottom: 6px;
}

.status-details__block p {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  white-space: pre-wrap;
}

.status-card__footer {
  padding: 16px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}@media (max-width: 1024px) {
  .site-header {
    padding: 22px 0;
  }
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .menu-bar {
    justify-content: center;
  }
  .menu-bar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .site-header__account {
    justify-content: center;
  }
  .container {
    max-width: min(96vw, 960px);
    width: min(96vw, 960px);
    width: fit-content;
    padding: 24px 22px;
  }
  .case-form .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .case-view__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 120px;
  }
  .site-header__inner {
    align-items: center;
    gap: 14px;
  }
  .menu-bar {
    width: 100%;
    padding: 6px 10px;
  }
  .menu-bar ul {
    flex-wrap: wrap;
    gap: 4px;
  }
  .menu-bar a {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  .menu-bar__cta {
    width: 100%;
  }
  .menu-bar__cta a {
    width: 100%;
    justify-content: center;
  }
  .token-form__row {
    flex-direction: column;
    align-items: stretch;
  }
  .token-form__row .button {
    width: 100%;
  }
  .site-header__account {
    width: 100%;
    justify-content: space-between;
  }
  .site-header__greeting {
    font-size: 0.85rem;
  }
  .button,
  .site-header__account .button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .container {
    max-width: 96vw;
    width: 96vw;
    width: fit-content;
    padding: 20px 16px;
    margin: 0 auto 28px;
  }
  .case-form .form-grid,
  .settings-form--inline .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .details-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .case-list {
    overflow-x: auto;
  }
  .case-list .table {
    min-width: 640px;
  }
  .settings-section {
    padding: 18px;
  }
  .site-footer {
    padding: 12px 0;
  }
  .site-footer__inner {
    padding: 0 16px;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .menu-bar a {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .button,
  .site-header__account .button {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .container {
    padding: 18px 14px;
  }
  .settings-form label,
  .inline-form label {
    font-size: 0.8rem;
  }
  .case-form .form-grid textarea,
  .case-form .form-grid input {
    font-size: 0.9rem;
  }
  .case-list .table th,
  .case-list .table td {
    font-size: 0.85rem;
  }
  .footer-slot {
    white-space: normal;
  }
}

.text-muted {
  color: rgba(71, 85, 105, 0.85);
}

.text-error {
  color: #B91C1C;
}

.ts-wrapper.multi .ts-control {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  min-height: 52px;
  padding: 4px;
}

.ts-wrapper .ts-control input {
  color: var(--text-dark);
}

.ts-wrapper.multi .ts-control .item {
  background: rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  margin: 4px;
  color: var(--text-dark);
}

.ts-wrapper .ts-dropdown {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.ts-dropdown .option,
.ts-dropdown .item {
  padding: 8px 14px;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: rgba(59, 130, 246, 0.14);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 0;
  display: flex;
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  color: rgba(248, 250, 252, 0.85);
  z-index: 40;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.site-footer__inner {
  width: min(97%, 95vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 3%;
}

.site-footer a {
  color: inherit;
}

.footer-slot {
  min-width: 0;
  white-space: nowrap;
}

.footer-slot--center {
  flex: 1;
  text-align: center;
}

.footer-slot--left,
.footer-slot--right {
  flex: 0 1 auto;
}

/* Parts selector tables */
.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}
.parts-table th,
.parts-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.parts-table thead th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}
.parts-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.parts-table input,
.parts-table button {
  height: 34px;
}
.parts-table .button {
  padding: 6px 10px;
}
.parts-search-results {
  margin-top: 8px;
}
.parts-toolbar {
  gap: 8px;
}
