/* The list-and-popup screens for things reception keeps up by hand: FolioExpence/Index,
   the minibar and cafe/food price lists (FolioExpence/_PriceList) and Product/ProductsList. */

/* FolioExpence/Index: the two big buttons */
.crudMenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 16px;
}

.crudMenuBtn {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 22rem;
  max-width: 100%;
  padding: 1.6rem 1.4rem;
  border-radius: 10px;
  background-color: darkblue;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.crudMenuBtn:hover {
  background-color: rgb(7, 0, 205);
  color: white;
}

.crudMenuTitle {
  font-size: 1.4rem;
  font-weight: bold;
}

.crudMenuSub {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* toolbar above the table */
#crudPage {
  width: var(--mainMargin);
  margin: auto;
}

.crudToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.crudToolbar .crudSearch,
.crudToolbar select {
  width: 14rem;
  max-width: 100%;
}

.crudCheck {
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin: 0;
}

.crudCheck input {
  width: 18px;
  height: 18px;
}

.crudCheckDark {
  color: black;
}

.crudCount {
  color: white;
  font-size: 0.85rem;
  margin-right: auto;
}

.crudNote {
  color: rgb(220, 220, 220);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* the table */
#crudPage #tableContainer {
  width: 100%;
  overflow-x: auto;
}

.crudTable td {
  vertical-align: middle;
}

.crudTable .crudName {
  text-align: right;
}

.crudTable tr.crudInactive td {
  color: rgb(120, 120, 120);
}

.crudActions {
  white-space: nowrap;
}

.crudActions .btn {
  margin: 0 2px;
}

.crudBadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: white;
}

.crudBadgeOn {
  background-color: green;
}

.crudBadgeOff {
  background-color: rgb(140, 140, 140);
}

.crudBadgeLevel1 {
  background-color: rgb(189, 0, 0);
}

.crudBadgeLevel2 {
  background-color: rgb(0, 90, 170);
}

.crudBadgeLevel3 {
  background-color: rgb(120, 120, 120);
}

.crudModalError {
  color: rgb(189, 0, 0);
  min-height: 1.4rem;
  margin-top: 0.6rem;
}

.crudModalWarning {
  color: rgb(160, 90, 0);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

@media only screen and (max-width: 1024px) {
  #crudPage {
    width: 100%;
    padding: 0 16px;
  }
}
