/*
 * Fifty Fifty custom-module compatibility skin.
 *
 * These selectors cover the classes emitted by the nine existing custom
 * modules. They are deliberately rooted at .ff-legacy-module so they cannot
 * style Joomla articles, menus, login forms, or other module chrome.
 */

.ff-legacy-module {
  min-width: 0;
  max-width: 100%;
  color: var(--ff-text, #211d19);
  overflow-x: auto;
}

.ff-legacy-module .ff-inner-content,
.ff-legacy-module .ff-inner-content1,
.ff-legacy-module .ff-outer-content,
.ff-legacy-module .ff-outer-content1 {
  width: min(100%, 50rem) !important;
  max-width: 100% !important;
  margin-inline: auto;
  box-sizing: border-box;
}

.ff-legacy-module .ff-outer-content,
.ff-legacy-module .ff-outer-content1 {
  width: 100% !important;
}

.ff-legacy-module table {
  max-width: 100%;
  border-collapse: collapse;
}

.ff-legacy-module .tbl1,
.ff-legacy-module .tbl2,
.ff-legacy-module .tbl4,
.ff-legacy-module .tbl5,
.ff-legacy-module .stamtable {
  max-width: 100%;
}

.ff-legacy-module .tbl1,
.ff-legacy-module .tbl4,
.ff-legacy-module .tbl5,
.ff-legacy-module .voting {
  width: 100%;
}

.ff-legacy-module .tbl1 td,
.ff-legacy-module .tbl4 td,
.ff-legacy-module .tbl5 td,
.ff-legacy-module .voting td {
  padding-block: 0.3rem;
  border-bottom: 1px solid rgba(119, 107, 93, 0.3);
}

.ff-legacy-module .tbl5 td {
  border-top: 1px solid rgba(119, 107, 93, 0.3);
}

.ff-legacy-module .tbl2 {
  margin-left: 0.625rem;
}

.ff-legacy-module .tblRub1,
.ff-legacy-module .tblRub2,
.ff-legacy-module .tblRub3,
.ff-legacy-module .tblRub4 {
  font-size: 0.75rem;
  font-weight: 700;
}

.ff-legacy-module .tblRub1c1 { width: 10rem; }
.ff-legacy-module .tblRub1c2 { width: 6.25rem; }
.ff-legacy-module .tblRub1c3 { width: 5.625rem; }
.ff-legacy-module .tblRub1c4 { width: 6.25rem; }
.ff-legacy-module .tblRub1c5 { width: 7.5rem; }
.ff-legacy-module .tblRub1c6 { width: 6.25rem; }

.ff-legacy-module .tblRub2c1 { width: 7.5rem; }
.ff-legacy-module .tblRub2c2,
.ff-legacy-module .tblRub2c3,
.ff-legacy-module .tblRub2c4,
.ff-legacy-module .tblRub2c5,
.ff-legacy-module .tblRub2c6 {
  width: 4.375rem;
  text-align: center;
}

.ff-legacy-module .tblRub2c7 {
  width: 7.5rem;
  padding-right: 1.875rem;
  text-align: center;
}

.ff-legacy-module .tblRub2c8 { width: 5rem; }
.ff-legacy-module .tblVotingC1 { white-space: nowrap; }
.ff-legacy-module .tblVotingC7 { padding-right: 1.875rem; }

.ff-legacy-module .tbl5c1 { width: 9.375rem; }
.ff-legacy-module .tbl5c2x { padding-right: 1.25rem; }
.ff-legacy-module .tbl5c2x button {
  min-width: 4.375rem;
  padding: 0.125rem 0;
  font-size: 0.6875rem;
}

/* The custom modules use these small Bootstrap-compatible state classes.
   Keeping them here removes their former dependency on the old framework's
   global button stylesheet. */
.ff-legacy-module .btn {
  display: inline-block;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  color: #fff !important;
  background: #6c757d;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}

.ff-legacy-module .btn:hover,
.ff-legacy-module .btn:focus-visible {
  filter: brightness(0.92);
}

.ff-legacy-module .btn-success { background: #198754; border-color: #198754; }
.ff-legacy-module .btn-secondary { background: #6c757d; border-color: #6c757d; }
.ff-legacy-module .btn-warning { color: #1f1b16 !important; background: #ffc107; border-color: #ffc107; }
.ff-legacy-module .btn-danger { background: #dc3545; border-color: #dc3545; }

.ff-legacy-module .fa {
  display: inline-block;
  min-width: 1em;
  font-style: normal;
  text-align: center;
}

.ff-legacy-module .fa-check::before { content: "✓"; }
.ff-legacy-module .fa-question::before { content: "?"; }
.ff-legacy-module .fa-times-circle::before { content: "×"; }

.ff-legacy-module .ruta1 {
  float: left;
  width: min(100%, 24.375rem) !important;
  min-height: 25.8125rem;
  padding: 1.875rem;
  margin: 0 0.625rem 1.25rem 0;
  box-sizing: border-box;
  background: #f0f0f0;
}

.ff-legacy-module .ruta1_inner { min-width: 0; }
.ff-legacy-module .rutor_slut { clear: both; }
.ff-legacy-module .stamtable { width: 100%; }
.ff-legacy-module .storbild { display: block; max-width: 100%; margin-inline: auto; }

.ff-legacy-module .col1 { width: 6.25rem; }

.ff-legacy-module #voteBox,
.ff-legacy-module .manus,
.ff-legacy-module .paper,
.ff-legacy-module .scorePaper {
  width: min(100%, 43.75rem) !important;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(119, 107, 93, 0.45);
  border-radius: 0.25rem;
  box-shadow: 0 0.3rem 0.8rem rgba(20, 17, 13, 0.08);
}

.ff-legacy-module #voteBox,
.ff-legacy-module .manus {
  padding: 0.5rem;
  margin-bottom: 1.875rem;
}

.ff-legacy-module .paper,
.ff-legacy-module .scorePaper {
  min-height: 0;
  padding: 2.5rem 1.25rem;
  margin-bottom: 1.875rem;
}

.ff-legacy-module .repCol1,
.ff-legacy-module #repCol1 {
  width: min(100%, 21.875rem) !important;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.ff-legacy-module #repCol2,
.ff-legacy-module #repCol3,
.ff-legacy-module #repCol4,
.ff-legacy-module #repCol5 {
  max-width: 100%;
  box-sizing: border-box;
}

.ff-legacy-module .repBCol1,
.ff-legacy-module .repBCol2,
.ff-legacy-module .repBCol3,
.ff-legacy-module .repBCol4,
.ff-legacy-module .repBCol5 {
  max-width: 100%;
  box-sizing: border-box;
}

.ff-legacy-module .avbokat,
.ff-legacy-module .nedrostat {
  text-decoration: line-through !important;
}

.ff-legacy-module .nedrostat { color: #777; }
.ff-legacy-module .beslutat { background: #ccffcc; font-weight: 700; }
.ff-legacy-module .prel a { color: #777; }
.ff-legacy-module .prel a:hover { color: var(--ff-red-deep, #8c1717); }

.ff-legacy-module .allGreen {
  color: #087d28;
  font-weight: 700;
}

.ff-legacy-module .allGreen:hover { color: #0a0; }
.ff-legacy-module .partlyYellow { color: #b07800; }
.ff-legacy-module .partlyYellow:hover { color: #ca0; }

.ff-legacy-module .numberHover:hover {
  color: var(--ff-red-deep, #8c1717);
  cursor: default;
  background: #ccc;
}

.ff-legacy-module .valknapp {
  width: 4.375rem;
  padding: 0.125rem 0;
  font-size: 0.6875rem;
}

.ff-legacy-module .authorText,
.ff-legacy-module .titleText,
.ff-legacy-module .date,
.ff-legacy-module .lyricsDiv {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 60rem) {
  .ff-legacy-module .tbl1,
  .ff-legacy-module .tbl2,
  .ff-legacy-module .tbl4,
  .ff-legacy-module .tbl5,
  .ff-legacy-module .stamtable {
    min-width: 36rem;
  }

  .ff-legacy-module .tbl1 td,
  .ff-legacy-module .tbl4 td,
  .ff-legacy-module .tbl5 td,
  .ff-legacy-module .voting td {
    font-size: 1rem;
  }

  .ff-legacy-module .ruta1 {
    float: none;
    width: 100% !important;
    min-height: 0;
    margin-right: 0;
  }

  .ff-legacy-module .ff-inner-content1,
  .ff-legacy-module .ff-outer-content1 {
    width: 100% !important;
  }
}

@media (max-width: 34rem) {
  .ff-legacy-module .tbl1,
  .ff-legacy-module .tbl2,
  .ff-legacy-module .tbl4,
  .ff-legacy-module .tbl5,
  .ff-legacy-module .stamtable {
    min-width: 32rem;
  }

  .ff-legacy-module .paper,
  .ff-legacy-module .scorePaper {
    padding: 1.5rem 0.75rem;
  }

  .ff-legacy-module #repCol1,
  .ff-legacy-module #repCol2,
  .ff-legacy-module #repCol3,
  .ff-legacy-module #repCol4,
  .ff-legacy-module #repCol5 {
    width: 100% !important;
    padding-right: 0;
  }
}
