#app #tickets {
  overflow: auto;
  display: grid;
  grid-gap: 2px;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

#ticket_settings {
  display: flex;
  background: var(--light-bg);
  margin: 2px 2px 0 2px;
}

#app .order_bets {
  padding: 3px 2px;
  margin: 2px 0px 2px 4px;
  width: calc(100% - 8px);
  border-radius: 2px;
  border: 1px solid var(--colour);
  background-color: var(--colour);
  color: var(--background);
}

#app .order_bets[disabled] {
  opacity: 0.8;
}

#app .order_bets:not([disabled]):hover {
  background: var(--title-bg);
  color: #fff;
    cursor: pointer;
}

#app .order_bets[valid='0'] {
  opacity: 0.8;
  cursor: default
}

#app .bet_error {
  text-align: center; color: red;
}

.clone_ticket {
  display: none;
}

/***
 *      _____  _______  ______ _______       _____   _____  _______ _____  _____  __   _ _______
 *     |_____] |______ |_____/ |  |  |      |     | |_____]    |      |   |     | | \  | |______
 *     |       |______ |    \_ |  |  |      |_____| |          |    __|__ |_____| |  \_| ______|
 *                                                                                              
 */

#app #perms {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--background);
  color: var(--colour);
}

#app #perms label {
  display: flex;
  align-items: center;
  padding: 0px 2px;
  width: 100%;
}

#app #perms input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

#app #perms .ticket_multipliers {
  display: flex;
}

#app #perms .ticket_multipliers label .ticket_multiplier {
  width: 20px;
  height: 20px;
  vertical-align: sub;
}

#app #perms .ticket_type_label {
  width: 36px;
  flex: 1;
}


/***
 *     _______ _____ _______ _     _ _______ _______ _______
 *        |      |   |       |____/  |______    |    |______
 *        |    __|__ |_____  |    \_ |______    |    ______|
 *                                                          
 */

#app #tickets .tickets_warn {
  text-align: center;
  width: 100%;
  margin: 10px 0 0 0;
  position: absolute;
}

#app #tickets .ticket {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  margin: 2px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  max-width: 230px;
  min-width: 165px;
  /* width: 100%; */
  position: relative;
}

#app #tickets .ticket .ticket_title {
  border-bottom: 2px solid var(--border-standard);
  padding: 0px 3px 2px 3px;
  margin: 0 0 2px 0;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--colour);
  display: flex;
  flex-direction: row;
}

#app #tickets .ticket .ticket_title_number {
  margin: 0 4px 0 0;
}

#app #tickets .ticket .ticket_title_type {
  flex: 1;
}

#app #tickets .ticket .ticket_title_cost {
  /* color: var(--ok); */
  font-size: 0.9em;
  letter-spacing: 0px;
  margin: 1px 0 0 0;
}

#app #tickets .ticket .ticket_lines .ticket_line {
  display: flex;
}

#app #tickets .ticket .ticket_lines .ticket_line .ticket_line_leg {
  /* font-weight: 700; */
  margin: 0 5px 0 0;
  font-variant-numeric: tabular-nums;
}

#app #tickets .ticket .ticket_lines .ticket_line .ticket_line_rns {
  letter-spacing: -1px;
}

#app #tickets .ticket .ticket_cost {
  color: var(--alert);
  text-align: center;
  font-weight: 700;
  margin: 2px 0 0 0;
  display: flex;
  justify-content: space-between;
}

#app #tickets .ticket .ticket_stake_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 0.8em;
  margin: 2px 0 0 0;
}

#app #tickets .ticket .ticket_stake {
  width:60px
}

#app .order_ticket {
  /* font-size: 0.9em; */
  padding: 2px 7px;
  /* margin: 0 2px 0 7px; */
  /* font-weight: 600; */
  background: var(--colour);
  color: var(--background);
  border-radius: 2px;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid var(--colour);
  white-space: nowrap;
  /* width: calc(100% - 10px); */
}

#app .order_ticket[disabled] {
  opacity: 0.8
}

#app .order_ticket:not([disabled]):hover {
  cursor: pointer;
  background: var(--title-bg);
  color: #ccc;
}

#app .order_ticket[disabled]:hover {
  cursor: default;
  background: var(--colour);
  color: #fff;
}

#app .order_ticket[valid='0']  {
  opacity: 0.8;
  cursor: default
}

#app #tickets .ticket .ticket_error {
  color: red;
  font-size: 13px;
  /* font-weight: 600; */
  text-align: center;
  text-transform: uppercase;
  /* letter-spacing: -1px; */
}

#app #tickets .ticket .waiting {
  background: #ffffff82;
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  top: 30px;
  left: 0;
  width: 100%;
  padding: 10px 0 0 0;
}

#app #tickets .ticket .waiting img {
  width: 50px;
  height: 50px;
  border: 4px solid #3c97858f;
  border-radius: 43px;
}