
/* EPBF Ref Schedule — compiled from assets/scss/app.scss (BitsButler-style) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a505c;
}

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

/* Public auth layout (BitsButler public-layout) */
.public-layout {
  background-size: cover;
  display: block;
  height: 100%;
  overflow: auto;
  width: 100%;
}

.public-layout .bg {
  position: fixed;
  background-image: linear-gradient(118deg, #3023ae, #c86dd7);
  left: 0;
  height: 100%;
  top: 0;
  width: 100%;
  z-index: -1;
}

.public-layout .content-box {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  margin: 0 auto;
  min-height: 100%;
  max-width: 560px;
  min-width: 560px;
}

@media (max-width: 767px) {
  .public-layout .content-box {
    min-width: 310px;
    width: 90%;
    margin: 0 auto;
  }
}

.public-layout .content-box .content-header {
  padding-top: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.public-layout .content-box .content-body {
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  margin-top: 2.85714rem;
  padding: 6.42857rem 7.14286rem;
  width: 100%;
}

@media (max-width: 767px) {
  .public-layout .content-box .content-body {
    padding: 2.14286rem;
    margin: 2.14286rem auto 0.71429rem;
  }
}

.logo .logo-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.logo-img {
  width: 112px;
  height: auto;
  max-width: 100%;
  vertical-align: top;
  display: block;
}

.title-block {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.85714rem;
  padding-left: 1.78571rem;
  width: 100%;
}

.title-block .form-title {
  color: #4a505c;
  font-size: 1.8em;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin: 0;
  line-height: 1.1;
}

.link {
  color: #4a505c;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
  padding-left: 1.78571rem;
}

.link--right {
  padding: 0 1.78571rem 0 0;
}

@media (max-width: 767px) {
  .link,
  .link--right {
    font-size: 0.9em;
    padding-left: 0;
    padding-right: 0;
  }

  .title-block {
    padding-left: 0;
  }
}

.link--muted {
  opacity: 0.4;
}

.link:hover {
  opacity: 1;
}

/* Form fields (Ant Design-like) */
.auth-form {
  width: 100%;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row--checkbox {
  margin-bottom: 1.25rem;
}

.checkbox-label,
.checkbox-label span {
  color: #4a505c;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.78571rem;
}

@media (max-width: 767px) {
  .checkbox-label {
    padding-left: 0;
  }
}

.input-affix {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 4px 11px;
  color: #4a505c;
  font-size: 14px;
  line-height: 1.5715;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  transition: border-color 0.3s, box-shadow 0.3s;
  align-items: center;
}

.input-affix:focus-within {
  border-color: #2fa7ff;
  box-shadow: 0 0 0 2px rgba(47, 167, 255, 0.2);
  outline: none;
}

.input-affix__prefix {
  display: flex;
  align-items: center;
  margin-right: 8px;
  color: rgba(0, 0, 0, 0.25);
}

.input-icon {
  font-size: 16px;
  width: 1em;
  height: 1em;
}

.input-affix__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  line-height: 1.5715;
  padding: 4px 0;
}

.input-affix__input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.form-row--actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.form-row--actions .link {
  padding-left: 0;
}

.btn {
  font-size: 14px;
  line-height: 1.5715;
  padding: 4px 15px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn--primary {
  color: #fff;
  background: #2fa7ff;
  border-color: #2fa7ff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
}

.btn--primary:hover {
  background: #57beff;
  border-color: #57beff;
}

.alert {
  margin-bottom: 1.25rem;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
}

.alert--error {
  background-color: #fff0f0;
  border: 1px solid #ffa3a5;
  color: #cf1322;
}

.muted {
  color: rgba(0, 0, 0, 0.45);
  padding-left: 1.78571rem;
  margin: 0;
}

@media (max-width: 767px) {
  .muted {
    padding-left: 0;
  }
}

/* Dashboard */
.page-dashboard {
  background: #f4f5f8;
  min-height: 100%;
}

.dashboard-top {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.dashboard-top__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-brand {
  font-weight: 600;
  color: #4a505c;
  text-decoration: none;
  font-size: 1.05rem;
}

.dashboard-brand:hover {
  color: #2fa7ff;
}

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.dashboard-nav a {
  color: #4a505c;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
  color: #2fa7ff;
  opacity: 1;
}

.dashboard-nav__logout {
  opacity: 0.65 !important;
}

.dashboard-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.dashboard-shell h1 {
  margin-top: 0;
  color: #4a505c;
  font-size: 1.65rem;
}

.dashboard-shell h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  color: #4a505c;
}

.dashboard-meta,
.dashboard-lead,
.dashboard-note {
  color: rgba(74, 80, 92, 0.9);
  line-height: 1.55;
}

.dashboard-note {
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8e8e8;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  border-color: rgba(47, 167, 255, 0.45);
  box-shadow: 0 4px 14px rgba(47, 167, 255, 0.12);
}

.dashboard-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #2fa7ff;
}

.dashboard-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(74, 80, 92, 0.85);
}

.form-message {
  padding: 0.65rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.form-message--ok {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #22543d;
}

.form-message--err {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #742a2a;
}

.stack-form {
  max-width: 28rem;
  margin-top: 1rem;
}

.stack-form__label {
  display: block;
  margin-bottom: 1rem;
}

.stack-form__label span {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #4a505c;
}

.stack-form input[type="text"],
.stack-form input[type="password"],
.stack-form input[type="number"],
.stack-form select {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  font: inherit;
  color: #4a505c;
  box-sizing: border-box;
}

.stack-form input:focus,
.stack-form select:focus {
  outline: none;
  border-color: #2fa7ff;
  box-shadow: 0 0 0 2px rgba(47, 167, 255, 0.2);
}

.btn--ghost {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 4px 15px;
  height: 40px;
  line-height: calc(40px - 8px);
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #4a505c;
  text-decoration: none;
  font-size: 14px;
  vertical-align: middle;
  box-sizing: border-box;
}

.btn-link {
  background: none;
  border: none;
  color: #c53030;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0;
}

.inline-form {
  display: inline;
  margin-left: 0.75rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #fafbfc;
  font-weight: 600;
  color: #4a505c;
}

.data-table__empty {
  color: rgba(74, 80, 92, 0.7);
  font-style: italic;
}

.data-table__actions {
  white-space: nowrap;
}

.data-table__actions a {
  color: #2fa7ff;
}

.dashboard-hint {
  font-size: 0.92rem;
  color: rgba(74, 80, 92, 0.9);
  margin: 0 0 0.75rem;
}

.dashboard-hint strong {
  font-weight: 600;
}

.small {
  font-size: 0.88rem;
}

.data-table--referees tbody tr[data-ref-id] {
  cursor: grab;
}

.data-table--referees tbody tr[data-ref-id]:active {
  cursor: grabbing;
}

.ref-row--dragging {
  opacity: 0.55;
  background: #f0f7ff !important;
}

.col-ref-order,
.col-ref-pos {
  width: 2.5rem;
  text-align: center;
  color: rgba(74, 80, 92, 0.65);
  font-variant-numeric: tabular-nums;
}

.col-ref-handle {
  width: 2rem;
  text-align: center;
  color: rgba(74, 80, 92, 0.45);
  user-select: none;
}

.ref-move-btns {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.ref-move-form {
  margin: 0;
  display: block;
}

.btn-sort {
  min-width: 2rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: #4a505c;
}

.btn-sort:hover:not(:disabled) {
  border-color: #2fa7ff;
  color: #2fa7ff;
}

.btn-sort:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ref-order-actions {
  margin: 0.75rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

