@font-face {
  font-family: "titleFont";
  src: url(../fonts/HEADING\ _\ Saira-Medium.ttf);
}

@font-face {
  font-family: "bodyText";
  src: url(../fonts/MAIN\ BODY\ _\ TitilliumWeb-Light.ttf);
}

* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: bodyText;
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

tr {
  cursor: pointer;
}

tr.selected {
  background-color: #e6f0ff !important;
  outline: 2px solid #176adb;
}

tr.selected td {
  color: #176adb;
  font-weight: 600;
}

tr.hovered {
  background-color: #dceeff !important;
  outline: 2px solid #176adb;
}

table.table-results tbody tr:hover {
  background-color: #f0f6ff;
  cursor: pointer;
}

table.table-results tbody tr {
  transition: background-color 0.2s ease;
}

th {
  text-align: left;
  padding: 4px 8px;
  border: none;
  white-space: nowrap;
}

td {
  text-align: left;
  padding: 4px 8px;
  vertical-align: middle;
}

th.hidden,
td.hidden {
  display: none;
}

th.centered,
td.centered {
  text-align: center;
}

div.tiles {
  display: flex;
}

.tile {
  flex: 1;
  padding: 10px;
  margin: 8px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.dashboard-table {
  width: auto !important;
}

.dashboard-table td:last-child {
  text-align: right;
}

.head-1 {
  color: #2e2e2e;
  font-size: 24px;
}

.val-1 {
  color: #176adb;
  font-size: 28px;
  font-weight: bold;
}

.val-2 {
  color: #176adb;
  font-size: 16px;
  font-weight: bold;
}

div.header-bar {
  display: flex;
}

div.header-bar div.tile {
  display: flex;
  flex: 1;
  padding: 10px;
  margin: 8px;
  cursor: pointer;
  font-size: 18px;
  justify-content: space-between;
  text-transform: uppercase;
}

div.modal-background {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

div.modal {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #888;
  width: max-content;
  position: relative;
}

i.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.modal input {
  border-radius: 8px;
  padding: 8px;
}

.modal .button {
  margin: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  background-color: #4587e2;
  color: #f7f9f9;
}

.modal .button:hover {
  background-color: #f7f9f9;
  color: #176adb;
}

.modal .button#button-save {
  background-color: #198754;
}

.modal .button#button-save:hover {
  background-color: #f7f9f9;
  color: #198754;
}

.modal .button#button-cancel {
  background-color: #dc3545;
}

.modal .button#button-cancel:hover {
  background-color: #f7f9f9;
  color: #dc3545;
}

div.modal table input {
  border: 1px solid #d0d0d0;
  padding: 4px 8px;
  margin: 4px 0;
  display: block;
  height: 36px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 16px;
  color: #303030;
  opacity: 0.8;
  outline: none;
}

div.modal .container {
  display: inline-block;
  position: relative;
  padding: 0 35px;
  cursor: pointer;
  user-select: none;
}

div.modal .container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

div.modal .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

div.modal .container:hover input ~ .checkmark {
  background-color: #ccc;
}

div.modal .container input:checked ~ .checkmark {
  background-color: #4587e2;
}

div.modal .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

div.modal .container input:checked ~ .checkmark:after {
  display: block;
}

div.modal .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.nav-primary {
  width: 180px;
  height: 100%;
  background-color: #176adb;
  color: #f7f9f9;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

section.content {
  width: 100%;
  height: 100% !important;
  overflow-y: scroll;
}

section.content::-webkit-scrollbar {
  display: none;
}

.nav-primary.collapsed {
  width: 62px;
}

.nav-primary-list {
  list-style: none;
}

#list-features {
  flex-grow: 1;
  overflow-y: scroll;
}

#list-features::-webkit-scrollbar {
  display: none;
}

.nav-primary-list a {
  text-decoration: none;
  color: inherit;
}

.nav-primary-list li {
  display: flex;
  padding: 8px 16px;
  margin: 8px 0;
  cursor: pointer;
}

