﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/*Report-Hintergrund DevExpress*/
.dxrd-preview.dxrd-designer-wrapper {
  background-color: white !important;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: var(--brand-primary);
}

.table-hover tbody tr:hover {
  color: #222;
  background-color: rgba(92, 91, 92, 0.2);
  cursor: pointer;
}

.btn-white {
  color: #495057;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0px;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

#downloadCanvasButton {
  color: white !important;
}
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.dashboardChart {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: clamp(260px, 34vh, 400px);
}

.dashboard-page {
  margin-left: -15px;
  margin-right: -15px;
  padding: 1.25rem 1.25rem 2rem;
  background: #fff;
  min-height: 100%;
}

.dashboard-page__title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.25rem;
}

.dashboard-stat {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.dashboard-stat:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dashboard-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
}

.dashboard-stat--brand::before {
  background: var(--brand-accent-fade);
}

.dashboard-stat--mint::before {
  background: linear-gradient(180deg, #5a9e6e 0%, #7aad6a 100%);
}

.dashboard-stat__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
}

.dashboard-stat__main {
  flex: 1;
  min-width: 0;
}

.dashboard-stat--chip .dashboard-stat__inner {
  padding-bottom: 2.35rem;
  padding-right: 4.5rem;
}

.dashboard-stat__chip {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
  line-height: 1;
}

.dashboard-stat__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.dashboard-stat--brand .dashboard-stat__icon {
  background: var(--brand-primary-soft);
  color: var(--brand-primary-strong);
}

.dashboard-stat--mint .dashboard-stat__icon {
  background: rgba(90, 158, 110, 0.18);
  color: #3d7a52;
}

.dashboard-stat__label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--brand-muted);
  margin-bottom: 0.25rem;
}

.dashboard-stat--mint .dashboard-stat__label {
  color: rgba(61, 122, 82, 0.75);
}

.dashboard-stat__value {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  line-height: 1.2;
}

.dashboard-panel {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: visible;
  margin-bottom: 1.5rem;
}

.dashboard-panel__body:last-child {
  border-radius: 0 0 14px 14px;
}

.dashboard-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--brand-hover-bg);
  border-radius: 14px 14px 0 0;
}

.dashboard-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

.dashboard-panel__body {
  background: #fff;
}

.dashboard-panel__body--chart {
  text-align: center;
  padding: 1rem 1.25rem 1.5rem;
}

/* Letzte Verkäufe — title row + filter strip */
.dashboard-sales-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
  flex-wrap: nowrap;
}

.dashboard-sales-toolbar__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-sales-search,
.dashboard-sales-device,
.dashboard-sales-date {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.dashboard-sales-date input[type="date"] {
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0.4rem 0.75rem;
  border: 1px solid #d1d3e2;
  border-radius: 8px;
  background: #fff;
  color: #5a5c69;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-sales-date input[type="date"]:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.15rem var(--brand-focus-ring);
  outline: none;
  color: #3a3b45;
}

.dashboard-sales-date input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}

.dashboard-sales-date input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.85;
}

.dashboard-sales-device .bootstrap-select {
  width: 100% !important;
}

.dashboard-sales-device .bootstrap-select > .dropdown-toggle {
  position: relative;
  height: 38px;
  min-height: 38px;
  padding: 0.45rem 2rem 0.45rem 0.85rem !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #d1d3e2 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23858796' d='M4.2 5.8a.75.75 0 0 1 1.06 0L8 8.54l2.74-2.74a.75.75 0 1 1 1.06 1.06l-3.27 3.27a.75.75 0 0 1-1.06 0L4.2 6.86a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.7rem center !important;
  background-size: 12px !important;
  color: #5a5c69 !important;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden;
}

.dashboard-sales-device .bootstrap-select > .dropdown-toggle .filter-option {
  position: static;
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  text-align: left;
  padding-right: 0;
}

.dashboard-sales-device .bootstrap-select > .dropdown-toggle .filter-option-inner,
.dashboard-sales-device .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  color: inherit;
}

.dashboard-sales-device .bootstrap-select.form-control {
  height: auto !important;
  min-height: 38px;
  padding: 0 !important;
  border: none !important;
  background: transparent;
  box-shadow: none;
}

/* Hide Bootstrap / bootstrap-select caret clutter */
.dashboard-sales-device .bootstrap-select > .dropdown-toggle::after,
.dashboard-sales-device .bootstrap-select > .dropdown-toggle .caret,
.dashboard-sales-device .bootstrap-select > .dropdown-toggle .bs-caret {
  display: none !important;
}

