/* ----- Text ----- */
@font-face {
  font-family: "montserrat-regular";
  src: url("../lib/webfonts/montserrat-regular.ttf") format("truetype");
}
p,
label {
  padding: 0px;
  margin: 0px;
  font-size: 1.8em;
}
h1 {
  margin: 5px;
  font-size: 2.6em;
}
.box1 h1:nth-of-type(2) {
  margin: 15px 5px 5px 5px;
}
hr {
  border-top: 1px solid #ededef;
}
.payment {
  color: #fd7e14;
}

/* ----- Structure ----- */
html {
  background-color: #ededef;
  font-family: "montserrat-regular", sans-serif;
  margin: 0px;
  padding: 0px;
  font-size: 62.5%;
  overflow: hidden;
}
body {
  padding: 3px;
}
body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus,
body:not(.user-is-tabbing) textarea:focus {
  outline: none;
}
#wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 1em;
}
.navigation {
  padding: 0px;
  margin: -10px 0 -10px 0;
  grid-column: 1/4;
  text-align: center;
}
.box1 {
  grid-column: 1/4;
  grid-row: 2/4;
  border-radius: 5px;
  background-color: #fff;
  padding: 10px;
  height: 89vh;
}
.box2 {
  border-radius: 5px;
  background-color: #fff;
  padding: 10px 10px 0 10px;
  text-align: center;
  height: 230px;
}
.box3 {
  border-radius: 5px;
  background-color: #fff;
  padding: 10px;
  text-align: center;
  grid-row: 2/5;
  position: relative;
}
.box3 > .box-a {
  text-align: left;
}
.box4 {
  display: grid;
  grid-template-rows: 230px 1fr 1fr;
  grid-row: 2/4;
  grid-gap: 2em;
}
.category {
  display: grid;
  grid-template-columns: 7.5% 91.5%;
  border: 2px solid #ededef;
  padding: 5px 5px 5px 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  margin: -1px 0;
}
#settingReports {
  border: 2px solid #ededef;
  padding: 5px 10px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  margin: -5px 0;
}
.balance {
  border: 2px solid #ededef;
  padding: 5px 5px 5px 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  margin: -1px 0;
}
.keyboard {
  display: grid;
  grid-template-columns: 72% 28%;
}
.keyboard-letters {
  grid-column: 1/2;
  text-align: right;
  padding-right: 3px;
}
.keyboard-numbers {
  text-align: left;
}
footer {
  font-size: 1.2em;
  margin-top: 7px;
}
.btn-subcategory {
  border: 0px solid #fff;
  background: none;
  padding: 22.5px 12.5px;
  margin: 5px 5px 5px 0;
  font-size: 2.4em;
  color: #5ebd74;
  background-color: #fff;
}
.sub-category {
  text-align: center;
  margin-left: -5px;
}

/* ----- Forms ----- */
textarea:focus,
input:focus {
  outline: none;
}
input[type="text"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 2px solid #ededef;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1.8em;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-with-icon input[type="text"],
.input-with-icon input[type="number"] {
  padding-left: 40px;
}
.input-with-icon {
  position: relative;
}
.input-with-icon i {
  position: absolute;
  left: 10px;
  top: 39%;
  padding: 9px 8px;
  color: #aaa;
  transition: 0.3s;
}
.box-a input[type="number"] {
  text-align: center;
}
.input-prepend {
  display: inline;
  font-size: 1em;
}
.input-no-style {
  border: none;
  font-size: 1em;
  width: 70px;
  font-family: "montserrat-regular";
  background-color: rgba(0, 0, 0, 0);
}
#loginUsername {
  font-size: 2em;
  width: auto;
  color: #6f42c1;
  text-align: right;
  padding-top: 10px;
  padding-right: 150px;
}
#inputUsername {
  background: transparent;
  z-index: 99999;
  position: relative;
}
#nameSearch {
  background: transparent;
  border: none;
  position: absolute;
  top: 24px;
  left: 2px;
  z-index: 1;
  color: #bdbfc2;
}
#inputUsernumber {
  display: inline;
}
#btn-clearUser {
  position: absolute;
  margin-top: 20px;
  margin-left: -35px;
  font-size: 2.3em;
}
.btn-textuser {
  border-radius: 5px;
  font-size: 1.2em;
}

