/* RushMU UI - components: panels, buttons, forms, tables, tabs, alerts, modals, pagination.
   Same class names as before (the pages and scripts use them), new look. No images, no rounded corners, no shadows. */

/* ------------------------------------------------------------------ panels */
body.rm .panel,
body.rm #center .panel,
body.rm .modal__overlay .panel,
body.rm .big-panel,
body.rm .panel-bg-v2 {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  box-shadow: none;
  margin: 0 0 20px;
  overflow: visible;
  position: relative;
}

body.rm .panel-header,
body.rm #center .panel-header,
body.rm .modal__overlay .panel-header,
body.rm .big-panel-header {
  background: var(--rm-bg-2);
  background-image: none;
  height: auto;
  min-height: 42px;
  min-width: 0;
  padding: 0 16px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--rm-line-2);
  font: 600 17px/1.1 var(--rm-head);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

/* one gold square before every panel title: the only decoration the headers have */
body.rm .panel-header::before,
body.rm .big-panel-header::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--rm-gold);
}

body.rm .panel-header > div,
body.rm .panel-header .panel-title,
body.rm #center .panel-header .panel-title,
body.rm .modal__overlay .panel-header .panel-title {
  height: auto;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-transform: inherit;
  margin: 0;
}

body.rm .panel-header i {
  color: var(--rm-tx-3);
  font-size: 13px;
  margin-right: 8px;
}

body.rm .panel-content,
body.rm #center .panel-content,
body.rm .modal__overlay .panel-content,
body.rm .panel-bg-v2 .panel-content {
  background: none;
  background-image: none;
  border: 0;
  padding: 16px;
}

body.rm .big-panel-header {
  min-height: 42px;
}

body.rm .hallofFameTable {
  width: 100%;
}

/* section titles inside pages */
body.rm .section-title,
body.rm #content-container h1:first-of-type {
  font: 700 28px/1.1 var(--rm-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

body.rm #content-container h2 {
  font-size: 22px;
}

body.rm #content-container h3 {
  font-size: 18px;
}

/* ------------------------------------------------------------------ buttons */
body.rm .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font: 600 15px/1.1 var(--rm-head);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rm-tx);
  background: var(--rm-bg-3);
  border: 1px solid var(--rm-line-3);
  box-shadow: none;
  text-shadow: none;
  cursor: url('/assets/pointer.cur'), pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  text-decoration: none;
}

body.rm .btn:hover {
  border-color: var(--rm-gold-2);
  color: var(--rm-gold);
  background: var(--rm-bg-3);
}

body.rm .btn:active {
  background: var(--rm-bg-2);
}

