/* ===== Matches page ===== */

body.matches-page {
  background: #111827;
  color: #d1d5db;
}

/* ===== Desktop table polish ===== */

body.matches-page .matches-main {
  max-width: 1200px;
}

body.matches-page .matches-main h1 {
  color: #f9fafb;
}

body.matches-page .matches-table-wrapper {
  border: 1px solid #374151;
}

body.matches-page .matches-table {
  width: 100%;
}

body.matches-page .matches-table th {
  color: #f3f4f6;
  font-size: 14px;
  white-space: nowrap;
}

body.matches-page .matches-table td {
  color: #d1d5db;
  vertical-align: middle;
}

body.matches-page .matches-row {
  border-top: 1px solid #374151;
}

body.matches-page .matches-row:first-child {
  border-top: 0;
}

body.matches-page .matches-row:hover {
  background: #374151;
}

/* ===== Matches filters ===== */

body.matches-page .matches-filters {
  margin-bottom: 18px;
  padding: 14px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;

  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.matches-page .matches-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.matches-page .matches-filter-group label {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body.matches-page .matches-filter-group select,
body.matches-page .matches-filter-group input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 11px;

  color: #e5e7eb;
  background: #111827;
  border: 1px solid #4b5563;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  outline: none;
}

body.matches-page .matches-filter-group select {
  appearance: none;
  -webkit-appearance: none;

  padding-right: 34px;

  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

body.matches-page .matches-filter-group input[type="date"] {
  appearance: none;
  -webkit-appearance: none;

  display: block;
  position: relative;

  min-width: 0;
  max-width: 100%;
  overflow: hidden;

  color-scheme: dark;
  text-align: left;
}

body.matches-page .matches-filter-group input[type="date"]::-webkit-date-and-time-value {
  min-height: 20px;
  text-align: left;
}

body.matches-page .matches-filter-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.75;
  cursor: pointer;
  filter: invert(1);
}

body.matches-page .matches-filter-group input[type="date"]::-webkit-inner-spin-button,
body.matches-page .matches-filter-group input[type="date"]::-webkit-clear-button {
  display: none;
}

body.matches-page .matches-filter-group select:focus,
body.matches-page .matches-filter-group input:focus {
  border-color: rgba(168, 85, 247, 0.75);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

body.matches-page .matches-filter-apply,
body.matches-page .matches-filter-reset {
  width: 100%;
  min-height: 40px;
  padding: 9px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.matches-page .matches-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-width: 220px;
}

body.matches-page .matches-filter-actions .matches-filter-apply,
body.matches-page .matches-filter-actions .matches-filter-reset {
  width: 100%;
  min-width: 0;
}

body.matches-page .matches-filter-apply {
  background: #7c3aed;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.16);
}

body.matches-page .matches-filter-reset {
  background: #4b5563;
  border-color: rgba(156, 163, 175, 0.35);
}

body.matches-page .matches-filter-apply:hover {
  background: #6d28d9;
  border-color: rgba(196, 181, 253, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.22);
}

body.matches-page .matches-filter-reset:hover {
  background: #374151;
  border-color: rgba(156, 163, 175, 0.55);
  transform: translateY(-1px);
}


/* ===== Date filter placeholders ===== */

body.matches-page .matches-filter-group input[type="date"]:invalid,
body.matches-page .matches-filter-group input[type="date"].is-empty {
  color: #9ca3af;
}

body.matches-page .matches-filter-group input[type="date"]::-webkit-datetime-edit {
  color: inherit;
}

body.matches-page .matches-filter-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

body.matches-page .matches-filter-group input[type="date"]::-webkit-datetime-edit-text,
body.matches-page .matches-filter-group input[type="date"]::-webkit-datetime-edit-month-field,
body.matches-page .matches-filter-group input[type="date"]::-webkit-datetime-edit-day-field,
body.matches-page .matches-filter-group input[type="date"]::-webkit-datetime-edit-year-field {
  color: inherit;
}

/* ===== Date styling ===== */

body.matches-page .match-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ===== Supply type badges ===== */

body.matches-page .match-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 58px;
  padding: 5px 10px;

  border-radius: 999px;
  border: 1px solid transparent;

  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.matches-page .match-type-ng {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.34);
}

body.matches-page .match-type-ems {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(251, 113, 133, 0.34);
}

body.matches-page .match-type-spank {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(250, 204, 21, 0.34);
}

/* ===== Faction colors ===== */

body.matches-page .match-faction {
  font-weight: 900;
  letter-spacing: 0.02em;
}

body.matches-page .faction-gov {
  color: #7dd3fc;
}

body.matches-page .faction-lspd {
  color: #60a5fa;
}

body.matches-page .faction-lssd {
  color: #67e8f9;
}

body.matches-page .faction-fib {
  color: #a5b4fc;
}

body.matches-page .faction-ng {
  color: #6ee7b7;
}

body.matches-page .faction-saspa {
  color: #5eead4;
}

body.matches-page .faction-ems {
  color: #fda4af;
}

body.matches-page .faction-fam {
  color: #4ade80;
}

body.matches-page .faction-ballas {
  color: #c084fc;
}

body.matches-page .faction-vagos {
  color: #fde047;
}

body.matches-page .faction-marabunta {
  color: #38bdf8;
}

body.matches-page .faction-bloods {
  color: #f87171;
}

body.matches-page .faction-am {
  color: #fb7185;
}

body.matches-page .faction-rm {
  color: #fca5a5;
}

body.matches-page .faction-lcn {
  color: #fdba74;
}

body.matches-page .faction-yakuza {
  color: #d8b4fe;
}

body.matches-page .faction-mex {
  color: #bef264;
}

/* ===== Result colors ===== */

body.matches-page .match-result {
  font-weight: 900;
}

body.matches-page .match-result-win {
  color: #4ade80;
}

body.matches-page .match-result-lose {
  color: #f87171;
}

body.matches-page .match-result-afk {
  color: #facc15;
}

/* ===== Actions ===== */

body.matches-page .matches-actions {
  white-space: nowrap;
}

body.matches-page .matches-actions button {
  margin-right: 6px;
}

body.matches-page .matches-actions button:last-child {
  margin-right: 0;
}

/* ===== Empty rows ===== */

body.matches-page .matches-empty-cell {
  color: #9ca3af;
}

/* ===== Matches pagination ===== */

body.matches-page .matches-pagination {
  margin-top: 16px;
  padding: 12px 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.matches-page .matches-pagination-btn {
  min-width: 38px;
  min-height: 36px;
  padding: 8px 12px;

  color: #d1d5db;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 800;
  line-height: 1;

  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

body.matches-page .matches-pagination-btn:hover:not(:disabled) {
  color: #ffffff;
  background: #374151;
  border-color: #4b5563;
  transform: translateY(-1px);
}

body.matches-page .matches-pagination-btn.is-active {
  color: #ffffff;
  background: #7c3aed;
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.25);
}

body.matches-page .matches-pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.matches-page .matches-pagination-dots {
  min-width: 24px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

body.matches-page .matches-pagination-info {
  width: 100%;
  margin-top: 2px;

  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ===== Mobile cards ===== */

@media (max-width: 768px) {
  body.matches-page {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.matches-page * {
    box-sizing: border-box;
  }

  body.matches-page .matches-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 12px !important;
  }

  body.matches-page .matches-page-heading,
  body.matches-page .matches-main > .flex.justify-between {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  body.matches-page .matches-page-heading .game-btn,
  body.matches-page .matches-main > .flex.justify-between .game-btn {
    width: 100%;
    min-height: 44px;
    transform: none !important;
  }

  body.matches-page .matches-main h1 {
    width: 100%;
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  body.matches-page .matches-filters {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  body.matches-page .matches-filter-group {
    width: 100%;
    min-width: 0;
  }

  body.matches-page .matches-filter-group label {
    font-size: 12px;
    line-height: 1.15;
  }

  body.matches-page .matches-filter-group select,
  body.matches-page .matches-filter-group input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 700;
  }

  body.matches-page .matches-filter-group input[type="date"] {
    min-height: 42px;
    padding: 8px 8px;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  body.matches-page .matches-filter-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
  }

  body.matches-page .matches-filter-actions {
    width: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body.matches-page .matches-filter-apply,
  body.matches-page .matches-filter-reset {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: auto !important;
  }

  body.matches-page .matches-filter-apply + .matches-filter-reset,
  body.matches-page .matches-filter-reset + .matches-filter-apply {
    margin-top: 0 !important;
  }

  body.matches-page .matches-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body.matches-page .matches-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  body.matches-page .matches-table thead {
    display: none !important;
  }

  body.matches-page .matches-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.matches-page .matches-table tbody tr.matches-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    margin: 0 !important;
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2) !important;
  }

  body.matches-page .matches-table tbody tr.matches-row:hover {
    background: #1f2937 !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td {
    display: grid !important;
    grid-template-columns: minmax(92px, 38%) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;
    padding: 7px 0 !important;

    border-bottom: 1px solid #374151 !important;

    color: #d1d5db !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: right !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td::before {
    content: attr(data-label) !important;

    width: auto !important;
    max-width: none !important;
    flex: none !important;

    color: #9ca3af !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  body.matches-page .match-date {
    justify-content: flex-end;
    color: #e5e7eb;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: right;
    white-space: normal !important;
  }

  body.matches-page .match-type {
    justify-self: end;
    min-width: 54px;
    padding: 5px 9px;
    font-size: 11px;
  }

  body.matches-page .match-result {
    justify-self: end;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  body.matches-page .matches-participants-list {
    width: 100%;
    max-width: 100%;

    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;

    text-align: right;
  }

  body.matches-page .match-faction {
    display: inline-flex;
    font-size: 13px;
    line-height: 1.2;
  }

  body.matches-page .matches-table tbody tr.matches-row td.matches-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td.matches-actions::before {
    max-width: 100% !important;
    flex: none !important;
    margin-bottom: 2px !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td.matches-actions button {
    width: 100% !important;
    min-height: 38px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  body.matches-page .matches-pagination {
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding: 10px 0;
  }

  body.matches-page .matches-pagination-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 9px;
  }

  body.matches-page .matches-pagination-info {
    font-size: 11px;
  }

  body.matches-page #edit-modal,
  body.matches-page #add-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 16px 12px;
    overflow-y: auto;
  }

  body.matches-page #edit-modal > div,
  body.matches-page #add-modal > div {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 20px !important;
    border-radius: 16px;
  }

  body.matches-page #edit-modal h2,
  body.matches-page #add-modal h2 {
    font-size: 22px !important;
    margin-bottom: 18px !important;
  }

  body.matches-page #edit-form .grid,
  body.matches-page #add-form .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.matches-page #edit-form select,
  body.matches-page #edit-form input,
  body.matches-page #edit-form textarea,
  body.matches-page #add-form select,
  body.matches-page #add-form input,
  body.matches-page #add-form textarea {
    min-height: 44px;
    font-size: 16px !important;
  }

  body.matches-page #edit-form .flex.justify-end,
  body.matches-page #add-form .flex.justify-end {
    flex-direction: column-reverse;
    gap: 10px;
  }

  body.matches-page #edit-form .flex.justify-end > *,
  body.matches-page #add-form .flex.justify-end > * {
    width: 100%;
    margin-left: 0 !important;
    min-height: 44px;
  }

  body.matches-page .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    text-align: center;
  }
}