/* ----- Tables ----- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 10px 0;
  /*    overflow: auto;*/
}
th,
td {
  text-align: left;
  padding: 8px;
  font-size: 1.8em;
}

.box3 table td:nth-last-of-type(1) {
  width: 12.5%;
}
.box3 table td:nth-last-of-type(2) {
  width: 17.5%;
}
.box3 tr:nth-child(even) {
  background-color: #f2f2f2;
}
.box2 th {
  width: 10%;
}
#table > tbody {
  display: block;
  height: 150px;
  overflow: auto;
}
#table > thead,
#table > tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
#table > tfoot tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
#table > tfoot th,
#table > tfoot td {
  padding-top: 5%;
  width: 13%;
}
#totalPrice {
  margin-top: 2%;
}
table#memberDetails td {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
/* ----- Buttons ----- */
.btn-navigation,
.btn-group,
.btn-checkout,
.btn-settings,
.btn-textuser {
  border: 1px solid #9371d1;
  background: none;
  background-color: #9371d1;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}
.btn-navigation {
  padding: 10px 20px;
  font-size: 2.8em;
  margin: 10px -3px 0 0;
}
.navigation .btn-navigation:nth-of-type(1) {
  border-top-left-radius: 5px;
}
.navigation .btn-navigation:nth-last-of-type(1) {
  border-top-right-radius: 5px;
}
.btn-group {
  padding: 8px 15px;
  font-size: 2.6em;
  margin: 5px -3px 0 0;
}
.box1 .btn-group:nth-of-type(1) {
  border-top-left-radius: 5px;
}
.box1 .btn-group:nth-last-of-type(1) {
  border-top-right-radius: 5px;
}
.btn-active {
  background-color: #6f42c1 !important;
  border-color: #6f42c1 !important;
}
.btn-active-sub {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}
.btn-checkout {
  padding: 10px 15px;
  margin: 5px 5px 5px 0;
  font-size: 2.4em;
  cursor: pointer;
}
.btn-settings {
  padding: 5px 15px;
  margin-left: 10px;
  font-size: 2.8em;
  cursor: pointer;
  border-radius: 5px;
  float: right;
}
.btn-settings:hover,
.btn-checkout:hover,
.btn-group:hover,
.btn-navigation:hover,
.btn-setting-heading:hover,
.btn-textuser:hover {
  background-color: #6f42c1;
  border-color: #6f42c1;
}
.checkout-buttons {
  /*    width: 97.5%;
    position: absolute;*/
  margin: auto;
  /*    bottom: 10px;*/
  text-align: center;
}
.btn-item,
.btn-item-lg,
.btn-key,
.btn-item-md,
.btn-key-lg,
.btn-key-xlg,
.btn-item-xlg,
.btn-item-md,
.btn-setting,
.btn-setting-heading,
.btn-item-sm {
  border: 1px solid #5ebd74;
  background: none;
  background-color: #5ebd74;
  padding: 10px 15px;
  margin: 3px 5.5px 5px 0;
  font-size: 2.4em;
  cursor: pointer;
  color: #fff;
  min-width: 158px;
  min-height: 75px;
}
.btn-item-md {
  width: 100%;
}
.btn-player {
  border: 1px solid #e56874;
  background: none;
  background-color: #e56874;
  padding: 10px 15px;
  margin: 5px 5px 5px 0;
  font-size: 2.4em;
  cursor: pointer;
  color: #fff;
  width: 100%;
  height: 52px;
}
.btn-player:hover {
  background-color: #dc3545;
  border-color: #dc3545;
}
#participants {
  float: left;
}
#participants .btn-player {
  width: 20%;
}