body.rm .btn[disabled],
body.rm .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* primary = solid gold with two cut corners (the HUD frame shape) */
body.rm .btn-primary {
  background: var(--rm-gold);
  border-color: var(--rm-gold);
  color: #0e0f14;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

body.rm .btn-primary:hover {
  background: #dfe4f0;
  border-color: #dfe4f0;
  color: #0e0f14;
}

body.rm .btn-primary:active {
  background: var(--rm-gold-2);
}

body.rm .btn-secondary {
  background: none;
  border-color: var(--rm-line-3);
  color: var(--rm-tx-2);
}

body.rm .btn-success {
  background: var(--rm-ok-wash);
  border-color: var(--rm-ok);
  color: var(--rm-ok);
}

body.rm .btn-success:hover {
  background: var(--rm-ok);
  border-color: var(--rm-ok);
  color: #07150d;
}

body.rm .btn-danger {
  background: var(--rm-red-wash);
  border-color: var(--rm-red);
  color: var(--rm-red);
}

body.rm .btn-danger:hover {
  background: var(--rm-red);
  border-color: var(--rm-red);
  color: #170604;
}

body.rm .btn-warning,
body.rm .btn-info {
  background: var(--rm-gold-wash);
  border-color: var(--rm-gold-3);
  color: var(--rm-gold);
}

body.rm .btn-warning:hover,
body.rm .btn-info:hover {
  background: var(--rm-gold);
  color: #0e0f14;
}

body.rm .btn-sm,
body.rm .btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

body.rm .btn-lg {
  padding: 13px 26px;
  font-size: 18px;
}

body.rm .toggle-btn {
  background: none;
  border: 0;
  color: var(--rm-tx-2);
  padding: 0;
  font: 500 12px var(--rm-font);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.rm .toggle-btn:hover {
  color: var(--rm-gold);
  background: none;
}

body.rm .toggle-icon {
  display: none;
}

body.rm .toggle-container {
  margin: 0 0 8px;
  text-align: right;
}

/* ------------------------------------------------------------------ forms */
body.rm .form-input,
body.rm .form-control,
body.rm .select,
body.rm select,
body.rm textarea,
body.rm input[type='text'],
body.rm input[type='password'],
body.rm input[type='number'],
body.rm input[type='email'],
body.rm input[type='search'],
body.rm input[type='date'],
body.rm input[type='datetime-local'] {
  background: var(--input-bg);
  color: var(--rm-tx);
  border: 1px solid var(--rm-line-3);
  padding: 9px 11px;
  font: 400 14px/1.3 var(--rm-font);
  box-shadow: none;
  outline: 0;
  max-width: 100%;
}

body.rm .form-input::placeholder,
body.rm textarea::placeholder,
body.rm input::placeholder {
  color: var(--rm-tx-3);
}

body.rm .form-input:focus,
body.rm .form-control:focus,
body.rm .select:focus,
body.rm select:focus,
body.rm textarea:focus,
body.rm input:focus {
  border-color: var(--rm-gold);
  box-shadow: none;
  background: #101015;
}

body.rm .select,
body.rm select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--rm-tx-2) 50%), linear-gradient(135deg, var(--rm-tx-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: url('/assets/pointer.cur'), pointer;
}

body.rm select option {
  background: var(--rm-bg-1);
  color: var(--rm-tx);
}

body.rm input[type='checkbox'],
body.rm input[type='radio'] {
  accent-color: var(--rm-gold);
}

body.rm .form-label,
body.rm label {
  font: 600 12px/1.2 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
}

body.rm .form-group {
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------ tables */
body.rm .table,
body.rm table.table {
  width: 100%;
  border-collapse: collapse;
  background: none;
  color: var(--rm-tx);
  border: 0;
}

body.rm .table th,
body.rm .table thead td {
  padding: 9px 12px;
  font: 600 12px/1.2 var(--rm-head);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rm-line-3);
  text-align: left;
}

body.rm .table td {
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--rm-line);
  vertical-align: middle;
}

body.rm .table-striped tbody tr:nth-child(odd),
body.rm .table-striped tr:nth-child(odd) {
  background: none;
}

body.rm .table tbody tr:hover,
body.rm .table-striped tr:hover {
  background: var(--rm-bg-2);
}

body.rm .table-bordered td,
body.rm .table-bordered th {
  border: 1px solid var(--rm-line);
}

body.rm .table-sm td,
body.rm .table-sm th {
  padding: 5px 9px;
}

/* ------------------------------------------------------------------ alerts */
body.rm .alert {
  background: var(--rm-bg-2);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-tx-3);
  color: var(--rm-tx);
  padding: 11px 14px;
  margin: 0 0 14px;
  font-size: 13.5px;
}

body.rm .alert-info {
  border-left-color: var(--rm-cream);
}

body.rm .alert-success {
  border-left-color: var(--rm-ok);
  background: var(--rm-ok-wash);
}

body.rm .alert-warning {
  border-left-color: var(--rm-gold);
  background: var(--rm-gold-wash);
}

body.rm .alert-danger,
body.rm .alert-error {
  border-left-color: var(--rm-red);
  background: var(--rm-red-wash);
}

body.rm .info-danger {
  border-left: 3px solid var(--rm-red);
  background: var(--rm-red-wash);
  color: var(--rm-tx);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ tabs / pills */
body.rm .nav-pills,
body.rm .nav-pills-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid var(--rm-line-2);
}

body.rm .nav-pills .nav-link,
body.rm .nav-link {
  display: block;
  padding: 10px 16px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font: 600 15px/1 var(--rm-head);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
  cursor: url('/assets/pointer.cur'), pointer;
  transition: color 0.12s;
}