.dashboard-sales-device .bootstrap-select > .dropdown-toggle:hover,
.dashboard-sales-device .bootstrap-select > .dropdown-toggle:focus,
.dashboard-sales-device .bootstrap-select > .dropdown-toggle:active {
  border-color: var(--brand-primary) !important;
  background-color: #fff !important;
  color: #3a3b45 !important;
  box-shadow: 0 0 0 0.15rem var(--brand-primary-soft) !important;
}

.dashboard-sales-device .bootstrap-select .dropdown-menu li a {
  color: #3a3b45;
}

.dashboard-sales-device .bootstrap-select .dropdown-menu li a small {
  color: #858796 !important;
}

.dashboard-sales-device .bootstrap-select .dropdown-menu li.selected a,
.dashboard-sales-device .bootstrap-select .dropdown-menu li.active a,
.dashboard-sales-device .bootstrap-select .dropdown-menu li a:hover,
.dashboard-sales-device .bootstrap-select .dropdown-menu li a:focus {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #111 !important;
}

.dashboard-sales-device .bootstrap-select .dropdown-menu li.selected a small,
.dashboard-sales-device .bootstrap-select .dropdown-menu li.active a small,
.dashboard-sales-device .bootstrap-select .dropdown-menu li a:hover small,
.dashboard-sales-device .bootstrap-select .dropdown-menu li a:focus small {
  color: var(--brand-muted) !important;
}

.dashboard-sales-reset {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid #d1d3e2;
  border-radius: 8px;
  background: #fff;
  color: #858796;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-sales-reset:hover,
.dashboard-sales-reset:focus {
  background: #fff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  outline: none;
}

.dashboard-sales-reset:active {
  transform: scale(0.96);
}

.dashboard-bon {
  font-weight: 600;
  color: #3a3b45;
  font-variant-numeric: tabular-nums;
}

.receipt-modal .modal-dialog {
  max-width: 860px;
  margin: 1.25rem auto;
}

.receipt-modal .modal-content {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.receipt-modal .modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--brand-hover-bg);
  align-items: center;
}

.receipt-modal .modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.receipt-modal .modal-header .close {
  margin: 0;
  padding: 0.25rem;
  font-size: 1.5rem;
  color: #858796;
  opacity: 1;
}

.receipt-modal .modal-header .close:hover {
  color: var(--brand-primary);
}

.receipt-modal .modal-body {
  padding: 0;
}

.receipt-modal__layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  min-height: 520px;
  max-height: min(72vh, 680px);
}

.receipt-modal__preview {
  position: relative;
  background: #f5f5f5;
  border-right: 1px solid var(--brand-hover-bg);
  min-height: 420px;
  min-width: 0;
}

.receipt-modal__state,
.receipt-modal__viewer {
  position: absolute;
  inset: 0;
}

.receipt-modal__state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.receipt-modal__state.is-visible {
  display: flex;
}

.receipt-modal__state-text {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

.receipt-modal__state--error {
  color: #c53030;
}

.receipt-modal__state--error i {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.receipt-modal__state--error p {
  margin: 0;
  max-width: 16rem;
  font-size: 0.875rem;
}

.receipt-modal__viewer {
  display: none;
  padding: 1rem;
}

.receipt-modal__viewer.is-visible {
  display: block;
}

.receipt-modal__viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.receipt-modal__side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem 1.5rem;
}

.receipt-modal__section-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.receipt-modal__section > .receipt-modal__section-title {
  margin-bottom: 0.85rem;
}

.receipt-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d1d3e2;
  border-radius: 10px;
  background: #f8f9fc;
}

.receipt-modal__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #858796;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.receipt-modal__tab i {
  font-size: 0.8125rem;
}

.receipt-modal__tab:hover,
.receipt-modal__tab:focus {
  color: var(--brand-primary);
  outline: none;
}

.receipt-modal__tab.is-active {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.receipt-modal__card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.receipt-modal__details {
  margin: 0;
  padding: 0.35rem 1rem 0.5rem;
}

.receipt-modal__details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--brand-hover-bg);
}

.receipt-modal__details > div:last-child {
  border-bottom: 0;
}

.receipt-modal__details dt {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #858796;
}

.receipt-modal__details dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.receipt-modal__details .text-money-pos {
  color: #2e7d4a;
}

.receipt-modal__details .text-money-neg {
  color: #c53030;
}

.receipt-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.receipt-modal__actions .btn {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
}