.btn-item-lg {
  padding: 10px 15px;
  width: 158px;
  height: 75px;
}
.btn-item-xlg {
  width: 324px;
  height: 75px;
}
.btn-key {
  min-width: 70px;
  min-height: 20px;
  margin: 3px 1.5px;
}
.btn-key-lg {
  margin-right: 2px;
  min-width: 145px !important;
  min-height: 20px;
}
.btn-key-xlg {
  min-width: 372px !important;
  margin-right: 2px;
  min-height: 20px;
}
.btn-item-sm {
  min-width: 0px;
  min-height: 0px;
  padding: 5px 10px;
  margin: -2.5px 5px;
  font-size: 1.1em;
}
.btn-key:hover,
.btn-key-lg:hover,
.btn-key-xlg:hover,
.btn-item:hover,
.btn-item-md:hover,
.btn-item-lg:hover,
.btn-item-xlg:hover,
.btn-setting:hover,
.btn-item-sm {
  background-color: #28a745;
  border-color: #28a745;
}
.btn-remove {
  border: 0px solid #e56874;
  background: none;
  margin: 0;
  font-size: 1.2em;
  color: #e56874;
  cursor: pointer;
}
.btn-remove:hover {
  color: #dc3545;
  border-color: #dc3545;
}
#btnRefund {
  float: left;
}
.btn-item-disabled,
.btn-item-disabled:hover {
  cursor: default !important;
  color: rgba(30, 30, 30, 1);
  background-color: white;
  border: 2px solid #ededef;
  text-align: left;
  height: 52px;
}

.btn-setting,
.btn-setting-heading {
  width: 100%;
  min-height: 60px;
  margin: 10px 5px 0px 0;
}
.btn-setting-heading {
  border: 1px solid #9371d1;
  background-color: #9371d1;
}

.key-disabled {
  background-color: #b5babe;
  border-color: #b5babe;
  cursor: default;
}

.key-disabled:hover {
  background-color: #b5babe;
  border-color: #b5babe;
}

/* ----- Modals ----- */
.modal {
  display: none;
  position: fixed;
  z-index: 5;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content,
.modal-content-lg,
.modal-content-sm {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 5px 10px;
  border: 1px solid #888;
  width: 33.3%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.5s;
  animation-name: animatetop;
  animation-duration: 0.5s;
  border-radius: 5px;
}
.modal-content-lg {
  width: 63%;
}
.modal-content-sm {
  width: 30%;
}
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.modal-body {
  padding: 20px 0;
  text-align: center;
}
.modal-footer {
  text-align: right;
}
.modal-footer .btn-checkout {
  padding: 8px 12px;
}

.modal-body .btn-item {
  width: 158px;
  height: 75px;
}
.show-modal {
  display: block;
}
.hide-modal {
  display: none;
}
.modal-inputs {
  display: grid;
  grid-template-columns: 50% 50% 1fr 1fr;
  grid-gap: 1em;
  margin: 0 10px 10px 10px;
  text-align: left;
}
.modal-inputs > div > p {
  margin-bottom: 10px;
}
.message-box {
  display: block;
  margin: 0 10px 10px 10px;
  text-align: left;
}
textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 2px solid #ededef;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 2.2em;
}
.messageSuccessLabel {
  text-align: center;
  padding: 5%;
}
.messageSuccessImage {
  width: 50%;
  margin: auto;
  padding: 2%;
}
.messageSuccessImage img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: 150px;
}

