body,
td,
th,
select,
option,
input,
textarea,
label {
  font-size: 0.9em;
  font-family: 'Trebuchet MS', sans-serif;
}

html,
body,
div,
span,
applet,
object,
iframe,
blockquote,
button,
pre,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
input,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  padding: 0;
  margin: 0;
  border: 0;
  vertical-align: baseline;
  -webkit-margin-before: 0;
  margin-before: 0;
  -webkit-margin-after: 0;
  margin-after: 0;
  -webkit-margin-start: 0;
  margin-start: 0;
  -webkit-margin-end: 0;
  margin-end: 0;
  -webkit-margin-block-start: 0;
  margin-block-start: 0;
  -webkit-margin-block-end: 0;
  margin-block-end: 0;
  -webkit-padding-start: 0;
  padding-start: 0;
  -webkit-padding-end: 0;
  padding-end: 0;
  -webkit-padding-inline-start: 0;
  padding-inline-start: 0;
  -webkit-padding-inline-end: 0;
  padding-inline-end: 0;
}

.sticky-top {
  position: sticky;
  top: 0px;
}

.sticky-bottom {
  position: sticky;
  bottom: 0px;
}


body {
  min-height: 100vh;
  padding-top: 70px;
}

@media only screen and (min-width: 992px) {
  body {
    padding-top: 95px;
  }
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

p {
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

blockquote {
  border-left: 4px solid darkgrey !important;
}

.clear {
  zoom: 1;
}

.clear:before,
.clear:after {
  content:"";
  display:table;
}

.clear:after {
  clear:both
}

.flex {
  display: flex;
}

.flex-center-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logincontent {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.login-image-wrapper {
  width: 100%;
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.login-image-wrapper > * {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  margin-bottom: 12px;
}

.logo-rotation {
  transform: rotateY(0deg);
  animation-name: LogoRotation;
  animation-delay: 15000ms;
  animation-duration: 40000ms;
  animation-iteration-count: infinite;
}

@keyframes LogoRotation {
  0% {
    transform: rotateY(0deg);
  }
  2.5% {
    transform: rotateY(180deg);
  }
  4.9% {
    transform: rotateY(360deg);
  }
  5% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

#logincontent form div {
  position: relative;
  width: 100%;
  clear: both;
}

#logincontent form #logmein {
  text-align: center;
}

#logincontent form input {
  width: 100%;
  margin-bottom: 10px;
}

input[type='submit'] {
  cursor: pointer;
}

.relative {
  position: relative;
}

.underline-link {
  text-decoration: underline;
}

.underline-link:hover {
  text-decoration: none;
}

.writable-section {
  display: block;
  width: 100%;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tui-editor-defaultUI {
  border: none !important;
}

.btn > svg {
  width: 14px;
  height: 14px;
}

.btn-brick {
  padding: 0.46875rem;
}

.mr-1 {
  margin-right: 0.25rem !important;
}

.header-form-wrapper {
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 1rem;
}

.installer-header-wrapper {
  margin-bottom: 1.5rem;
}

/* ----- SWITCH ----- */

.header-switch {
  margin-left: 16px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 1rem;
}

.toggle-control {
  display: block;
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 22px;
  user-select: none;
  margin-right: 5px;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-control input:checked ~ .control {
  background-color: dodgerblue;
}

.toggle-control input:checked ~ .control:after {
  left: 18px;
}

.toggle-control .control {
  position: absolute;
  top: 0;
  left: 0;
  height: 15px;
  width: 32px;
  border-radius: 15px;
  background-color: darkgray;
  transition: background-color 0.15s ease-in-out;
}
.toggle-control .control:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  transition: left 0.15s ease-in-out;
}
.min-w-user-edit {
  min-width: 125px;
}

.header-switch-drop-label-m-left {
  margin-left: 8px;
}

.header-switch-drop-label-m-right {
  margin-right: 8px;
}

/* FIXED NAVIGATION */

.navbar-fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1031;
  border-width: 0 0 1px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.navbar-nav-wrapper {
  flex-grow: 1;
}

.nav-link-active {
    font-weight: bold;
}

@media only screen and (max-width: 991px) {
  .search-in-main-menu {
    position: absolute;
    top: 0px;
    right: 4px;
    max-width: 250px;
  }
}

@media only screen and (min-width: 992px) {
  .search-in-main-menu {
    display: inline-block;
  }
}

.breadcrumbs-fixed-top {
  display: block;
}

@media only screen and (min-width: 992px) {
  .breadcrumbs-fixed-top {
    position: fixed;
    top: 59px;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: white;
  }
}

.breadcrumb-side-left,
.breadcrumb-side-right {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media only screen and (min-width: 768px) {
  .breadcrumb-side-left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }

  .breadcrumb-side-right {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 75%;
  }
}

@media only screen and (min-width: 992px) {
  .breadcrumb-side-left,
  .breadcrumb-side-right {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '';
  padding: 0;
  color: transparent;
}

.breadcrumb-item {
  font-size: 12px;
}

.breadcrumb-item.active {
  font-weight: bold;
}

/* ---- HEADER HELP ---- */

.help-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
    padding: 5px 15px;
    margin-top: 10px;
}

.help-card > p {
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
}

.help-card > img {
  border: 5px solid #0D0D0D;
  margin: 5px auto;
  width: 100px;
  height: auto;
  display: block;
}

/* ----- BUTTON UNDREAD INDICATOR ----- */

.unread_record {
    background-color:moccasin !important;
}

.unread-indicator{
  font-size: 0.75rem;
  color: #FFFFFF;
  background-color: #D92D2D;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 9999px;
  min-width: 1rem;
  height: 1rem;
  padding-left: 4px;
  padding-right: 4px;
  position: absolute;
}

@media only screen and (max-width: 992px) {

  .unread-indicator {
    top: 50%;
    transform: translateY(-50%);
    right: 4px;
  }
}

@media only screen and (min-width: 992px) {

  .unread-indicator {
    bottom: 20px;
    right: -8px;
  }
}

/* ------ CATEGORY HEADER NAVIGATION ------ */

.header-wrapper-left,
.header-wrapper-right {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

@media only screen and (min-width: 768px) {

  .header-wrapper-left,
  .header-wrapper-right {
    flex-wrap: nowrap;
    margin-bottom: 0px;
  }

  .header-wrapper-left {
    justify-content: flex-start;
  }

  .header-wrapper-right {
    justify-content: flex-end;
  }
}

.prolink-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  width: auto;
}

@media only screen and (max-width: 992px) {
  .prolink-wrapper {
    margin: 1rem 0;
  }
}

.prolink-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.prolink-icons > svg {
  width: 24px;
  height: 24px;
}

/* ------ PERSONS ------ */

.table-no-wrap,
.table-no-wrap-left,
.table-no-wrap-right {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

@media only screen and (min-width: 768px) {

  .table-no-wrap-left {
    justify-content: left;
  }

  .table-no-wrap-right {
    justify-content: right;
  }
}

@media only screen and (max-width: 768px) {
  .mobile-no-show {
    display: none;
  }
}

@media only screen and (max-width: 992px) {
  .tablet-no-show {
    display: none;
  }
}

.table-cell-subtitle {
  max-width: 250px;
  word-break: break-word;
  margin: 0;
  font-size: 12px;
}

@media only screen and (min-width: 992px) {
  .table-cell-subtitle {
    font-size: 14px;
  }
}

.table-cell-title {
  margin: 0 0 6px;
  font-size: 16px;
}

@media only screen and (max-width: 768px) {
  .table-cell-title {
    text-align: center;
  }
}

.table-badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .table-badge-wrapper {
    justify-content: flex-start;
  }
}

@media only screen and (min-width: 768px) {
  .table-sticky-header {
    background-color: #FFFFFF;
    position: sticky;
    top: 100px;
  }
}

.identity-main-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

@media only screen and (max-width: 768px) {
  .identity-main-wrapper {
    display: block;
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .table-w-full-cell {
    display: block;
    max-width: 100%;
  }
}

.persons-image-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.persons-image-cropper {
  width: 75px;
  height: 75px;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.persons-image-cropper > img {
  width: auto;
  height: 100%;
  position: absolute;
  max-height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

@media only screen and (max-width: 768px) {

  .persons-image-wrapper {
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 8px;
  }

  .persons-image-cropper {
    width: 150px;
    height: 150px;
    background-color: transparent;
  }
}

.persons-identification-wrapper {
  margin-left: 8px;
  max-width: 250px;
}

@media only screen and (max-width: 768px) {
  .persons-identification-wrapper {
    display: block;
    width: 100%;
    margin: 0 auto;
  }
}

/* ----- VIEW TEMPLATE ----- */

.view-category-divider {
  width: 100%;
  height: 1px;
  margin-top: 8px;
  margin-bottom: 8px;
  background-color: #555;
  border: 0;
}

.view-category-wrapper {
  position: relative;
  border: 2px solid #333;
  margin: 1rem 0;
  padding: 1rem 0.5rem 0rem;
  height: calc(100% - 1rem);
}

.view-category-name {
  font-weight: bold;
  background-color: #FFF;
  position: absolute;
  bottom: calc(100% - 0.5rem);
  left: 2rem;
  max-width: calc(100% - 2rem);
  padding: 0 1rem;
}

.view-detail-highlight {
  background-color: #F7F7F7;
  padding: 0.25rem 0.5rem;
}

.view-symbol-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.system-notes-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.system-note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  min-width: 250px;
  min-height: 65px;
  position: relative;
  margin: 0 1rem 1rem 0;
  padding: 10px 45px 5px 10px;
    box-shadow: 0 -1px 7px 1px #333;
  border-bottom-width: 3px;
  border-bottom-style: solid;
}

@media only screen and (min-width: 768px) {
  .system-note {
    width: auto;
  }
}

.system-note-peel {
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: 0;
  height: 60px;
  width: 60px;
}

.system-note-peel:before {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  content: "";
  height: 31px;
  width: 61px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-right-radius: 50%
}

.system-note-peel:after {
  position: absolute;
  z-index: 6;
  bottom: 0px;
  right: 30px;
  content: "";
  height: 61px;
  width: 31px;
  border-bottom-right-radius: 50%
}

.system-note-peel-back {
  position: absolute;
  z-index: 2;
  bottom: 5px;
  right: 19px;
  width: 20px;
  height: 46px;
  transform: rotate(45deg);
}

.system-note p {
  font-style: italic;
  z-index: 10;
}

.system-note-title {
  font-weight: bold;
  text-decoration: underline;
  flex-shrink: 0;
}

.system-note-note {
  flex-grow: 1;
}

.system-note-creator {
  align-self: flex-end;
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  max-width: 400px;
  margin-block-start: 15px;
}

.system-note-stamp {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  font-size: 12px;
  line-height: 18px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  text-align: center;
  font-style: normal;
  font-weight: bold;
  text-transform: uppercase;
}

.system-note-delete-wrapper {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 5;
}

.system-note-delete {
  border: 2px solid #D92D2D;
  border-radius: 4px;
  color: #D92D2D;
  padding: 0px;
}

.system-note-delete:hover {
  border-color: #6c1414;
  color: #6c1414;
}

.system-note-delete svg {
  width: 16px;
  height: 16px;
}

/* ---- NOTE COLORS ---- */
/* default */
.system-note.note-color-default {
  background-color: #FFFF66;
  border-bottom-color: #E6E65C;
}

.system-note.note-color-default .system-note-peel {
  background-color: #E6E65C;
}

.system-note.note-color-default .system-note-peel:before {
  background-color: #FFFF66;
  border-bottom-color: #B8B84A;
}

.system-note.note-color-default .system-note-peel:after {
  background-color: #FFFF66;
}

.system-note.note-color-default .system-note-peel-back {
  background-color: #CCCC6A;
}

/* secret */

.system-note.note-color-secret {
  background-color: #ffcccc;
  border-bottom-color: #ffb3b3;
}

.system-note.note-color-secret .system-note-stamp {
  color:#D92D2D;
}

.system-note.note-color-secret .system-note-peel {
  background-color: #ffb3b3;
}

.system-note.note-color-secret .system-note-peel:before {
  background-color: #ffcccc;
  border-bottom-color: #ff8080;
}

.system-note.note-color-secret .system-note-peel:after {
  background-color: #ffcccc;
}

.system-note.note-color-secret .system-note-peel-back {
  background-color: #ff9999;
}

/* personal */

.system-note.note-color-personal {
  background-color: #ebfafa;
  border-bottom-color: #d6f5f5;
}

.system-note.note-color-personal .system-note-stamp {
  color:darkblue;
}

.system-note.note-color-personal .system-note-peel {
  background-color: #d6f5f5;
}

.system-note.note-color-personal .system-note-peel:before {
  background-color: #ebfafa;
  border-bottom-color: #adebeb;
}

.system-note.note-color-personal .system-note-peel:after {
  background-color: #ebfafa;
}

.system-note.note-color-personal .system-note-peel-back {
  background-color: #c2f0f0;
}

/* deleted */

.system-note.note-color-deleted {
  background-color: #f5f5f0;
  border-bottom-color: #ebebe0;
}

.system-note.note-color-deleted .system-note-stamp {
  color:#D92D2D;
}

.system-note.note-color-deleted .system-note-peel {
  background-color: #ebebe0;
}

.system-note.note-color-deleted .system-note-peel:before {
  background-color: #f5f5f0;
  border-bottom-color: #d6d6c2;
}

.system-note.note-color-deleted .system-note-peel:after {
  background-color: #f5f5f0;
}

.system-note.note-color-deleted .system-note-peel-back {
  background-color: #e0e0d1;
}

/* ----- VIEW FILE ----- */

.file-link {
  text-decoration: none;
}

.file-link:hover {
  text-decoration: none;
}

.view-files-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
}

.view-file-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: auto;
  padding: 0.5rem;
  border: 2px solid darkgrey;
}

@media only screen and (min-width: 768px) {
  .view-file-wrapper {
    width: auto;
  }
}

.view-file-edit-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.view-file-edit-wrapper a {
  width: 100%;
  height: auto;
  display: block;
}

@media only screen and (min-width: 768px) {
  .view-file-edit-wrapper {
    width: auto;
  }
}

.view-file-icon {
  display: inline-block;
  width: 75px;
  height: auto;
  margin-right: 10px;
}

.view-file-name {
  white-space: nowrap;
}

.view-file-name {
  text-decoration: none;
  white-space: nowrap;
}

.view-file-name:hover {
  text-decoration: underline;
}

.view-file-creator {
  color: #0D0D0D;
  font-size: 11px;
  text-decoration: none !important;
  white-space: nowrap;
}

/* ----- EDIT TEMPLATE ----- */

.edit-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  height: auto;
  min-height: 100px;
}

/* ----- STICKY BEHAVIOR ----- */

.sticky-bottom {
  position: sticky;
  bottom: 0px;
}

/* ----- Z-INDEX ----- */

.z-30 {
  z-index: 30;
}

/* ----- SEARCH HEADER ----- */


.search-wrapper-left,
.search-wrapper-right {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

@media only screen and (min-width: 768px) {

  .search-wrapper-left,
  .search-wrapper-right {
    flex-wrap: nowrap;
    margin-bottom: 0px;
  }

  .search-wrapper-left {
    justify-content: flex-start;
  }

  .search-wrapper-right {
    justify-content: flex-end;
  }
}
/* ----- BUBBLETIP TOOLTIP ----- */

/* weird behavior on bootstrap tooltip so I made my own */

html {
  --tooltip-gap: 5px;
}

.tip-wrapper {
  position: relative;
}

.bubbletip {
  position: absolute;
  display: none;
  background-color: #0D0D0D;
  color: #FFFFFF;
  font-size: 11px;
  line-height: 0.95;
  padding: 1px 2px 2px;
  border-radius: 2px;
  z-index: 10;
}

.bubbletip:before {
  position: absolute;
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
}

.bubbletip-top-left:before,
.bubbletip-top-right:before,
.bubbletip-top-center:before {
  border-top-width: var(--tooltip-gap);
  border-top-color: #0D0D0D;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-left-width: calc(var(--tooltip-gap) * 2 / 3);
  border-right-color: transparent;
  border-right-width: calc(var(--tooltip-gap) * 2 / 3);
}

.bubbletip-bottom-left:before,
.bubbletip-bottom-right:before,
.bubbletip-bottom-center:before {
  border-top-color: transparent;
  border-bottom-width: var(--tooltip-gap);
  border-bottom-color: #0D0D0D;
  border-left-color: transparent;
  border-left-width: calc(var(--tooltip-gap) * 2 / 3);
  border-right-color: transparent;
  border-right-width: calc(var(--tooltip-gap) * 2 / 3);
}

.bubbletip-top-left {
  bottom: calc(100% + var(--tooltip-gap));
  left: 0;
}

.bubbletip-top-left:before {
  top: 100%;
  left: var(--tooltip-gap);
}

.bubbletip-top-center {
  bottom: calc(100% + var(--tooltip-gap));
  left: 50%;
  transform: translateX(-50%);
}

.bubbletip-top-center:before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.bubbletip-top-right {
  bottom: calc(100% + var(--tooltip-gap));
  right: 0;
}

.bubbletip-top-right:before {
  top: 100%;
  right: var(--tooltip-gap);
}

.bubbletip-bottom-left {
  top: calc(100% + var(--tooltip-gap));
  left: 0;
}

.bubbletip-bottom-left:before {
  bottom: 100%;
  left: var(--tooltip-gap);
}

.bubbletip-bottom-center {
  top: calc(100% + var(--tooltip-gap));
  left: 50%;
  transform: translateX(-50%);
}

.bubbletip-bottom-center:before {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.bubbletip-bottom-right {
  top: calc(100% + var(--tooltip-gap));
  right: 0;
}

.bubbletip-bottom-right:before {
  bottom: 100%;
  right: var(--tooltip-gap);
}

.tip-wrapper:hover .bubbletip {
  display: block;
}
