#wallpaper {
  z-index: 1;
  background-image: url("../img/wallpaper.webp");
  background-position: center;
  height: 70vh;
  width: 100%;
}

.litepicker svg {
  fill: #206bc4 !important;
}

/* Maybe will be obsolete after Tabler is updated to newer version */
.nav-link.active {
  background-color: var(--tblr-navbar-active-bg)
}

.navbar {
  --tblr-navbar-color: var(--tblr-heading-color)
}

li.nav-item:hover:not(:has(.dropdown-item)) {
  background-color: rgba(var(--tblr-muted-rgb), .04);
}

li.nav-item .dropdown-item:hover {
  background-color: rgba(var(--tblr-muted-rgb), .04);
}

a.nav-link:hover>span.nav-link-icon {
  color: var(--tblr-dropdown-link-hover-bg);
}

li.nav-item .dropdown-item:hover:not(:hover) {
  background-color: transparent;
}


.table-hover>tbody>tr:hover>* {
  --tblr-table-accent-bg: transparent;
  background-color: rgba(var(--tblr-muted-rgb), .04);
}

.download-icon {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  margin-right: 4px;
  padding-right: 5px;
  z-index: 1;
}

.img-container:hover .download-icon {
  display: block;
}

.img-container:hover .img-thumbnail-custom {
  transform: scale(1.07);
  cursor: pointer;
}

.img-container {
  position: relative;
  margin: 1px;
}

.img-container a {
  text-decoration: none;
}

.img-thumbnail-custom {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.img-count-badge {
  position: absolute;
  font-size: 20px;
  text-shadow:
    -1px -1px 0 white,
    1px -1px 0 white,
    -1px 1px 0 white,
    1px 1px 0 white;

  color: #888;
  top: 0;
  margin: 1px;
  margin-left: 1px;
  padding-left: 1px;
  z-index: 1;
  line-height: 15px;
}


.attachment-title {
  position: absolute;
  bottom: 0;
  margin: 0;
  font-size: 16px;
  left: 0;
  right: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: #6c757d;
}

button.no-gallery.download-icon.file-download {
  background: none;
  border: none;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 10;
  width: 87%;
  height: 15%;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 10px;

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

.image-container {
  position: relative;
  display: inline-block;
}

.icon-img-cont {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 200px;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height .35s linear;
}

.svg-container {
  transform: scale(1.5);
  display: inline-block;
  color: #b9b9b9;
}

figure.attachment {
  margin-left: 10px;
  display: inline-block;
  width: 110px;
  overflow: hidden;
}

.highlighted {
  background-color: rgba(0, 128, 0, 0.5);
  transition: background-color 0s linear;
}

.highlighted-out {
  background-color: white;
  transition: background-color 1.6s linear;
}

div.bg.private-comments {
  background-color: #a8a8a8;
  color: white;
}

.servicepick {
  cursor: pointer;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  -ms-transition: all .5s;
  transition: all .5s;
}

.service-remove {
  cursor: pointer;
}

thead input {
  width: 100%;
}

table.datatable {
  border-collapse: collapse;
}

table.datatable thead tr {
  background-color: var(--tblr-bg-surface);
}

table.datatable th,
table.datatable td {
  border: 1px solid #dee2e6;
  padding: 4px;
}

@media (max-width: 768px) {
  .delete-icon {
    opacity: 1;
  }
}

@media (min-width: 769px) {
  .delete-icon {
    opacity: 0;
    transition: opacity 0.2s;
  }

  .list-group-item:hover .delete-icon {
    opacity: 1;
  }
}

@media print {
  .print-section {
    display: block;
  }


  #printOptionsModal {
    display: none !important;
  }

  .ticket-section {
    color: #000 !important;
  }

  .p-print {
    padding: 0 !important;
  }

  .avoid-page-break {
    display: block;
    page-break-before: avoid;
  }

  div>figure.attachment {
    display: none;
  }

  .font-print {
    font-size: 16px;
    color: black !important;
  }

  .title-print {
    font-size: 18px;
    font-weight: bold;
    color: black;
  }

  .border-print {
    padding: 0 2px !important;
    border: 1px solid #ccc;
  }

  .form-check-input {
    --tblr-form-check-bg: transparent;
  }

  .table tbody tr td {
    color: black;
    --tblr-table-bg-type: transparent !important;
  }


  text.toothNumber {
    fill: black !important;
  }

  rect.bridgeLine.line {
    stroke: black !important;
  }

  path.toothShape.shape {
    stroke: black !important;
  }

  path.toothShape.bridge {
    fill: #eceffd !important;
    stroke: #4263eb !important;
  }

  rect.toothBridge.bridge {
    fill: #eceffd !important;
  }

  path.toothShape.single {
    fill: #e8f6f8 !important;
    stroke: #17a2b8 !important;
  }

  g.toothImplant.implant path,
  g.toothImplant.implant line {
    fill: #fef0e6 !important;
  }
}


.tooth {
  stroke: black;
  font-size: 24pt;
}

text.toothNumber {
  fill: black;
  font-size: 24pt;
  font-weight: 700;
  font-family: var(--tblr-font-sans-serif);
  font-size: 24pt;
}

text.toothNumber.selected {
  fill: white;
}

path.toothShape {
  stroke: none;
  fill: none;
}

rect.tooth.btn {
  fill: transparent;
  stroke: none;
}

rect.toothBridge {
  fill: none;
  stroke: none;
}

g.toothImplant path,
g.toothImplant line {
  fill: none;
  stroke: none;
}

g.toothImplant.implant path,
g.toothImplant.implant line {
  fill: rgba(var(--tblr-orange-lt-rgb));
  stroke: #505050;
  stroke-width: 2.1602;
}


path.toothShape.shape {
  fill: none;
  stroke: black;
  stroke-width: 3px;
}

path.toothShape.fill {
  fill: rgba(var(--tblr-cyan-rgb));
  stroke: none;
  stroke-width: 3px;
}

path.toothShape.bridge {
  fill: rgba(var(--tblr-indigo-lt-rgb));
  stroke: #4263eb;
  stroke-width: 3px;
}

rect.toothBridge.bridge {
  fill: rgba(var(--tblr-indigo-lt-rgb));
  stroke: none;
}

rect.bridgeLine {
  fill: none;
  stroke: none;
}

rect.bridgeLine.line {
  stroke: black;
}

path.toothShape.single {
  fill: rgba(var(--tblr-cyan-lt-rgb));
  stroke: rgba(var(--tblr-cyan-rgb));
  stroke-width: 3px;
}

rect.toothBridge.change {
  fill: #4263eb;
  stroke: none;
}

path.toothShape.change {
  fill: #4263eb;
  stroke: black;
  stroke-width: 3px;
}

path.toothShape.single.change {
  fill: rgba(var(--tblr-cyan-rgb));
  stroke: black;
  stroke-width: 3px;
}

/* Quick fix for Trix editor dark mode while https://github.com/basecamp/trix/issues/947 is not resolved */
.trix-button {
  background: #fff !important;
}

trix-editor.trix-content>div>figure.attachment.attachment--preview {
  width: auto;
}

.modal-content.dental {
  width: 150%;
}

.trix-content .attachment--preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* dental map dark mode */

html[data-bs-theme=dark] text.toothNumber {
  fill: white;
}

html[data-bs-theme=dark] rect.bridgeLine.line {
  stroke: white;
}

html[data-bs-theme=dark] path.toothShape.shape {
  stroke: white;
}

html[data-bs-theme=dark] path.toothShape.bridge {
  fill: rgba(var(--tblr-indigo-lt-rgb));
  stroke: #4263eb;
}

html[data-bs-theme=dark] rect.toothBridge.bridge {
  fill: rgba(var(--tblr-indigo-lt-rgb));
}

html[data-bs-theme=dark] path.toothShape.single {
  fill: rgba(var(--tblr-cyan-lt-rgb));
  stroke: rgba(var(--tblr-cyan-rgb));
}

html[data-bs-theme=dark] rect.toothBridge.change {
  fill: #4263eb;
  stroke: none;
}

html[data-bs-theme=dark] path.toothShape.change {
  fill: #4263eb;
  stroke: black;
  stroke-width: 3px;
}

html[data-bs-theme=dark] path.toothShape.single.change {
  fill: rgba(var(--tblr-cyan-rgb));
  stroke: black;
  stroke-width: 3px;
}

.input-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1;
  border: 1px solid #ced4da;
}