/* ----- Calendar ----- */
.fc-today {
  background: #fff !important;
}
.fc table {
  font-size: 0.71em !important;
}
.fc-toolbar h2 {
  font-size: 1.8em !important;
  padding-top: 10px;
}
.fc-resource-cell {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
.fc button {
  border: 1px solid #9371d1;
  background: none;
  background-color: #9371d1;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0px !important;
  font-size: 1.8em;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0), 0 1px 2px rgba(0, 0, 0, 0);
  z-index: 1;
  width: 65px;
}
.fc button:hover {
  background-color: #6f42c1;
  border-color: #6f42c1;
}
.fc-button {
  margin-left: 7.5px !important;
}
.fc-event {
  background-color: rgba(40, 167, 69, 0.8);
  border-color: rgba(40, 167, 69, 0.8);
  color: #fff;
  cursor: pointer;
}
.fc-event:hover {
  background-color: rgba(40, 167, 69, 1);
  border-color: rgba(40, 167, 69, 1);
}
.fc .fc-axis {
  vertical-align: middle;
  padding: 0 0px;
  white-space: nowrap;
}
.fc .fc-button-group > * {
  z-index: 1;
}
.fc-agendaDay-view tr {
  height: 28px;
}
.fc th {
  vertical-align: bottom;
}
.fc-event,
.fc,
.fc-title {
  font-size: 1em !important;
}
.fc-time-grid-event .fc-time {
  font-size: 0.8em !important;
}
.fc-today-button {
  width: 90px !important;
}
.fc-button-group {
  margin: 0px !important;
}
.competition {
  background-color: rgba(23, 162, 184, 0.85) !important;
  border-color: rgba(23, 162, 184, 0.85) !important;
}
.competition:hover {
  background-color: rgba(23, 162, 184, 1) !important;
  border-color: rgba(23, 162, 184, 1) !important;
}
.postponed {
  background-color: rgba(220, 53, 69, 0.85) !important;
  border-color: rgba(220, 53, 69, 0.85) !important;
}
.postponed:hover {
  background-color: rgba(220, 53, 69, 1) !important;
  border-color: rgba(220, 53, 69, 1) !important;
}
.unapproved {
  background-color: rgba(108, 117, 125, 0.85) !important;
  border-color: rgba(108, 117, 125, 0.85) !important;
}
.unapproved:hover {
  background-color: rgba(108, 117, 125, 1) !important;
  border-color: rgba(108, 117, 125, 1) !important;
}
.final {
  background-color: rgba(216, 164, 5, 0.85) !important;
  border-color: rgba(216, 164, 5, 0.85) !important;
}
.final:hover {
  background-color: rgba(216, 164, 5, 1) !important;
  border-color: rgba(216, 164, 5, 1) !important;
}
.groupA {
  background-color: rgba(0, 0, 205, 0.85) !important;
  border-color: rgba(0, 0, 205, 0.85) !important;
}
.groupA:hover {
  background-color: rgba(0, 0, 205, 1) !important;
  border-color: rgba(0, 0, 205, 1) !important;
}
.groupB {
  background-color: rgba(179, 0, 179, 0.85) !important;
  border-color: rgba(179, 0, 179, 0.85) !important;
}
.groupB:hover {
  background-color: rgba(179, 0, 179, 1) !important;
  border-color: rgba(179, 0, 179, 1) !important;
}
.fc-unthemed .fc-list-heading td {
  height: 28px;
}

.fc-row.fc-widget-header {
  height: 28px !important;
}
.fc-slats > table {
  margin-bottom: 0 !important;
}
.fc-scroller.fc-time-grid-container {
  overflow: hidden !important;
}

.btn-checkout {
  margin-top: 20px;
}
.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.till-button {
  padding: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  width: 200px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.till-button.selected {
  background-color: #0056b3;
}

#selectedTillMessage {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: black;
}

/* ----- Printing ----- */
@media print {
  div:not(.print) {
    display: none;
  }
  footer {
    display: none;
  }
  .print {
    display: block;
    background-color: white;
    height: auto;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0 10px;
    line-height: 18px;
    z-index: 9999999;
    font-size: 0.7em;
  }
  .text-center {
    text-align: center;
  }
  table tr td {
    padding: 0;
    margin: 0;
  }
  #receiptBasket tr td:nth-of-type(2) {
    text-align: right;
    padding-right: 15px;
  }
  #receiptBasket {
    margin-bottom: 20px;
  }
}