.nav-primary-list li:hover {
  color: #292932;
}

.nav-primary-list li i {
  font-size: 24px;
  min-width: 30px;
  margin-right: 12px;
}

.nav-primary .list-text {
  white-space: nowrap;
}

.nav-primary.collapsed .list-text {
  opacity: 0;
  pointer-events: none;
}

.nav-secondary {
  width: 100%;
  height: 52px;
  position: sticky;
  top: 0;
  background-color: #176adb;
  z-index: 10;
}

.nav-secondary div {
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-secondary .page-title {
  color: #f7f9f9;
  font-size: 24px;
  text-transform: uppercase;
  padding: 0 8px;
  margin-right: 48px;
  align-items: center;
}

.nav-secondary .search,
.nav-secondary .add {
  text-transform: uppercase;
  margin-left: auto;
  transition: flex 0.6s;
  display: flex;
  align-items: center;
  color: #f7f9f9;
}

.nav-secondary .add {
  width: 600px;
}

.nav-secondary input {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  padding-left: 36px;
  margin: 8px;
  background-color: #4587e2;
  color: #f7f9f9;
  width: 100%;
  text-transform: uppercase;
}

.nav-secondary input::placeholder {
  color: #f7f9f9;
  opacity: 0.8;
}

.nav-secondary input:focus {
  outline: none;
}

.search-icon {
  position: relative;
  z-index: 1;
  left: 20px;
  color: #f7f9f9;
  opacity: 0.8;
  cursor: pointer;
  width: 0;
}

.nav-secondary .button {
  margin: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  background-color: #4587e2;
  color: #f7f9f9;
}

.nav-secondary .button:hover {
  background-color: #f7f9f9;
  color: #176adb;
}

.nav-secondary .button#button-save {
  background-color: #f7f9f9;
  color: #198754;
}

.nav-secondary .button#button-cancel {
  background-color: #f7f9f9;
  color: #dc3545;
  display: none;
}

div.footer-bar {
  width: 100%;
  z-index: 2;
  padding: 10px;
  white-space: nowrap;
  border: none;
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: row;
  vertical-align: middle;
  align-items: center;
  justify-content: flex-end;
  background-color: #ffffff;
  color: #a7a7ab;
}

.pagination {
  margin-left: 20px;
}

button.page {
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  background-color: #ffffff;
  color: #a7a7ab;
}

button.page.ellipsis {
  background: none;
  border: none;
}

button.page.active {
  color: #292932;
  font-weight: 800;
}

div.output-container {
  height: calc(100% - 52px) !important;
}

div.aside {
  display: grid;
  grid-template-columns: 1fr auto;
  height: 100%;
}

div.output-container table.table-detailed {
  height: 0px;
}

div.right-aside {
  background-color: #f7f9f9;
  transition: all 0.5s ease;
  padding: 10px;
  width: 320px;
  border-left: 4px solid black;
  height: 100%;
  overflow-y: auto;
}

div.right-bar {
  z-index: 100;
  background-color: #f7f9f9;
  position: absolute;
  left: 162px;
  right: 0;
  bottom: 0;
  top: 52px;
  display: none !important;
  transition: all 0.5s ease;
  padding: 10px;
}

div.right-bar.show {
  display: flex !important;
  flex-direction: column;
  transition: all 0.5s ease;
}

div.right-bar.collapsed {
  left: 62px;
}

.right-bar-tabs {
  display: flex;
  justify-content: space-around;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ccc;
}

.right-bar-tabs button {
  flex: 1;
  padding: 10px;
  background-color: #f7f9f9;
  border: 1px solid #ccc;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
  border-bottom: none;
  text-align: center;
}

.right-bar-tabs button.active {
  background-color: #4587e2;
  color: white;
  border-color: #4587e2;
}