.receipt-modal__btn-secondary {
  background: #fff;
  border: 1px solid #d1d3e2;
  color: #3a3b45;
}

.receipt-modal__btn-secondary:hover,
.receipt-modal__btn-secondary:focus {
  background: #faf7fc;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

@media (max-width: 767.98px) {
  .receipt-modal .modal-dialog {
    max-width: calc(100% - 1.5rem);
    margin: 0.75rem auto;
  }

  .receipt-modal__layout {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }

  .receipt-modal__preview {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--brand-hover-bg);
  }
}

@media (max-width: 767.98px) {
  .dashboard-sales-toolbar {
    flex-wrap: wrap;
  }

  .dashboard-sales-toolbar__fields {
    grid-template-columns: 1fr;
    width: 100%;
    flex: 1 1 100%;
  }

  .dashboard-sales-reset {
    margin-left: auto;
  }
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.dashboard-table thead th {
  font-weight: 400;
  color: #000;
  border-top: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.dashboard-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: rgba(0, 0, 0, 0.06);
  color: #000;
}

.dashboard-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.04);
}

.dashboard-page .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.dashboard-page .table-striped tbody tr:nth-of-type(odd):hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dashboard-table .text-money-pos {
  color: #2e7d4a;
  font-weight: 600;
  text-align: end;
}

.dashboard-table .text-money-neg {
  color: #c53030;
  font-weight: 600;
  text-align: end;
}

.dashboard-table th.admin-col-actions,
.dashboard-table td.admin-col-actions,
.dashboard-table td:has(.admin-table-actions) {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-left: 0.35rem;
  padding-right: 1rem;
  vertical-align: middle;
}

.dashboard-table .admin-table-actions {
  justify-content: flex-end;
}

.dashboard-top-articles tbody tr {
  border-color: rgba(0, 0, 0, 0.06);
}

.dashboard-top-articles tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-top-articles .top-article-caret {
  font-size: 1.5rem;
  color: #3d9e5f;
  vertical-align: middle;
}

.dashboard-top-articles .article-name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--brand-ink);
}

.dashboard-top-articles .article-meta {
  font-size: 0.8125rem;
  color: var(--brand-muted);
}

.dashboard-top-articles .article-total {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--brand-primary-strong);
}

.reports-page .card.shadow.mb-4 {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 0.625rem !important;
  overflow: visible;
}

.reports-page .card.shadow.mb-4 > .collapse,
.reports-page .card.shadow.mb-4 .card-body {
  overflow: visible;
}

.reports-page .card.shadow.mb-4:has(> .collapse:not(.show)) .card-header {
  border-radius: 14px;
}

.reports-page .card-header {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.reports-page .card.shadow.mb-4 > .collapse.show .card-body {
  border-radius: 0 0 14px 14px;
}

.reports-page .card-header h5 {
  margin: 0;
  width: 100%;
  font-weight: 400 !important;
}

.reports-page .card-header .text-primary {
  color: #000 !important;
}

.reports-page .card-header .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: none;
  text-align: left;
  white-space: normal;
}

.reports-page .card-header .btn.collapsed {
  border-radius: 14px;
}

.reports-page .card-header .btn:hover,
.reports-page .card-header .btn:focus,
.reports-page .card-header .btn:active {
  color: #000;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: none;
}

.reports-page .card.shadow.mb-4:has(> .collapse.show) .card-header .btn {
  background: rgba(0, 0, 0, 0.03);
}

.reports-page .card-header .btn::after {
  flex-shrink: 0;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  color: #000;
  opacity: 0.45;
  font-size: 0.875rem;
}

.reports-page .card-header .btn.collapsed::after {
  content: "\f105";
}

.reports-page .card-body {
  padding: 0.875rem 1rem 0.75rem;
  background: #fff;
}

.reports-page .card-body form > .row {
  margin-left: 0;
  margin-right: 0;
}

.reports-page .card-body form > .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.reports-page .card-body form > .row > .col-md-12 > .row {
  margin-left: -0.375rem;
  margin-right: -0.375rem;
  margin-bottom: 0.5rem;
}

.reports-page .card-body form > .row > .col-md-12 > .row:last-child {
  margin-bottom: 0;
}

.reports-page .card-body form > .row > .col-md-12 > .row > [class*="col-"] {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.reports-page .card-body .form-group {
  margin-bottom: 0.5rem;
}

.reports-page .report-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
  padding-top: 0;
}

.reports-page .control-label {
  display: block;
  font-weight: 400;
  color: #000;
  margin-bottom: 0.35rem;
}

