/*
 * OpenBills - Self hosted browser app to generate and keep track of simple invoices
 * Version - 0
 * Licensed under the MIT license - https://opensource.org/licenses/MIT
 *
 * Copyright (c) 2021 Vidhu Kant Sharma
*/

@import "../../styles/theme";

.ItemsDisplay {
  width: 100%;
  box-sizing: border-box;
}

.ItemsDisplay {
  margin: 3rem auto;
}

.ItemsDisplay .legend {
  background-color: $background2;
}

.ItemsDisplay th {
  font-size: 1.2rem;
}

.ItemsDisplay td {
  text-align: center;
  border-bottom: 1px solid $underline1;
  font-size: 1.5rem;
}

.ItemsDisplay .disabledBorder {
  border-bottom: 1px solid $underline0;
}

.ItemsDisplay .warningBorder {
  border-bottom: 1px solid $underline3;
}

.ItemsDisplay .leftAlign {
  text-align: left;
}

.ItemsDisplay .multiValue {
  display: flex;
  justify-content: space-around;
}

.ItemsDisplay .hideContents * {
  display: none;
}

.SummaryDisplayTR td {
  color: $foreground2;
  font-size: $fontSize3 - 0.3;
}

.SummaryDisplay {
  position: relative;
  width: 30%;
  padding: 0.5rem 2rem;
}

.SummaryDisplay .SubmitButton {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.3rem;
}

.SummaryDisplay h1 {
  font-size: 3rem;
  margin: 0.5rem -1.5rem;
  border-bottom: 1px dotted $underline1;
}

.SummaryDisplay table {
  width: 100%;
  margin: auto;
}

.SummaryDisplay td {
  font-size: $fontSize2 - 0.25;
  padding: 0.2rem 0;
}

.SummaryDisplay .grandTotal td {
  font-size: 2rem;
  color: $foreground2;
}

@media only screen and (max-device-width: 480px) {
  .SummaryDisplay {
    width: auto;
    min-height: 16rem;
  }
}