.tabcontent {
  display: none;
  padding: 10px;
  flex-grow: 1;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.tabcontent.active {
  display: block;
}

.tabcontent p {
  padding: 10px;
  font-size: 14px;
  color: #303030;
  opacity: 0.8;
}

div.right-bar .tile {
  flex: 1;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 10px;
  overflow-y: auto;
}

div.tile ul {
  list-style-type: none;
  padding-left: 0;
}

div.tile ul li {
  margin-bottom: 10px;
}

div.right-bar {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.charges-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.charges-table td {
  padding: 8px;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}

.charges-table td input {
  width: 100%;
  padding: 6px 8px;
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  font-size: 14px;
  color: #303030;
}

div.right-bar button.button {
  margin: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  background-color: #4587e2;
  color: #f7f9f9;
  transition: background-color 0.3s ease;
}

div.right-bar button.button:hover {
  background-color: #356bb7;
}

div.right-bar div.right-bar-form input {
  border: 1px solid #d0d0d0;
  padding: 4px 8px;
  margin: 4px 0;
  height: 36px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 16px;
  color: #303030;
  opacity: 0.8;
}

button.status {
  margin: 0 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

button.status.success {
  background-color: #27ae60;
  color: #f7f9f9;
}

button.status.failure {
  background-color: #e74c3c;
  color: #f7f9f9;
}

#table-top {
  background-color: #f7f9f9;
  position: fixed;
  top: 52px;
  width: 100%;
  display: flex;
  z-index: 10;
  align-items: center;
  padding: 0 8px;
  margin: 0;
}

#table-top > div {
  white-space: nowrap;
  margin-right: 20px;
}

.table-summary input,
#table-top div input {
  border: 1px solid #d0d0d0;
  padding: 4px 8px;
  margin: 4px 0;
  display: block;
  height: 36px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 16px;
  color: #303030;
  opacity: 0.8;
}

#table-bottom {
  background-color: #f7f9f9;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  z-index: 10;
}

table.table-detailed {
  padding: 0;
  margin: 0;
  white-space: pre-line;
  width: 100%;
}

table.table-detailed thead tr.tr-sticky th {
  border: none;
  background-color: #ffffff;
  z-index: 5;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
  position: sticky;
}

table.table-detailed td {
  border-bottom: 1px solid #efefef;
  padding: 8px;
  white-space: nowrap;
}

table.table-detailed tfoot tr.tr-sticky th {
  border: none;
  background-color: #ffffff;
  z-index: 5;
  border-top: 1px solid #2e2e2e;
  position: sticky;
  bottom: 0;
}

tr.top-bottom > th.tot {
  border-top: 2px solid #000000;
  border-bottom: 2px solid #000000;
}

.a-right {
  text-align: right;
}

.summary-row {
  background-color: #eaf2ff;
  font-weight: 600;
  border-top: 2px solid #176adb;
  border-bottom: 2px solid #176adb;
}

.summary-row td {
  padding: 8px;
  text-align: left;
}

.summary-row .a-right {
  text-align: right;
}

.table-summary th.form-label {
  width: 10%;
  min-width: 120px;
  white-space: nowrap;
  text-align: left;
}

.table-summary tr {
  height: 50px;
}

.table-summary tr:not(:last-child) {
  margin-bottom: 8px;
}

.table-summary td.editable {
  margin: 4px 8px;
  min-height: 36px;
}

.table-summary td.editable span {
  display: block;
  padding: 4px 8px;
  min-height: 36px;
  line-height: 36px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background-color: #fff;
}

.table-summary select {
  height: 36px;
  padding: 4px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background-color: #fff;
}

.table-summary input {
  height: 36px;
  padding: 4px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
}

.table-summary td.editable:focus,
.table-summary td.editable[contenteditable="true"]:focus {
  border-color: #a0a0a0;
  box-shadow: 0 0 3px rgba(160, 160, 160, 0.5);
}

@media (max-width: 768px) {
  .table-summary th.form-label {
    width: 20%;
  }

  .table-summary td.editable span {
    min-height: 32px;
    line-height: 32px;
  }
}
