/* YoungBit — app-specific overrides (Tabler base from CDN) */
:root {
  --yb-radius: 0.25rem;
}
.badge-yb {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2em 0.5em;
  border-radius: var(--yb-radius);
}
.table > :not(caption) > * > * {
  vertical-align: middle;
}
.page-title {
  margin-bottom: 1rem;
}

/* Image attachments: carousel + comment overlay (Ticket activity) */
.yb-attachment-carousel {
  --yb-carousel-h: min(70vh, 480px);
  position: relative;
  border-radius: var(--tb-border-radius, 0.25rem);
  overflow: hidden;
  background: #1d273b;
}
.yb-attachment-carousel .carousel-inner {
  min-height: 200px;
}
.yb-attachment-carousel .carousel-item img,
.yb-attachment-carousel .carousel-item .yb-carousel-img {
  display: block;
  width: 100%;
  height: var(--yb-carousel-h);
  object-fit: contain;
  object-position: center;
  background: #0f1419;
}
.yb-attachment-carousel .carousel-yb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.75rem 1rem 0.5rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  pointer-events: none;
  max-height: 45%;
  overflow-y: auto;
}
.yb-attachment-carousel .carousel-yb-overlay .yb-richtext,
.yb-attachment-carousel .carousel-yb-overlay p,
.yb-attachment-carousel .carousel-yb-overlay .small {
  color: #fff;
}
.yb-attachment-carousel .carousel-yb-overlay a {
  color: #7dd3fc;
  pointer-events: auto;
}
.yb-attachment-carousel .carousel-control-prev,
.yb-attachment-carousel .carousel-control-next {
  z-index: 3;
}
.yb-attachment-carousel .carousel-indicators {
  z-index: 3;
  margin-bottom: 0.35rem;
}
.yb-attachment-carousel--single .carousel-control-prev,
.yb-attachment-carousel--single .carousel-control-next,
.yb-attachment-carousel--single .carousel-indicators {
  display: none;
}
.yb-attachment-carousel--multi .carousel-yb-overlay {
  bottom: 2.5rem;
}
