html {
   margin: 0px;
   height: 100%;
   width: 100%;
}

body {
   margin: 0px;
   height: 100%;
   width: 100%;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.navbar-top {
  display: flex;
  justify-content: space-between;
}

.Wt-auth-logged-in {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.Wt-auth-logged-in button {
  background: transparent;
  color: #777;
  display: inline;
  border: none;
  padding: 0px;
}

.side-nav-second-level .side-nav-item .side-nav-link > span
{
  margin-left: 10px;
}

/* Only display a menu as block if it has a direct active list item */
body:not([data-leftbar-compact-mode="condensed"]) .nav > li.active .nav {
  display: none;
}
body:not([data-leftbar-compact-mode="condensed"]) .nav > li.active > .nav {
  display: block;
}

/* Remove Wt's default left margin, since the hyper theme handles the menu indentation */
body:not([data-leftbar-compact-mode="condensed"]) .nav > li > .nav {
  margin-left: 0px;
}

/* Ensure that menu items take the full width (to avoid the open/close tag from being placed at the wrong spot) */
body:not([data-leftbar-compact-mode="condensed"]) .nav li {
  width: 100%;
}

/* Don't display menus in block in condensed mode (the hyper theme will display menus in block on hover) */
body[data-leftbar-compact-mode="condensed"] .nav > li.active .nav {
  display: none;
}
body[data-leftbar-compact-mode="condensed"] .nav > li.active > .nav {
  display: none;
}

.form-header,
.table-header {
  font-weight: bold;
  border-bottom: 1px solid #dddddd;
  background-color: #d8e0e7;
  font-size: 16px;
}

.form-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

.form-buttons > button {
  margin-top: 10px;
  margin-right: 5px;
  margin-bottom: 10px;
}

.table-header-icon {
  float: right;
  opacity: 1;
}

.search-disabled {
  opacity: 0.5;
}

.pageheader-title {
  font-size: 30px;
}

.pageheader-content {
  height: 80%;
  display: flex;
  justify-content: flex-end;
}

.open-icon,
.redirect-icon {
  padding: .475rem .5rem !important;
  color: #555555 !important;
}

.content-menu > *:first-child {
  margin-left: 12px;
  margin-right: 6px;
}

.content-menu > *:last-child {
  margin-left: 6px;
  margin-right: 12px;
}

.table-action-button {
  color:  #6c757d;
  cursor: pointer;
  margin-left: 10px;
}

.search-trait-container {
  margin-top: 5px;
}

.search-trait {
  margin-left: 0px;
  margin-right: 0px;
}

.search-trait > .input-group {
  padding-left: 0px;
  padding-right: 0px;
}

.search-trait .date-time-edit .time-container {
  margin-top: 0.3rem;
}

.search-trait .date-time-edit input {
  padding: .28rem .8rem;
  font-size: .875rem;
  border-radius: .2rem;
}

.date-time-edit {
  margin-left: -10px;
  margin-top: -1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-end
}

.date-time-edit > div {
  margin-left: 10px;
  margin-top: 1.5rem;
  display: flex;
  flex-grow: 1;
  flex-basis: 150px;
}

.form-icon {
  cursor: pointer;
}

.Wt-popup.dropdown-menu.typeahead :not(li.active) .dropdown-item.active {
  color: inherit;
  text-decoration: inherit;
  background-color: inherit;
}

.input-with-dropdown .dropdown-toggle:after,
.topbar-menu .dropdown-toggle:after{
  display: none;
}

.input-with-dropdown .nav-link {
  color: #212529;
}

.side-nav a.side-nav-link {
  display: flex;
}

.table-btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.table-search-container .accordion-button {
  padding: 10px 15px 10px 15px;
}

.export-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  padding-top: 5px;
}

.navbar-custom .topbar-menu .nav-user {
  margin: 0px;
}

.card-img-top.auth-company-logo {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img-top.auth-company-logo > img {
  height: 100px;
  padding: 0.75rem;
}

.image-selection-preview {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.image-selection-preview img {
  padding-bottom: 10px;
}

.image-selection-preview .btn {
  width: -moz-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.path-tree-node .Wt-label {
  cursor: pointer
}

.folder-table .Wt-label {
  font-size: 16px;
}

.folder-explorer .btn-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.folder-explorer .btn-container div {
  width: -moz-fit-content;
  width: fit-content;
}

.folder-explorer .btn-container .btn {
  width: -moz-fit-content;
  width: fit-content;
}

.credit-report-summary-table {
  table-layout: fixed;
  width: 100%;
}

.credit-report-summary-table td {
  width: 25%;
}

.credit-report-summary-table td+td {
  width: auto;
}

.credit-report-summary-table .receiver-row > td {
  display: table-cell;
  vertical-align: bottom;
  font-size: 20px;
}

.credit-report-summary-table .receiver-row > td > img {
  width: 130px;
}

.credit-report-summary-table .credit-item-label {
  font-weight: 700;
}

.cc-icon {
  height: 21px;
}

.inline-block {
  display: inline-block;
}

.card-img-top.error-img {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img-top.error-img > img {
  height: 100px;
  padding: 0.75rem;
}

.hidden-menu-item {
  display: none;
}

.bold {
  font-weight: bold;
}

.stretch-y {
  width: 100%;
}

.contact-form-buttons > button {
  margin-right: 10px;
  margin-bottom: 15px;
}

.form-check-input:disabled,
.btn.disabled {
  cursor: auto;
  pointer-events: auto;
}

.form-check-input[type=radio]:disabled:not(:checked),
.form-check-input[type=checkbox]:disabled:not(:checked) {
  background-color: #bdc3cb;
}

.scrollable-cell {
  overflow-y: auto;
  max-height: 6em;
  overflow-x: hidden;
  max-width: 70em;
  overflow-wrap: break-word;
}

.table-container > * {
  margin: 0px !important;
}

.btn-link.lost-password-link {
  cursor: pointer;
}

.conversation-note-content-column {
  width: 50%;
}

.conversation-note-column {
  width: 25%;
}

.upload-note-file-anchor-div > div {
  display: flex;
  align-items: center;
}

.table-content {
  padding-top: 0 !important;
}

.invoice-file-anchor-div > div,
.agreement-file-anchor-div > div {
  display: flex;
  align-items: center;
}

/* Ensure that the Google Places API always appears on top */
.pac-container {
  z-index: 99999;
}

/* 135px is the total padding of the top and bottom given by the hyper theme */
.app-content {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  height: calc(100vh - 135px);
}

.Wt-stack.portal-stack {
  height: 100%;
  overflow-y: auto !important;
}

/* The WStackedWidget is lazy loaded, and will never contain more than one item.
 * However, the div can contain other items, like popups, which shouldn't get this styling.
 */
.Wt-stack.portal-stack > div:first-child {
  width: 100%;
  height: 100%;
  display: flex;
}

.Wt-stack.portal-stack > div > div {
  flex-grow: 1;
}

.table-form-manager,
.header-content {
  display: flex;
  flex-flow: column;
  height: 100%;
  overflow: auto;
}

.table-form-manager .table-form-manager-form,
.header-content .header {
  flex: 0 0 auto;
}

.table-search-container .Wt-panel {
  margin-bottom: 0px;
}

.table-form-manager .table-form-manager-table {
  flex: 1 1 auto;
}

.header-content .content {
  flex: 1 1 auto;
}

.table-container {
  min-height: 50vh;
}

.vault-password-icon:not(.disabled) {
  background-color: #fff;
  cursor: pointer;
}

.input-group.form-input-with-icon .disabled .vault-password-icon {
  background-color: #eef2f7;
  cursor: default;
}

.financial-dashboard .total-amount-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: auto;
}

@media (min-width: 768px) {
  .financial-dashboard .total-amount-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1150px) {
  .financial-dashboard .total-amount-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.financial-dashboard .total-amount-row > * {
  min-width: 200px;
}

.financial-dashboard .total-amount-row > * > .card {
  height: 100%;
  width: 100%;
}

.financial-dashboard .table-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: auto;
  margin-top: 1rem;
}

@media (min-width: 1800px) {
  .financial-dashboard .table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.financial-dashboard .table-row .payments-card {
  margin-bottom: 0px;
  background-color: #fff;
  border-radius: 0.25rem;
  border: 0.5px;
  border-color: #f1f3fa;
  border-style: double;
  min-width: 40%;
  flex-grow: 1;
}

.base-credit-item-selector {
  table-layout: fixed;
}

.base-credit-item-selector.edit-items td {
  --bs-table-accent-bg: var(--bs-table-active-bg);
  color: var(--bs-table-active-color);
}

.base-credit-item-selector.edit-items td:has(.form-active) {
  --bs-table-accent-bg: none;
  color: none;
}

.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
}

.img-cc {
  max-width: 50%;
  width: 150px;
}

.export-selection .form-horizontal .checkbox {
    padding-top: 2px;
    min-height: 0px;
}
.export-selection .form-horizontal .checkbox-inline {
    padding-top: 0px;
}

.bold {
  font-weight: bold;
}

.form-control[readonly="readonly"] {
  background-color: #eef2f7;
  cursor: default;
}

.form-control[readonly="readonly"]:focus {
  border-color: #dee2e6;
}

.address-card {
  margin-bottom: 0px;
}

.address-card > .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.address-view {
  display: grid;
  grid-template-columns: auto;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .address-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .address-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.address-buttons {
  justify-content: flex-end;
  display: flex;
  gap: 0.25rem;
}

.address-view-buttons {
  display: flex;
  justify-content: right;
  margin-top: 0.75rem;
  gap: 5px;
}

.dboselectionedit-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.form-check-input.is-invalid~.form-check-label {
  width: 100%;
}

.credit-report-summary-table .receiver-row td {
  text-align: center;
  vertical-align: middle;
}

@media screen and (max-width: 768px) {
  .credit-report-summary-table .receiver-row td img {
    width: 100px;
    transform: rotate(300deg);
  }

  .credit-report-summary-table .receiver-row td span {
    transform: rotate(210deg);
    writing-mode: vertical-lr;
  }
}

.invoice-line-table th,
.invoice-line-table td {
  border: none;
  vertical-align: middle;
}

.invoice-line-table tr.black-border th,
.invoice-line-table tr.black-border td,
.invoice-line-table td.black-border {
  border: 1px solid #ddd;
}

.invoice-line-table tr.no-background :not(td.black-border) {
  background-color: none;
}

.invoice-line-table th {
  text-align: center;
}

.invoice-line-table th {
  text-transform: uppercase;
}

.invoice-line-table .total {
  font-weight: 800;
}

.invoice-line-table .total span {
  font-size: 100%;
}

.invoice-line-table .line-row td {
  vertical-align: bottom;
}

.invoice-line-table .line-row td.remove-invoice-product-cell {
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
}

.discount-edit .btn-discount {
  background: none;
}

.credit-item-row {
  min-width: 50em;
}

.report-pdf-input {
  background-color: #eef2f7;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.45rem 0.9rem;
  flew-grow: 1;
}

.selection-edit-format {
  display: flex;
  flex: auto;
}

.table-footer .additional-content {
  display: flex;
  justify-content: space-around;
}

.table-footer .additional-content > * {
  flex-basis: 100%;
}

.form-bottom-buttons {
  justify-content: space-between;
}

.form-bottom-buttons,
.form-bottom-buttons > * {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.search-form.panel-danger {
  border-color: #ebccd1 !important;
}

.search-form.panel-danger .card-header {
  background-color: #f2dede;
  color: #a94442;
}

.search-form.panel-danger .card-body {
  border-color: #ebccd1 !important;
}

.tooltip-style {
  cursor: pointer;
  color: #6c757d;
  font-weight: 900;
}

.breadcrumb-item.disabled {
  color: #adb5bd;
}

.accounting-dashboard-table-height {
  max-height: 25rem;
}

.table-alert-banner-container {
  display: none;
}

.table-alert-banner-container:has(div) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.table-alert-banner-container .alert {
  margin-bottom: 0px;
}