.reports-page .form-control {
  border-color: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  color: #000;
}

.reports-page .form-control:focus {
  border-color: rgba(0, 0, 0, 0.3);
  color: #000;
  box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.06);
}

.reports-page .bootstrap-select.form-control {
  height: auto !important;
  min-height: 38px;
  padding: 0 !important;
  border: none !important;
  background: transparent;
  box-shadow: none;
}

.reports-page .bootstrap-select > .dropdown-toggle {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  border-radius: 10px;
  border-color: rgba(0, 0, 0, 0.15);
  color: #000;
  overflow: hidden;
}

.reports-page .bootstrap-select > .dropdown-toggle::after,
.reports-page .bootstrap-select > .dropdown-toggle .caret,
.reports-page .bootstrap-select > .dropdown-toggle .bs-caret {
  position: absolute !important;
  top: 50% !important;
  right: 0.85rem !important;
  left: auto !important;
  margin: 0 !important;
  transform: translateY(-50%);
  flex: none;
}

.reports-page .bootstrap-select > .dropdown-toggle .filter-option {
  position: static;
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  text-align: left;
  padding-right: 0;
}

.reports-page .bootstrap-select > .dropdown-toggle .filter-option-inner,
.reports-page .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  color: inherit;
}

.reports-page .bootstrap-select > .dropdown-toggle:focus,
.reports-page .bootstrap-select > .dropdown-toggle:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: #fff;
  color: #000;
}

.reports-page .bootstrap-select .dropdown-menu li a {
  color: #000;
}

.reports-page .bootstrap-select .dropdown-menu li a small {
  color: rgba(0, 0, 0, 0.45) !important;
}

.reports-page .bootstrap-select .dropdown-menu li.selected a,
.reports-page .bootstrap-select .dropdown-menu li.active a,
.reports-page .bootstrap-select .dropdown-menu li a:hover,
.reports-page .bootstrap-select .dropdown-menu li a:focus {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #000 !important;
}

.reports-page .bootstrap-select .dropdown-menu li.selected a small,
.reports-page .bootstrap-select .dropdown-menu li.active a small,
.reports-page .bootstrap-select .dropdown-menu li.active small,
.reports-page .bootstrap-select .dropdown-menu li.selected small,
.reports-page .bootstrap-select .dropdown-menu li a:hover small,
.reports-page .bootstrap-select .dropdown-menu li a:focus small {
  color: rgba(0, 0, 0, 0.45) !important;
}

.reports-page .card-body .btn-primary {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 400;
  padding: 0.5rem 1.25rem;
}

.reports-page .card-body .btn-primary:hover,
.reports-page .card-body .btn-primary:focus,
.reports-page .card-body .btn-primary:active {
  background: rgba(0, 0, 0, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.85) !important;
  color: #fff !important;
  box-shadow: none;
}

.dashboard-page.reports-page {
  margin-left: 0;
  margin-right: 0;
  padding: 1.25rem 0 2rem;
}

.dashboard-page.reports-page .row {
  margin-left: 0;
  margin-right: 0;
}

.dashboard-page.reports-page .tableCard {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 768px) {
  .dashboard-page.reports-page .row > .tableCard:first-child:not(:last-child) {
    padding-right: 0.75rem !important;
  }

  .dashboard-page.reports-page .row > .tableCard:last-child:not(:first-child) {
    padding-left: 0.75rem !important;
  }
}

