@import 'common.css';

header {
  padding: 0 0 8px 0;
  border-bottom: 1px solid #ccc;
}

main {
  margin-top: 16px;
}

footer {
  margin-top: 16px;
}

input {
  background-color: transparent;
}

input[type="radio"] {
  margin: 0 4px 0 12px;
  vertical-align: bottom !important;
}

input[name="license"] {
  text-align: left;
  width: 30em;
}

input[name="quantity"] {
  text-align: right;
  width: 6em;
}

input[name="grant"] {
  text-align: right;
  width: 5em;
}

input[name="total"] {
  text-align: right;
  width: 8em;
}

input:read-only {
  border-color: var(--menu-color);
}

.custom {
  background-color: #88888855;
  font-style: italic;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
}

thead > tr > th {
  padding-bottom: 8px;
}

thead > tr > th:first-child {
  text-align: left;
  padding-left: 8px;
}

thead > tr > th:last-child {
  text-align: center;
  padding-left: 12px;
  padding-right: 12px;
}

thead > tr > th:not(:first-child):not(:last-child) {
  text-align: right;
  padding-right: 20px;
}

tfoot {
  vertical-align: text-bottom;
}

tfoot > tr > th {
  padding-top: 16px;
  padding-right: 12px;
}

tfoot > tr > td > input {
  text-align: right;
  width: 8em;
}

.actions {
  text-align: center;
}

.footer-label {
  text-align: right;
}

td > button {
  border-radius: 0;
  border: 0;
  height: 20px;
  margin: 0;
  width: 20px;
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.theme-light tbody > tr:hover > td {
  background-color: #f8f8c880;
}

.theme-dark tbody > tr:hover > td {
  background-color: #99995540;
}

details > summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--accent-color);
  -webkit-user-select: none;
  user-select: none;
}

details > p {
  margin-top: 8px !important;
}

.actuals-label {
  text-align: left;
}

#calculator-difference[data-diff="same"] {
  border-color: blue;
}

#calculator-difference[data-diff="different"] {
  border-color: orange;
}

#calculator-difference[data-diff="warning"] {
  border-color: red;
}

.hidden {
  display: none;
}

.icon {
  background-color: transparent;
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  height: 16px;
  vertical-align: bottom;
  width: 16px;
}

#menu {
  right: 0;
}