.input-group .btn svg {
  width: 1em;
  height: 1em;
  margin: 0;
}

.text-truncate div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 17vw;
}

table.table.dataTable>tbody>tr.selected>* {
  box-shadow: inset 0 0 0 9999px #e8e9ec !important;
  color: black !important;
}

div.dt-scroll-body {
  border-bottom-color: #dee2e6;
}

div.dt-scroll-body::-webkit-scrollbar {
  width: 1px;
}

.dropzone .dz-preview div.dz-image {
  width: 80px;
  height: 80px;
  position: relative;
}

div.dropzone div.dz-preview a.dz-remove {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  z-index: 5000;
  display: none;
}

.dz-preview .dz-remove::after {
  content: '×';
}

div.dropzone div.dz-preview:hover a.dz-remove {
  display: block;
  text-decoration: none;
}

.tag-item:hover {
  z-index: 2;
}

.tag {
  --tag-color: white;
  background-color: color-mix(in srgb, white, color-mix(in srgb, white, var(--tag-color)));
  border-color: var(--tag-color);
  gap: 0.1rem;
  padding: 0.2rem;
  color: black;
}

.tag-dt {
  width: 1rem;
  height: 1rem;
  border-radius: 0.18rem;
}

.legend.order-tag-legend {
  --legend-background-color: white;
  background-color: var(--legend-background-color);
  width: 1rem;
  height: 1rem;
}

.file-extension {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(204, 204, 204);
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.list-group-item:hover {
  background-color: transparent;
  cursor: default;
}

th.th-narrow {
  max-width: 40px;
  white-space: nowrap;
}

.btn-hover-red:hover {
  outline: 2px solid red;
}

#pricebook-form .col-form-label {
  max-width: 100px;
}

#pricebook-form .col-sm-10,
#pricebook-form .col {
  flex: 1 1 0%;
}

@media (min-width: 769px) {
  .currency-count-width {
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .currency-count-sm-width {
    min-width: 80px;
  }
}

.price-column-width {
  width: 40px;
}

.checkbox-sm {
  transform: scale(0.85);
  transform-origin: center;
}