/* ===== XS iPhone compact fix ===== */

@media (max-width: 430px) {
  body.matches-page .matches-main {
    padding: 14px 10px !important;
  }

  body.matches-page .matches-main h1 {
    font-size: 22px !important;
  }

  body.matches-page .matches-filters {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    gap: 9px !important;
  }

  body.matches-page .matches-filter-group label {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body.matches-page .matches-filter-group select,
  body.matches-page .matches-filter-group input {
    min-height: 40px !important;
    padding: 8px 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 9px !important;
  }

  body.matches-page .matches-filter-group select {
    padding-right: 28px !important;
    background-position:
      calc(100% - 15px) 50%,
      calc(100% - 10px) 50%;
  }

  body.matches-page .matches-filter-group input[type="date"] {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }

  body.matches-page .matches-filter-group input[type="date"]::-webkit-date-and-time-value {
    min-width: 0 !important;
    text-align: left !important;
  }

  body.matches-page .matches-filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    width: 16px !important;
    height: 16px !important;
    margin-left: 4px !important;
    padding: 0 !important;
  }

  body.matches-page .matches-filter-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.matches-page .matches-filter-apply,
  body.matches-page .matches-filter-reset {
    display: flex !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    border-radius: 9px !important;
    margin: 0 !important;
    grid-column: auto !important;
  }

  body.matches-page .matches-filter-apply + .matches-filter-reset,
  body.matches-page .matches-filter-reset + .matches-filter-apply {
    margin-top: 0 !important;
  }

  body.matches-page .matches-table tbody {
    gap: 8px !important;
  }

  body.matches-page .matches-table tbody tr.matches-row {
    padding: 10px 12px !important;
    border-radius: 13px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td {
    grid-template-columns: minmax(78px, 34%) minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td::before {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.matches-page .match-date {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.matches-page .match-faction {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body.matches-page .matches-participants-list {
    gap: 4px !important;
  }

  body.matches-page .match-type {
    min-width: 48px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  body.matches-page .match-result {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td.matches-actions {
    gap: 6px !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td.matches-actions button {
    min-height: 34px !important;
    font-size: 12px !important;
  }

  body.matches-page .matches-pagination {
    gap: 5px !important;
    padding: 10px 0 4px !important;
  }

  body.matches-page .matches-pagination-btn {
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  body.matches-page .matches-pagination-info {
    font-size: 11px !important;
  }
}

/* ===== Very narrow iPhone fix ===== */

@media (max-width: 375px) {
  body.matches-page .matches-main {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.matches-page .matches-filters {
    grid-template-columns: 1fr !important;
    padding: 9px !important;
    gap: 8px !important;
  }

  body.matches-page .matches-filter-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.matches-page .matches-filter-apply,
  body.matches-page .matches-filter-reset {
    display: flex !important;
    grid-column: auto !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.matches-page .matches-filter-apply + .matches-filter-reset,
  body.matches-page .matches-filter-reset + .matches-filter-apply {
    margin-top: 0 !important;
  }

  body.matches-page .matches-filter-group input[type="date"] {
    font-size: 13px !important;
    letter-spacing: 0 !important;
  }

  body.matches-page .matches-table tbody tr.matches-row {
    padding: 9px 10px !important;
  }

  body.matches-page .matches-table tbody tr.matches-row td {
    grid-template-columns: minmax(72px, 32%) minmax(0, 1fr) !important;
  }
}

/* ===== Hard fix for filter buttons spacing ===== */

body.matches-page .matches-filters > .matches-filter-apply,
body.matches-page .matches-filters > .matches-filter-reset,
body.matches-page .matches-filter-actions > .matches-filter-apply,
body.matches-page .matches-filter-actions > .matches-filter-reset {
  display: flex !important;
  width: 100% !important;
  min-height: 40px;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  body.matches-page .matches-filters > .matches-filter-apply,
  body.matches-page .matches-filters > .matches-filter-reset,
  body.matches-page .matches-filter-actions > .matches-filter-apply,
  body.matches-page .matches-filter-actions > .matches-filter-reset {
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
  }

  body.matches-page .matches-filters > .matches-filter-apply + .matches-filter-reset,
  body.matches-page .matches-filters > .matches-filter-reset + .matches-filter-apply,
  body.matches-page .matches-filter-actions > .matches-filter-apply + .matches-filter-reset,
  body.matches-page .matches-filter-actions > .matches-filter-reset + .matches-filter-apply {
    margin-top: 0 !important;
  }
}