html {
  font-size: 14px;
}

:root {
  --ws-primary: #2366ad;
  --ws-primary-dark: #164f8b;
  --ws-primary-light: #eaf3ff;
  --ws-primary-border: #9dbfe8;
  --ws-table-border: #8ea9c7;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(35, 102, 173, .35);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Wonder Solutions blue system theme */
.btn-primary {
  color: #fff;
  background-color: var(--ws-primary) !important;
  border-color: var(--ws-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff;
  background-color: var(--ws-primary-dark) !important;
  border-color: var(--ws-primary-dark) !important;
}

.btn-outline-primary {
  color: var(--ws-primary) !important;
  border-color: var(--ws-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff !important;
  background-color: var(--ws-primary) !important;
  border-color: var(--ws-primary) !important;
}

.bg-dark,
.card-header.bg-dark,
.table-dark {
  background-color: var(--ws-primary) !important;
  color: #fff !important;
}

.table-dark th,
.table-dark td {
  background-color: var(--ws-primary) !important;
  border-color: var(--ws-primary-dark) !important;
  color: #fff !important;
}

.table thead.table-dark th,
.table thead.table-dark td,
thead.table-dark th,
thead.table-dark td {
  background-color: var(--ws-primary) !important;
  border-color: var(--ws-primary-dark) !important;
  color: #fff !important;
}

.table > thead > tr > th,
.table > thead > tr > td,
table thead th,
table thead td {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: middle !important;
  text-align: center !important;
  line-height: 1.3;
}

.table > thead > tr > th.text-nowrap,
.table > thead > tr > td.text-nowrap,
table thead th.text-nowrap,
table thead td.text-nowrap {
  white-space: normal !important;
}

.table > thead > tr > th.text-end,
.table > thead > tr > td.text-end,
table thead th.text-end,
table thead td.text-end {
  text-align: center !important;
}

.table thead .table-header-line,
table thead .table-header-line {
  display: inline-block;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.permission-matrix-table th,
.permission-matrix-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.permission-matrix-table .permission-screen-column {
  min-width: 180px;
}

.permission-matrix-table .permission-checkbox-column {
  min-width: 92px;
  text-align: center;
}

.table-bordered > :not(caption) > * > * {
  border-color: var(--ws-table-border);
}

.card-header {
  font-weight: 600;
}

.badge.bg-primary {
  background-color: var(--ws-primary) !important;
}

a {
  color: var(--ws-primary);
}

a:hover {
  color: var(--ws-primary-dark);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .table > thead > tr > th,
  .table > thead > tr > td,
  table thead th,
  table thead td {
    white-space: normal !important;
    vertical-align: middle !important;
    text-align: center !important;
  }
}
.technical-office-submenu {
    position: relative;
}

.technical-office-submenu > .dropdown-menu {
    top: -0.4rem;
    left: calc(100% - 2px);
    min-width: 230px;
    margin-left: 0;
    display: none !important;
}

.technical-office-submenu:hover > .dropdown-menu,
.technical-office-submenu > .dropdown-menu.show {
    display: block !important;
}

.technical-office-submenu > .dropdown-toggle::after {
    float: right;
    margin-top: 0.55rem;
}

@media (max-width: 991.98px) {
    .technical-office-submenu > .dropdown-menu {
        position: absolute;
        top: -0.4rem;
        left: calc(100% - 2px);
        margin: 0;
        box-shadow: var(--bs-box-shadow) !important;
    }
}
