/* ---- Login form ---- */
.form-signin {
  max-width: 380px;
  padding: 1rem;
  margin: 0 auto;
}
.form-signin .form-control {
  font-size: 1rem;
}

/* ---- CSS Spinner (replaces gears.gif) ---- */
#loading.active {
  display: inline-block !important;
}

/* ---- Brand logo animation (.ktulxu effect) ---- */
.brand-logo {
  transition: all 0.49s ease-out;
  transform: rotate(4deg) scale(1) skew(1deg) translate(10px);
  filter: invert(1);
}
.brand-logo:hover {
  transform: rotate(4deg) scale(0.979) skew(19deg) translate(2px);
}

/* ---- Mini-calendar ---- */
.mini-cal {
  max-width: 350px;
}
.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-weight: 600;
}
.mini-cal-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--bs-body-color);
}
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.mini-cal-dow {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem;
  color: var(--bs-secondary-color);
}
.mini-cal-day {
  padding: 0.35rem 0.25rem;
  font-size: 0.85rem;
  border-radius: 4px;
}
.mini-cal-empty {
  /* empty cell placeholder */
}
.mini-cal-occupied,
.mini-cal-occupied-open {
  background-color: #5fba7d;
  color: #fff;
}
.mini-cal-occupied-closed {
  background-color: #6c757d;
  color: #fff;
}
.mini-cal-occupied-mixed {
  background-color: #f0ad4e;
  color: #fff;
}
.mini-cal-past {
  background-color: #fda588;
  color: #333;
}
.mini-cal-future {
  background-color: #fff;
  border: 1px solid #eee;
}
.mini-cal-today {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}

.mini-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.72rem;
  color: var(--bs-secondary-color);
}
.mini-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.mini-cal-legend-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
}

#moncalclick {
  cursor: pointer;
  color: var(--bs-gray-600);
  font-weight: 400;
  text-decoration: underline;
}
#moncalclick > i {
  text-decoration: none;
  margin-right: 1rem;
}

@media (max-width: 575.98px) {
  .mini-cal {
    max-width: 100%;
  }
}

/* ---- Report table: quantity highlight ---- */
/* Bootstrap 5 renders row highlights via box-shadow (the striped overlay) on td,
   not background-color on tr. Override both properties with !important on td. */
tr.has-quantity > td,
tr.has-quantity > th {
  background-color: #d4edda !important;
  box-shadow: none !important;
}

/* ---- Vault page ---- */
.clickcaption {
  cursor: pointer;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--bs-primary);
  margin-left: 1rem;
  text-decoration: underline;
}
#hiderow {
  display: none;
  margin-top: 1.5rem;
}

/* ---- Content area spacing ---- */
body > main {
  flex: 1;
}
main > .container {
  padding-top: 1.5rem;
}


.datatable-controls-wrap {
  display: flex;
  background-color: var(--bs-gray-100);
  width: 100%;
  padding: 48px 40px;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.datatable-search {
  width: 300px;
  margin-bottom: 0.4rem;  
}

.datatable-wrapper.no-footer .datatable-container {
    border-bottom: none;
}


.table {
  --bs-table-striped-bg: #F0FAFE !important;
}

/* ---- Scroll buttons ---- */
#scroll-btns {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1050;
}
#scroll-top,
#scroll-bottom {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#scroll-top.visible,
#scroll-bottom.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Smartphone rules */
@media (max-width: 575.98px) {
  .datatable-controls-wrap {
    flex-direction: column-reverse;
  }
  .datatable-search {
    width: 100%;
  }

}