.btn-primary {
  color: var(--brand-on-primary);
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  color: var(--brand-on-primary);
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-primary:focus,
.btn-primary.focus {
  color: var(--brand-on-primary);
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  -webkit-box-shadow: 0 0 0 0.15rem var(--brand-focus-ring);
  box-shadow: 0 0 0 0.15rem var(--brand-focus-ring);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: var(--brand-on-primary);
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  -webkit-box-shadow: 0 0 0 0.15rem var(--brand-focus-ring);
  box-shadow: 0 0 0 0.15rem var(--brand-focus-ring);
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: var(--brand-on-primary);
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Set padding to keep content from hitting the edges */
.body-content {
  padding-left: 15px;
  padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
  white-space: normal;
}

.viipay {
  background-color: var(--brand-primary);
  height: 10px;
}

.center {
  max-height: 150px;
  max-width: 150px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.sidebarButton {
  width: 40px;
  height: 40px;
  background: var(--brand-primary);
}

.sidebarButton span {
  width: 80%;
  height: 2px;
  margin: 0 auto;
  display: block;
  background: #555;
  transition: all 0.8s cubic-bezier(0.81, -0.33, 0.345, 1.375);
}

.page-item.active .page-link {
  background-color: #5c5b5c;
  border-color: #5c5b5c;
}

.list-group.list-group-tree {
  padding: 0;
}

.list-group.list-group-tree .list-group {
  margin-bottom: 0;
}

.list-group.list-group-tree > .list-group > .list-group-item {
  padding-left: 40px;
}

.list-group.list-group-tree > .list-group > .list-group > .list-group-item {
  padding-left: 40px;
}

.list-group.list-group-tree
  > .list-group
  > .list-group
  > .list-group-item
  > .list-group-item {
  padding-left: 60px;
}

.list-group.list-group-tree
  > .list-group
  > .list-group
  > .list-group-item
  > .list-group-item
  > .list-group-item {
  padding-left: 75px;
}

.list-group.list-group-tree
  > .list-group
  > .list-group
  > .list-group-item
  > .list-group-item
  > .list-group-item
  > .list-group-item {
  padding-left: 90px;
}

.text-primary {
  color: black !important;
}

.btn-info {
  background-color: white;
  color: black;
}

.bg-light-child {
  background-color: #ffffff !important;
}
.bg-light-child:hover {
  background-color: var(--brand-primary-soft) !important;
}

.markChild {
  background-color: var(--brand-primary-soft) !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--brand-primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--brand-primary);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.list-group {
  font-size: 0.9rem;
  font-weight: 300;
}

.flex-container {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
}

.flex-cell {
  flex: 0 0 20%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  /*    padding: 0.5rem;*/
  box-sizing: border-box;
  background-color: #eeeeee;
}

.flex-cell:before {
  content: "";
  display: table;
  padding-top: 100%;
}

.flex-cell-bon {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  /*    padding: 0.5rem;*/
  box-sizing: border-box;
}
.flex-cell-bon:before {
  content: "";
  display: table;
  padding-top: 100%;
}

.flex-item {
  flex-grow: 1;
  background: white;
  border: 1px white solid;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  word-break: break-word;
  font-size: 0.8rem;
  margin: 1px;
}
.flex-item:hover {
  background-color: lightgray;
  cursor: pointer;
}

.flex-item-details {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.1);
  border: 1px white solid;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  word-break: break-word;
  font-size: 0.8rem;
}

#module {
  margin: 30px auto;
  border: 2px solid #000;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  padding: 5px 5px 5px 5px;
  background-color: #2e2e2e;
  box-shadow: 10px 10px 40px #000;
}
#templateArticleList {
  display: none;
}

.tableCard {
  padding-right: 0px;
  padding-left: 0px;
}

.text-warning {
  color: var(--brand-primary) !important;
}

@media (min-width: 768px) {
  #module {
    margin: 0px auto;
    border: 2px solid #000;
    border-radius: 10px;
    width: 60%;
    height: 100%;
    max-width: 66%;
    padding: 10px 10px 10px 10px;
    background-color: #2e2e2e;
    box-shadow: 10px 10px 40px #000;
    display: block;
  }

  #templateArticleList {
    display: unset;
  }

  .tableCard {
    padding-right: 15px;
    padding-left: 15px;
  }
}

.screen {
  background-color: #1e1e1e;
  height: 100%;
}

#content {
  height: 100%;
  padding: 15px 15px 15px 15px;
  background-color: #eee;
}

.subTableContent {
  background-color: white;
  border: none !important;
  border-bottom: 1px solid #dee2e6 !important;
  border-top: 1px solid #dee2e6 !important;
}

.dropdown-menu {
  padding: 0;
}

.dropdown-item.active,
.dropdown-item:active,
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.active a,
.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li a:focus {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #111 !important;
}

.bootstrap-select .dropdown-menu li.active small,
.bootstrap-select .dropdown-menu li.selected small,
.bootstrap-select .dropdown-menu li a:hover small,
.bootstrap-select .dropdown-menu li a:focus small {
  color: rgba(0, 0, 0, 0.45) !important;
}

td.details-control {
  background: url("../Images/details_open.png") no-repeat center center;
  cursor: pointer;
}

tr.shown td.details-control {
  background: url("../Images/details_close.png") no-repeat center center;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/

#page-content-wrapper .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(14px, 2vw, 20px);
  margin-bottom: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#page-content-wrapper > .container-fluid {
  padding-top: 8px;
  padding-bottom: 12px;
}

#page-content-wrapper {
  min-width: 0;
  flex: 1 1 0;
}