body.rm .nav-pills .nav-link:hover,
body.rm .nav-link:hover {
  background: none;
  color: var(--rm-tx);
  border-color: transparent;
  border-bottom-color: var(--rm-line-3);
}

body.rm .nav-pills .nav-link.active,
body.rm .nav-link.active,
body.rm .tab-nav.active {
  background: none;
  color: var(--rm-gold);
  border-color: transparent;
  border-bottom-color: var(--rm-gold);
}

body.rm .page-pills {
  justify-content: flex-start;
}

/* ------------------------------------------------------------------ pagination */
body.rm .page-link,
body.rm .pagination a,
body.rm .pagination button {
  display: inline-block;
  min-width: 34px;
  padding: 7px 10px;
  text-align: center;
  background: none;
  border: 1px solid var(--rm-line-3);
  font: 500 13px/1 var(--rm-mono);
  color: var(--rm-tx-2);
  margin-right: -1px;
}

body.rm .page-link:hover {
  background: var(--rm-bg-3);
  color: var(--rm-gold);
  border-color: var(--rm-gold-2);
  position: relative;
}

body.rm .page-item.active .page-link,
body.rm .page-link.active {
  background: var(--rm-gold);
  border-color: var(--rm-gold);
  color: #0e0f14;
}

/* ------------------------------------------------------------------ badges / small */
body.rm .badge {
  display: inline-block;
  padding: 2px 7px;
  font: 500 11px/1.4 var(--rm-mono);
  background: var(--rm-bg-3);
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx);
}

body.rm small,
body.rm .small {
  font-size: 12px;
}

body.rm code {
  font: 400 12.5px var(--rm-mono);
  background: var(--rm-bg-3);
  padding: 1px 5px;
  color: var(--rm-cream);
}

/* ------------------------------------------------------------------ modals (micromodal) */
body.rm .modal__overlay {
  background: rgba(6, 6, 8, 0.82);
}

body.rm .modal__container {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-3);
  border-top: 2px solid var(--rm-gold);
  box-shadow: none;
  color: var(--rm-tx);
}

body.rm .modal__header {
  border-bottom: 1px solid var(--rm-line-2);
  background: var(--rm-bg-2);
}

body.rm .modal__title {
  font: 600 19px/1.1 var(--rm-head);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

body.rm .modal__close {
  color: var(--rm-tx-2);
}

body.rm .modal__close:hover {
  color: var(--rm-gold);
}

body.rm .modal__footer {
  border-top: 1px solid var(--rm-line-2);
}

/* ------------------------------------------------------------------ select2 / tooltips / notiflix */
body.rm .select2-container--default .select2-selection--single,
body.rm .select2-container--default .select2-selection--multiple {
  background: var(--input-bg);
  border: 1px solid var(--rm-line-3);
  min-height: 38px;
}

body.rm .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--rm-tx);
  line-height: 36px;
}

body.rm .select2-dropdown {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-3);
}

body.rm .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--rm-gold);
  color: #0e0f14;
}

body.rm .tippy-box {
  background: var(--rm-bg-3);
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx);
  font-size: 12.5px;
}

body.rm .tippy-arrow {
  color: var(--rm-bg-3);
}

/* legacy zebra rows were !important: switched off */
body.rm .table tbody tr:nth-child(even),
body.rm .table tbody tr:nth-child(odd) {
  background-color: transparent !important;
}

body.rm .table tbody tr:hover {
  background-color: var(--rm-bg-2) !important;
}

body.rm .table thead th {
  position: static;
  background-color: transparent;
  color: var(--rm-tx-3);
}

/* inner content wrappers had a texture image */
body.rm .big-panel-content {
  background: none;
}

body.rm .big-panel > .big-panel-content {
  padding: 16px;
}

/* tables: hairlines between rows only, compact action buttons */
body.rm .table-bordered,
body.rm .table-bordered td,
body.rm .table-bordered th {
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

body.rm .table-bordered {
  border-bottom: 1px solid var(--rm-line);
}

body.rm .table td .btn,
body.rm .table td a.btn {
  padding: 6px 14px;
  font-size: 13px;
}

body.rm .table td,
body.rm .table th {
  padding-top: 8px;
  padding-bottom: 8px;
}
