/*#6c8d37;*/
body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
  scroll-behavior: smooth;
}
body {
  background-color: #f8fafb;
}
.entry-page-nosmooth {
  scroll-behavior: auto !important;
}
.topfix {
  height: 50px;
  width: 100%;
  background-color: var(--main-color);
}
.navigation {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  background-color: var(--main-color);
  position: fixed;
  z-index: 999;
}
.navigation-ghost {
  position: relative;
  z-index: -1;
}
@media only screen and (max-width: 969px) {
  .navigation .left {
    display: none;
  }
}
@media only screen and (max-width: 969px) {
  .navigation .right {
    display: none;
  }
}
.navigation .mobile-title,
.navigation .mobile-title-all {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-weight: 500;
  width: 100%;
  height: 100%;
  text-align: center;
}
.navigation .mobile-title p,
.navigation .mobile-title-all p {
  margin: 0;
}
@media only screen and (min-width: 970px) {
  .navigation .mobile-title {
    display: none;
  }
}
.navigation .mobile-nav-icon {
  display: none;
  position: fixed;
  top: 0;
  right: 10px;
  width: 50px;
  height: 50px;
  color: var(--on-primary);
  font-size: 25px;
  line-height: 50px;
  text-align: center;
}
.navigation .mobile-nav-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.navigation ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
}
.navigation ul li {
  list-style-type: none;
  white-space: nowrap;
  padding: 15px 20px;
}
.navigation ul a {
  color: var(--on-primary);
  text-decoration: none;
}
.navigation ul a:hover,
.navigation ul a.active {
  background-color: rgba(0, 0, 0, 0.1);
}
.section {
  margin-top: 35px;
}
.container {
  max-width: 1150px;
  width: calc(100% - 50px);
  margin: 0 auto;
  padding: 0 25px;
}
@media only screen and (max-width: 767px) {
  .container {
    width: calc(100% - 30px);
    padding: 0 15px;
  }
}
.mobile-nav {
  position: fixed;
  bottom: 0;
  bottom: env(safe-area-inset-bottom);
  width: calc(100% - 30px);
  max-width: 500px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.mobile-nav-padding {
  height: 60px;
  height: calc(60px + env(safe-area-inset-top));
}
@media only screen and (min-width: 970px) {
  .mobile-nav-padding {
    display: none;
  }
}
@media only screen and (min-width: 970px) {
  .mobile-nav {
    display: none;
  }
}
.mobile-nav-with-toolbar {
  bottom: calc(env(safe-area-inset-bottom) + 40px);
}
@media only screen and (max-width: 969px), only screen and (max-width: 767px) {
  .mobile-nav-with-toolbar {
    bottom: env(safe-area-inset-bottom);
  }
}
.mobile-nav a {
  width: 100%;
  height: 60px;
  line-height: 50px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.8em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.mobile-nav a i {
  font-size: 1.5em;
  margin-bottom: 10px;
}
.mobile-nav a span {
  line-height: 1em;
}
.mobile-nav a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.mobile-nav a.active {
  color: #007aff;
  background-color: rgba(0, 0, 0, 0.05);
}
.mobile-nav a:first-of-type {
  border-radius: 10px 0 0 10px;
}
.mobile-nav a:last-of-type {
  border-radius: 0 10px 10px 0;
}
.footer-padding {
  width: 100%;
  height: 35px;
}
.footer {
  width: calc(100% - 50px);
  padding: 40px 25px;
  text-align: center;
  font-size: 0.8em;
  color: rgba(0, 0, 0, 0.5);
  background-color: #eeeeee;
}
.footer .socials {
  font-size: 2em;
  margin-bottom: 25px;
}
.footer .socials a {
  margin-right: 10px;
}
.footer .socials a:last-of-type {
  margin-right: 0;
}
/* Elements */
p {
  line-height: 1.5em;
}
form {
  max-width: 500px;
}
form.unlimited {
  max-width: 100% !important;
}
form .control {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}
form .control button {
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
}
form label {
  font-size: 0.85em;
  display: inline-block;
  padding-bottom: 5px;
}
form input[type=text],
form input[type=password],
form input[type=number],
form input[type=time],
form input[type=tel],
form select,
form textarea {
  background-color: #fff;
  border-color: #dbdbdb;
  color: #252525;
  width: calc(100% - (0.75em * 2));
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  align-items: center;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.375em;
  box-shadow: none;
  display: inline-flex;
  line-height: 1.5em;
  padding: calc(1em - 1px) calc(0.75em - 1px);
  margin: 0;
}
form select.oversize {
  font-size: 1.1em;
  width: 100%;
}
.progress_btn {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 16px;
  text-align: center;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.progress_btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  color: #ffffff;
}
.progress_btn.active-btn {
  cursor: pointer;
  color: #ffffff;
  background-color: var(--main-color) !important;
}
button {
  background-color: rgba(0, 0, 0, 0.5);
  border: 0;
  color: #ffffff;
  border-radius: 4px;
  padding: 8px;
  min-width: 75px;
}
button:hover {
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
ul.entities li {
  cursor: pointer;
}
ul.entities li:first-of-type {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
ul.entities li:last-of-type {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
ul.fixtures li:first-of-type,
ul.published li:first-of-type {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
ul.fixtures li:last-of-type,
ul.published li:last-of-type {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
ul.fixtures form:nth-child(odd),
ul.published form:nth-child(odd) {
  margin-bottom: 0;
}
ul.fixtures form:nth-child(odd) li,
ul.published form:nth-child(odd) li {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
ul.fixtures form:nth-child(even) li,
ul.published form:nth-child(even) li {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
ul.entities,
ul.fixtures {
  padding: 0;
  margin: 0;
}
ul.entities .wrap,
ul.fixtures .wrap {
  display: block;
}
ul.entities form,
ul.fixtures form {
  max-width: inherit;
  margin-bottom: 15px;
}
ul.entities form:last-of-type,
ul.fixtures form:last-of-type {
  margin-bottom: 0;
}
ul.entities input,
ul.fixtures input {
  max-width: 100px;
}
ul.entities li,
ul.fixtures li {
  padding: 20px 25px;
  list-style-type: none;
  background-color: rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
ul.entities li a,
ul.fixtures li a {
  text-decoration: none;
  color: inherit;
}
ul.entities li a:hover,
ul.fixtures li a:hover {
  color: #007aff;
}
ul.entities li:hover,
ul.fixtures li:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
a {
  text-decoration: none;
  color: inherit;
}
a:hover,
a.back-nav {
  color: #007aff;
}
/* Useful things */
.flexrow {
  display: flex;
  flex-direction: row;
}
ul.segmented-menu {
  padding: 0;
  margin: 0 0 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
ul.segmented-menu li {
  list-style-type: none;
  display: inline-block;
}
ul.segmented-menu li.active {
  color: #007aff;
}
.hover-danger:hover {
  color: #d3342f;
}
.logoutbutton {
  text-align: right;
}
.options {
  list-style-type: none;
}
.options li {
  padding: 5px 0;
}
table.scores {
  width: 100%;
  border-collapse: collapse;
}
table.scores td {
  text-align: center;
  padding: 5px;
}
table.scores td:first-of-type {
  padding-left: 10px;
}
table.scores tr {
  height: 30px;
}
table.scores tr td:first-of-type,
table.scores tr th:first-of-type {
  text-align: left;
}
table.scores tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.05);
}
table.scores tr:hover {
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
table.scores th.vertical {
  text-align: center;
  white-space: nowrap;
  transform-origin: 50% 50%;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
}
table.scores th.vertical:before {
  content: '';
  padding-top: 110%;
  /* takes width as reference, + 10% for faking some extra padding */
  display: inline-block;
  vertical-align: middle;
}
.tooltip {
  position: relative;
  border-bottom: 1px dotted black;
  /* If you want dots under the hoverable text */
  /* Tooltip text */
  /* Show the tooltip text when you mouse over the tooltip container */
}
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.699);
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
  width: 120px;
  bottom: calc(100% + 10px);
  left: 50%;
  margin-left: -60px;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
}
/* Move in to separate files later */
/******         INDEX            ******/
.hero {
  width: 100%;
  height: 350px;
  background-image: url('/static/assets/index_hero.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0px 11px 30px -10px rgba(0, 0, 0, 0.4), inset 0px -11px 30px -10px rgba(0, 0, 0, 0.4);
}
.hero span.herotext {
  font-size: 5em;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 15px #0000009c;
}
/*******        ACCOUNTS        ********/
.accounts .table-wrap .shadow,
.import .table-wrap .shadow {
  position: relative;
}
@media only screen and (max-width: 969px) {
  .accounts .table-wrap .shadow:after,
  .import .table-wrap .shadow:after {
    content: "";
    position: absolute;
    right: -1px;
    width: 25%;
    top: 0;
    bottom: 0;
    /*box-shadow: inset -7px 0 9px -7px #F8FAFB;*/
    box-shadow: inset -20px 0 9px -7px #F8FAFB;
    pointer-events: none;
  }
}
.accounts .table-wrap .table-scroll-wrap,
.import .table-wrap .table-scroll-wrap {
  position: relative;
  overflow-x: scroll;
  padding-right: 30px;
}
.accounts table,
.import table {
  background-color: #fff;
  border-radius: 5px;
  width: 100%;
  border-spacing: 0;
  background-color: 5px;
  white-space: nowrap;
}
.accounts table thead,
.import table thead {
  background-color: #EBF0FC;
  color: #3e3e3e;
  border-top-left-radius: 5px;
  overflow: hidden;
}
.accounts table thead th,
.import table thead th {
  padding: 10px 15px;
  font-size: 0.95em;
  text-align: left;
}
.accounts table td,
.import table td {
  font-size: 1em;
  padding: 8px 15px;
}
.accounts table tr:nth-child(even),
.import table tr:nth-child(even) {
  background-color: #f4f4f7;
}
.accounts table tr:hover,
.import table tr:hover {
  background-color: #EBF0FC;
}
.winners-board {
  margin: auto;
  max-width: 500px;
  border-radius: 8px;
}
.winners-board h3 {
  margin: 0;
}
.winners-board p {
  margin: 0;
}
.winners-board .cup-board {
  display: flex;
  flex-direction: row;
  text-align: left;
  padding: 10px;
}
.winners-board .cup-board i {
  font-size: 3.1em;
  color: #edc531;
  padding-right: 15px;
}
.winners-board .plate-board {
  display: flex;
  flex-direction: row;
  text-align: left;
  padding: 10px;
}
.winners-board .plate-board i {
  font-size: 3.1em;
  color: #dcdee5;
  padding-right: 15px;
}
.winners-grid {
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  row-gap: 20px;
  border-radius: 8px;
}
.winners-grid h3 {
  margin: 0;
}
.winners-grid p {
  margin: 0;
}
.winners-grid i.fa-trophy-alt {
  font-size: 3.1em;
  color: #edc531;
  padding-right: 15px;
}
.winners-grid i.fa-shield {
  font-size: 3.1em;
  color: #dcdee5;
  padding-right: 15px;
}
.prog {
  border-radius: 50%;
  height: 15px;
  width: 15px;
  display: inline-block;
  background-color: rgba(108, 141, 55, 0.8);
}
.prog_tbl {
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  width: 15px;
  background-color: rgba(108, 141, 55, 0.8) !important;
}
.noprog_tbl {
  display: inline-block;
  height: 15px;
  width: 15px;
  background-color: rgba(108, 141, 55, 0) !important;
}
table.score-entry {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #000;
}
table.score-entry input {
  width: 100%;
}
table.score-entry td {
  border: 1px solid #000;
  padding: 0;
  margin: 0;
  height: 30px;
}
table.score-entry td input {
  box-sizing: border-box;
  width: 100%;
  display: block;
  height: 100%;
  border: none;
}
table.score-entry td input[type=time] {
  height: auto;
}
table.score-entry td button {
  margin: 5px 0;
}
table.score-entry td,
table.score-entry td input {
  text-align: center;
}
table.score-entry .align-left {
  text-align: left;
}
table.score-entry .align-center {
  text-align: center;
}
table.score-entry .align-right {
  text-align: right;
}
.ko_progress {
  height: 18px;
  width: 18px;
  display: inline-block;
  background-color: green;
}
a.full-width {
  margin: 0 auto;
  display: block;
}
.poweredby {
  margin: 0 auto;
  max-width: 250px;
}
@media only screen and (min-width: 970px) {
  .level {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .level .align-right {
    text-align: left;
    margin-right: 30px;
  }
  .level .align-left {
    text-align: left;
  }
}
@media only screen and (max-width: 969px) {
  .level a.full-width {
    margin-top: 25px;
  }
}
.toggler {
  /* The switch - the box around the slider */
  /* Hide default HTML checkbox */
  /* The slider */
  /* Rounded sliders */
}
.toggler .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.toggler .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggler .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.toggler .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.toggler input:checked + .slider {
  background-color: #2196F3;
}
.toggler input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
.toggler input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.toggler .slider.round {
  border-radius: 34px;
}
.toggler .slider.round:before {
  border-radius: 50%;
}
.text-small {
  font-size: 0.8em;
}
.text-small-nopad {
  font-size: 0.8em;
  margin-top: 0;
  margin-bottom: 0;
}
.text-small-light {
  font-size: 0.8em;
  opacity: 0.5;
  margin-top: 0;
  margin-left: 5px;
  margin-bottom: 0;
}
.text-italic {
  font-style: italic;
}
.segmented-toggle {
  display: flex;
  max-width: 336px;
  width: calc(100% - 50px);
  user-select: none;
  -webkit-tap-highlight-color: var(--main-color);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  font-size: 0.75em;
  border: 1px solid var(--main-color);
  border-radius: 3px;
  color: #000;
}
.segmented-toggle > input {
  display: none;
}
.segmented-toggle > input:checked + label {
  color: #ffffff;
}
.segmented-toggle > input:nth-of-type(1):checked ~ label:last-of-type:before {
  transform: translateX(calc(0% + 0px));
}
.segmented-toggle > input:nth-of-type(2):checked ~ label:last-of-type:before {
  transform: translateX(calc(100% + 0px));
}
.segmented-toggle > input:nth-of-type(3):checked ~ label:last-of-type:before {
  transform: translateX(calc(200% + 0px));
}
.segmented-toggle label {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.segmented-toggle label:last-of-type:before {
  content: "";
  display: block;
  max-width: calc(33.33333333% - 0px);
  margin: 0px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  transform: translateX(0);
}
.segmented-toggle label {
  padding: 6px 3px;
  transition: color 250ms cubic-bezier(0, 0.95, 0.38, 0.98);
}
.segmented-toggle label:before {
  background: var(--main-color);
  transition: all 250ms cubic-bezier(0, 0.95, 0.38, 0.98);
}
.segmented-toggle label:not(:last-child) {
  border-right: 1px solid var(--main-color);
}
.popover-icon .popover-content {
  position: fixed;
  height: 200px;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.617);
  border-radius: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease-in-out;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.popover-icon .popover-content i {
  font-size: 4.5em;
  color: #2e9e4f;
  line-height: 1;
  padding: 0;
  margin: 0;
  text-align: center;
}
.popover-icon .popover-label {
  color: #fff;
  font-weight: 600;
  font-size: 1.15em;
}
table.times {
  margin: 0;
  padding: 0;
  width: 100%;
  border-collapse: collapse;
  border: 0;
  border-spacing: 0;
}
table.times tr {
  border-bottom: 1px solid #000;
}
table.times tr:last-of-type {
  border-bottom: 0;
}
table.times td {
  border: 0;
  font-size: 0.8em;
}
progress,
::-webkit-progress-bar {
  width: 100%;
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: lightgray;
  color: green;
  border: none;
}
popover-wrap * {
  touch-action: manipulation;
}
.poweredby {
  margin: 0 auto;
  max-width: 250px;
  min-width: 200px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  margin: 0 auto;
  user-select: none;
}
.toggle-checkbox-content {
  border: 1px solid #ccc;
  border-radius: 3px;
  display: inline-block;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 10px;
  background-color: #fff;
}
.toggle-checkbox-content:hover {
  cursor: default;
}
.tiles input[type=checkbox] {
  display: none;
}
.tiles input[type=checkbox]:checked + .toggle-checkbox-content {
  border: 2px solid #007aff;
  padding: 9px;
}
.toolbar-spacer {
  width: calc(100% - 30px);
  height: 30px;
  padding: 5px 15px;
  bottom: 0;
  left: 0;
  background-color: #eeeeee;
  color: #fff;
  z-index: -999;
}
@media only screen and (max-width: 969px), only screen and (max-width: 767px) {
  .toolbar-spacer {
    display: none;
  }
}
.toolbar {
  width: calc(100% - 30px);
  height: 30px;
  padding: 5px 15px;
  bottom: 0;
  left: 0;
  position: fixed;
  background-color: #3f4e5c;
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
@media only screen and (max-width: 969px), only screen and (max-width: 767px) {
  .toolbar {
    display: none;
  }
}
.toolbar .tools {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.toolbar .tool {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  line-height: 30px;
  margin-left: 15px;
  padding: 0 15px;
  border-radius: 4px;
}
.toolbar .tool:hover {
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.toolbar .tool.tool-assistant {
  background-color: var(--main-color);
  color: var(--on-primary);
}
.toolbar .tool.tool-assistant:hover {
  background-color: var(--main-color);
  filter: brightness(1.08);
}
.little-gap {
  margin-top: 1em;
  margin-bottom: 0;
}
.message {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px 25px;
  margin: 25px 0;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.message i {
  margin-right: 10px;
  font-size: 1.4em;
}
.message-error {
  background-color: rgba(201, 26, 26, 0.404);
  border-color: rgba(255, 255, 255, 0);
  color: rgba(0, 0, 0, 0.8);
}
.message-success {
  background-color: rgba(87, 201, 26, 0.404);
  border-color: rgba(255, 255, 255, 0);
  color: rgba(0, 0, 0, 0.8);
}
.message-info {
  background-color: rgba(26, 137, 201, 0.404);
  border-color: rgba(255, 255, 255, 0);
  color: rgba(0, 0, 0, 0.8);
}
.structure-wrap {
  width: 100%;
  overflow-y: scroll;
}
.structure-wrap .structure-container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  min-height: 100%;
}
.structure-wrap .column {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  margin-left: 25px;
}
.structure-wrap .column:first-of-type {
  margin-left: 0;
}
.structure-wrap table.progression {
  min-width: 250px;
  max-width: 250px;
  background-color: white;
  border: none;
  border-collapse: collapse;
}
.structure-wrap table.progression td {
  padding: 5px;
}
.structure-wrap table.progression td.spacer {
  border: none;
  background-color: #f8fafb;
}
.structure-wrap table.progression td.head {
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.1);
}
.structure-wrap table.progression td.head-no-first {
  padding-top: 1em;
}

/* Manage area sidebar (desktop only; mobile keeps the bottom nav) */
.manage-layout {
  display: flex;
  align-items: flex-start;
}
.manage-main {
  flex: 1;
  min-width: 0;
}
/* Inside the manage layout the sidebar already provides the left structure, so
   the content container should anchor to the left edge rather than auto-centre
   in the remaining space (which left a lopsided left/right gap). */
.manage-main .container {
  margin-left: 0;
  margin-right: auto;
}
.manage-sidebar {
  display: none;
}
@media only screen and (min-width: 970px) {
  /* Match the layout height to the sticky sidebar so a short page fills the
     viewport (footer sits at the bottom) instead of leaving a tall gap. */
  .manage-layout {
    min-height: calc(100vh - 50px);
  }
  .manage-sidebar {
    display: block;
    position: sticky;
    top: 50px;
    align-self: flex-start;
    flex-shrink: 0;
    width: 230px;
    /* Pin the sidebar full-height and let it scroll internally. It stays put as
       the main column scrolls; the sticky release lines its bottom up with the
       footer, so the two never overlap. */
    height: calc(100vh - 50px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px 0 90px;
    background-color: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
}
.manage-sidebar .sidebar-group {
  margin-bottom: 20px;
}
.manage-sidebar .sidebar-heading {
  margin: 0 0 6px;
  padding: 0 20px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.manage-sidebar a {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92em;
  color: #1f2937;
  text-decoration: none;
}
.manage-sidebar a i {
  width: 18px;
  text-align: center;
  color: #6b7280;
}
.manage-sidebar a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.manage-sidebar a.active {
  background-color: rgba(0, 0, 0, 0.07);
  font-weight: 600;
}
@supports (background-color: color-mix(in srgb, red 10%, transparent)) {
  .manage-sidebar a.active {
    background-color: color-mix(in srgb, var(--main-color) 12%, transparent);
    color: var(--main-color);
  }
  .manage-sidebar a.active i {
    color: var(--main-color);
  }
}

/* External-link indicator on sidebar entries that open a new tab */
.manage-sidebar a .sidebar-external {
  margin-left: auto;
  width: auto;
  font-size: 0.75em;
  color: #9ca3af;
}

/* Admin slide-out drawer (mobile replacement for the manage sidebar) */
@media only screen and (max-width: 969px) {
  .navigation .mobile-nav-icon.admin-drawer-toggle {
    display: block;
  }
}
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  box-sizing: border-box;
  padding: 0 0 90px;
  overflow-y: auto;
  background-color: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 1002;
}
body.admin-drawer-open .admin-drawer {
  transform: translateX(0);
}
.admin-drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1001;
}
body.admin-drawer-open .admin-drawer-backdrop {
  display: block;
}
body.admin-drawer-open {
  overflow: hidden;
}
.admin-drawer .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 8px;
}
.admin-drawer .drawer-head p {
  margin: 0;
  font-weight: 700;
}
.admin-drawer .drawer-close {
  color: #1f2937;
  font-size: 20px;
  text-decoration: none;
}
/* Inside the drawer the sidebar is always visible and flows normally,
   overriding both its mobile display:none and its desktop sticky layout */
.admin-drawer .manage-sidebar {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 0 0 10px;
  overflow: visible;
  border-right: none;
}
.admin-drawer .drawer-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92em;
  color: #b91c1c;
  text-decoration: none;
}
.admin-drawer .drawer-logout:hover {
  background-color: rgba(185, 28, 28, 0.08);
}
.admin-drawer .drawer-logout i {
  width: 18px;
  text-align: center;
}
/* ---- Event section tabs ---- */
.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}
.event-tabs .event-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 7px;
  color: #444;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.event-tabs .event-tab i {
  opacity: 0.7;
}
.event-tabs .event-tab:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #111;
}
.event-tabs .event-tab.active-tab {
  background-color: var(--main-color);
  color: #fff;
}
.event-tabs .event-tab.active-tab i {
  opacity: 1;
}
/* ---- Callouts (info / warning notes) ---- */
.callout {
  display: block;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.callout i:first-child {
  margin-right: 6px;
}
.callout-info {
  background-color: rgba(0, 122, 255, 0.07);
  border-color: rgba(0, 122, 255, 0.18);
  color: #1f3d57;
}
.callout-info i:first-child {
  color: #007aff;
}
.callout-warning {
  background-color: rgba(214, 158, 0, 0.1);
  border-color: rgba(214, 158, 0, 0.28);
  color: #6b4e00;
}
.callout-warning i:first-child {
  color: #c08a00;
}
.callout ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
/* ---- Teams list + per-team Actions menu ---- */
ul.team-list li {
  cursor: default;
  flex-wrap: wrap;
  gap: 10px;
}
.team-list .team-name {
  display: inline-block;
  flex: 1 1 240px;
  line-height: 1.5;
}
.team-list .team-name-sub {
  display: block;
  margin-left: 22px;
  font-size: 13px;
  opacity: 0.7;
}
.team-menu {
  position: relative;
  flex: 0 0 auto;
}
.team-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 7px;
  background-color: #fff;
  border: 1px solid #d0d7de;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.team-menu > summary::-webkit-details-marker {
  display: none;
}
.team-menu > summary::after {
  content: "\25be";
  opacity: 0.6;
}
.team-menu > summary:hover {
  border-color: var(--main-color);
  color: #111;
}
.team-menu[open] > summary {
  border-color: var(--main-color);
  color: #111;
}
.team-menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 230px;
  padding: 6px;
  background-color: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.team-menu-items form {
  margin: 0 !important;
  max-width: none !important;
}
.tm-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 7px;
  background-color: transparent;
  border: 0;
  color: #1f2328 !important;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.tm-item i {
  opacity: 0.7;
}
.tm-item:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #111 !important;
}
.tm-item.tm-danger:hover {
  background-color: rgba(211, 52, 47, 0.1);
  color: #d3342f !important;
}
.tm-item.tm-disabled {
  opacity: 0.5;
  cursor: default;
}
.tm-item.tm-disabled:hover {
  background-color: transparent;
}

/* ---- Event settings layout ---- */
.settings-head {
  margin-bottom: 4px;
}
.settings-subhead {
  margin-top: 28px;
  margin-bottom: 4px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.group-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.group-card {
  flex: 1 1 240px;
  min-width: 220px;
  background-color: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
}
.group-card h4 {
  margin: 0 0 10px;
  font-size: 0.95em;
}
.group-card-fields {
  display: flex;
  gap: 10px;
}
.group-card-fields .control {
  flex: 1 1 0;
  margin-bottom: 0;
}
.settings-save {
  margin-top: 20px;
  padding: 10px 18px;
}
@media (max-width: 700px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Secondary button + tie-break actions ---- */
.btn-secondary {
  background-color: #fff;
  color: #333;
  border: 1px solid rgba(10, 10, 10, 0.2);
}
.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.btn-small {
  min-width: 0;
  padding: 4px 12px;
  font-size: 0.85em;
}

/* ---- Manual tie-break (in modal) ---- */
.tb-current {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.tb-current-label {
  margin: 0 0 8px;
  font-size: 0.85em;
  font-weight: 600;
  color: #555;
}
.tb-holder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-holder-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.tb-holder-list li + li {
  border-top: 1px solid rgba(10, 10, 10, 0.06);
}
.tb-holder-list form {
  margin: 0;
}
.tb-holder-group {
  color: #777;
  font-size: 0.85em;
}
.tb-badge {
  display: inline-block;
  background-color: #c08a00;
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modal-overlay[hidden] {
  display: none;
}
.modal-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.modal-card h3 {
  margin: 0 0 8px;
}
.modal-lead {
  font-size: 0.9em;
  color: #444;
  line-height: 1.5;
  margin: 0 0 16px;
}
.modal-card .control {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.modal-card label {
  font-size: 0.85em;
  padding-bottom: 5px;
}
.modal-card input,
.modal-card select {
  background-color: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.375em;
  padding: calc(1em - 1px) calc(0.75em - 1px);
  line-height: 1.5em;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}
.modal-error {
  color: #d3342f;
  font-size: 0.9em;
  margin: 0 0 12px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ---- Device onboarding (roaming devices) ---- */
.add-device-btn {
  background-color: #007aff;
  color: #fff;
}
.add-device-btn:hover {
  background-color: #0069e0;
}
.settings-divider {
  border: none;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  margin: 22px 0 16px;
}
.device-stale-row {
  background-color: rgba(224, 108, 47, 0.09);
}
.device-stale {
  color: #c0522f;
  font-weight: 600;
  white-space: nowrap;
}
.wizard-card {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: 640px;
  max-height: 92vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: #888;
  font-size: 1.4em;
  line-height: 1;
  min-width: 0;
  padding: 4px 8px;
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover {
  background: none;
  color: #333;
}
.wizard-card h3 {
  padding-right: 30px;
  font-size: 1.35em;
}
/* Onboarding guidance is read aloud/followed with an operator standing there,
   so make the instructional text noticeably larger than the compact default. */
.wizard-card .modal-lead {
  font-size: 1.1em;
}
.wizard-card .callout {
  font-size: 1em;
}
.wizard-card .wizard-confirm {
  font-size: 1.1em;
}
.wizard-card label {
  font-size: 1em;
}
.wizard-card > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  /* Override the global `form { max-width: 500px }`, which otherwise clamps the
     wide modal's content to the left half. */
  max-width: none;
}
/* Scrollable body so the modal itself keeps a constant size while content
   changes between steps; the action row is pinned outside it. The horizontal
   padding keeps input focus rings and selected-tile borders from being clipped
   by the scroll container's edge. */
.wizard-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 6px;
  width: 100%;
  box-sizing: border-box;
}
.wizard-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 6px;
  width: 100%;
  box-sizing: border-box;
}
.wizard-step[hidden] {
  display: none;
}
.wizard-step:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.wizard-step .modal-actions {
  margin-top: auto;
  padding-top: 12px;
}
#demo-modal .demo-slide {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 6px;
  width: 100%;
  box-sizing: border-box;
}
#demo-modal .demo-slide[hidden] {
  display: none;
}
#demo-modal .demo-slide:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.wizard-progress,
.demo-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
}
.demo-progress {
  margin: 14px 0 4px;
}
.wizard-dot,
.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(10, 10, 10, 0.15);
  transition: background-color 0.2s;
}
.wizard-dot.active,
.demo-dot.active {
  background-color: #007aff;
}
.wizard-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95em;
  line-height: 1.4;
  cursor: pointer;
  padding: 12px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 8px;
}
/* The generic .modal-card input rule sets appearance:none, which hides the
   native tick - force a real checkbox back for this confirmation. */
.wizard-confirm input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  margin: 1px 0 0;
  border: 0;
  flex: 0 0 auto;
  cursor: pointer;
}
/* The wide modal shows the pitches as a 3-4 column grid. width:100% gives the
   grid a definite width so auto-fill resolves the column count (without it,
   inside the flex column, it collapses to a single column). */
#wizard-modal .tiles,
#edit-modal .tiles {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
/* The check-in choice leads the step, so give it a full-width, prominent tile
   with a green accent when selected (distinct from the blue pitch tiles). */
.checkin-tiles {
  grid-template-columns: 1fr !important;
}
.checkin-tile {
  border-width: 2px;
  padding: 14px 16px;
}
.checkin-tile i {
  color: #2e9e4f;
  margin-right: 4px;
}
.checkin-tiles input[type="checkbox"]:checked + .checkin-tile {
  border-color: #2e9e4f;
  background-color: rgba(46, 158, 79, 0.07);
  padding: 14px 16px;
}
.qr-inline {
  text-align: center;
  margin: 4px 0 12px;
}
.qr-inline img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* ---- Score-entry demo (mock UI) ---- */
.demo-screen {
  background-color: #f4f5f7;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 4px;
}
.demo-screen-dark {
  background-color: #1f2733;
  color: #fff;
  text-align: center;
}
.demo-muted {
  color: #777;
  font-size: 0.85em;
}
.demo-event-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
}
.demo-event-card + .demo-event-card {
  margin-top: 8px;
}
/* Mirror the real score-entry table: black-bordered grid, buttons fill the
   score cell with square corners. */
.demo-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #000;
  background-color: #fff;
}
.demo-table th,
.demo-table td {
  border: 1px solid #000;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.85em;
}
.demo-table td.demo-score-cell {
  padding: 0;
}
.demo-kickoff,
.demo-enter {
  display: block;
  width: 100%;
  color: #fff;
  padding: 14px 4px;
  font-size: 0.9em;
  font-weight: 600;
}
/* Match the real fixtures table: Kickoff is blue, Enter (score) is green. */
.demo-kickoff {
  background-color: #2d44aa;
}
.demo-enter {
  background-color: #6c8d37;
}
/* Score pad - mirrors the real score-entry popover. */
.demo-pad-title {
  color: #555;
  font-size: 0.95em;
  margin: 0 0 6px;
}
.demo-pad-team-name {
  font-weight: 700;
  font-size: 1.05em;
  margin-top: 12px;
}
.demo-pad-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0;
}
.demo-pad-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #007aff;
  font-size: 0;
}
.demo-pad-btn::before,
.demo-pad-btn.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 2px;
}
.demo-pad-btn::before {
  width: 20px;
  height: 4px;
}
.demo-pad-btn.plus::after {
  width: 4px;
  height: 20px;
}
.demo-pad-num {
  font-size: 2em;
  font-weight: 600;
  min-width: 40px;
}
.demo-pad-actions {
  display: flex;
  gap: 10px;
  max-width: 340px;
  margin: 14px auto 0;
}
.demo-signoff {
  flex: 1;
  background-color: #1f2733;
  color: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 0.9em;
}
.demo-submit {
  flex: 1;
  background-color: #2e9e4f;
  color: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 0.9em;
}
.demo-cancel {
  margin-top: 12px;
  color: #666;
  font-weight: 600;
}
.demo-tap {
  position: relative;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35);
  animation: demo-pulse 1.4s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.15);
  }
}

/* ---- Manage overview (landing page) ---- */
.manage-overview-intro {
  color: #555;
  margin-bottom: 18px;
}
.manage-group {
  margin-bottom: 26px;
}
.manage-group-title {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 10px;
}
.manage-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.manage-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 10px;
  color: #222;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.manage-card:hover {
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}
.manage-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(0, 122, 255, 0.08);
  color: #007aff;
  font-size: 1.05em;
}
.manage-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.manage-card-title {
  font-weight: 600;
}
.manage-card-desc {
  font-size: 0.82em;
  color: #777;
}
.manage-card-chev {
  color: #bbb;
  flex-shrink: 0;
}
.manage-card:hover .manage-card-chev {
  color: #007aff;
}