#page-content-wrapper > .container-fluid > hr {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#page-content-wrapper > .container-fluid > footer {
  margin: 0;
  padding: 0;
}

#page-content-wrapper > .container-fluid > footer p {
  margin: 0;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.65);
}

#page-content-wrapper > .container-fluid > br,
#page-content-wrapper > .container-fluid > .container-fluid > br:first-child,
#page-content-wrapper
  > .container-fluid
  > .container-fluid
  > br:first-child
  + br {
  display: none;
}

.topbar-menu-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111111;
  font-size: 16px;
}

.topbar-menu-btn:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.topbar-logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.topbar-logout-link:hover {
  color: var(--brand-ink);
  text-decoration: none;
}

.topbar-logout-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  #page-content-wrapper .topbar {
    min-height: 56px;
    padding: 8px 12px;
  }

  .topbar-menu-btn {
    width: 32px;
    height: 32px;
  }
}

.dataTables_wrapper .dataTables_length {
  display: none !important;
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
  margin-left: 0;
  margin-right: 0;
}

.table-responsive {
  overflow-x: visible;
}

.table-responsive > .dataTables_wrapper {
  overflow: visible;
}

.table-responsive > .dataTables_wrapper > .row:nth-child(2) {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.table-responsive > .dataTables_wrapper > .row:nth-child(2) > div {
  min-width: 100%;
}

.dataTables_wrapper .dataTables_filter {
  margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter label {
  margin-bottom: 0;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-left: auto;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.dataTables_wrapper .dataTables_filter input {
  height: 36px;
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 12px;
  margin-left: 0;
  background-color: #ffffff;
  color: #292929;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary-soft);
}

.dataTables_wrapper .dataTables_filter input::placeholder {
  color: rgba(41, 41, 41, 0.55);
}

.dataTables_wrapper table.dataTable {
  width: 100% !important;
  min-width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 1px solid #f0f1f3 !important;
  border-radius: 12px;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
  padding: 16px 20px !important;
  background: rgba(0, 0, 0, 0.03) !important;
  color: #000000 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.005em;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.dataTables_wrapper table.dataTable thead th.sorting,
.dataTables_wrapper table.dataTable thead th.sorting_asc,
.dataTables_wrapper table.dataTable thead th.sorting_desc,
.dataTables_wrapper table.dataTable thead th.sorting_disabled {
  padding-right: 36px !important;
}

.dataTables_wrapper table.dataTable tbody td {
  padding: 16px 20px !important;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.005em;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.dataTables_wrapper table.dataTable.nowrap th,
.dataTables_wrapper table.dataTable.nowrap td {
  white-space: nowrap !important;
}

.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable tbody td {
  width: auto !important;
}

.dataTables_wrapper table.dataTable thead th:last-child,
.dataTables_wrapper table.dataTable tbody td:last-child {
  white-space: nowrap !important;
  /* Must beat the `width: auto !important` rule above, otherwise
     DataTables leftover width inflates the actions column. */
  width: 1% !important;
}

.dataTables_wrapper table.dataTable tbody tr:last-child td {
  border-bottom: 0 !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover td {
  background: var(--brand-hover-bg) !important;
  transition: background-color 0.15s ease-in-out;
}

.dataTables_wrapper table.dataTable thead tr th:first-child {
  border-top-left-radius: 12px;
}

.dataTables_wrapper table.dataTable thead tr th:last-child {
  border-top-right-radius: 12px;
}

.dataTables_wrapper table.dataTable tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.dataTables_wrapper table.dataTable tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 10px;
}

/* Import / Export action cards */
.io-action-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.io-action-grid > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.io-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.125rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.io-action-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--brand-accent-fade);
}

.io-action-card:hover,
.io-action-card:focus {
  outline: none;
  border-color: var(--brand-focus-ring);
  box-shadow: 0 4px 14px var(--brand-primary-soft);
  transform: translateY(-1px);
}

.io-action-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.io-action-card__body {
  flex: 1;
  min-width: 0;
}

.io-action-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.3;
  margin: 0;
}

.io-action-card__desc {
  font-size: 0.8125rem;
  color: var(--brand-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.io-action-card__arrow {
  flex-shrink: 0;
  color: var(--brand-muted);
  font-size: 0.875rem;
}

.io-action-card:hover .io-action-card__arrow {
  color: var(--brand-primary);
}

.io-action-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
}

.io-action-card__link:hover {
  text-decoration: underline;
  color: var(--brand-primary-hover);
}
