﻿.primary-red-bg {
  background-color: #ae152d;
}

.primary-red-bg.btn:hover {
  background-color: #820317;
}

.red-border-bottom {
  border-bottom: 3px solid #ae152d;
}

.red-border-top {
  border-top: 3px solid #ae152d;
}

.red-font {
  color: #ae152d;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
  background-color: transparent;
  border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, 0.85);
  background-color: #ffe69c;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: "\f231";
  font-family: "bootstrap-icons";
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
}

.btn-toggle[aria-expanded=true] {
  color: rgba(0, 0, 0, 0.85);
}

.btn-toggle[aria-expanded=true]::before {
  transform: rotate(90deg);
}

.list-unstyled li div ul li a {
  text-decoration: none;
}

.left-nav-max-width {
  max-width: 335px;
}

#nav-logo {
  max-width: 75px;
}

.left-nav {
  border-right: 4px solid #ae152d;
}

.left-nav-max-height {
  max-height: calc(100vh - 40px);
}

.left-nav-top-offset {
  top: 41px;
}

.primary-red-bg {
  background-color: #ae152d;
}

.primary-red-bg.btn:hover {
  background-color: #820317;
}

.red-border-bottom {
  border-bottom: 3px solid #ae152d;
}

.red-border-top {
  border-top: 3px solid #ae152d;
}

.red-font {
  color: #ae152d;
}

.top-nav-z {
  z-index: 1040;
}

.toast-container-zindex {
  z-index: 1090;
}

/* ------------------ add text on horizontal line ------------------ */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #000;
}

.separator:not(:empty)::before {
  margin-right: 0.25em;
}

.separator:not(:empty)::after {
  margin-left: 0.25em;
}

/*#region Misc*/
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.requiredLabel:before {
  content: " *";
  color: red;
}

.ws-break-space {
  white-space: break-spaces;
}

.ws-pre {
  white-space: pre;
}

.view-file-container {
  margin: 20px 0;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

/* Notification pill for desktop */
.pill-top-pos {
  top: 25% !important;
}

.custom-tooltip {
  /* SASS variables cannot be used here :\   */
  --bs-tooltip-bg: #ae152d;
  --bs-tooltip-color: #ffffff;
  --bs-tooltip-opacity: 1;
}

/* Remove list style from generated lists */
.no-bullets-derived ul {
  list-style-type: none;
}

.scrollup-btm-offset {
  bottom: 16px;
}

.off-white-background-rounded {
  background-color: #F5F5F5;
  border-radius: 5px;
}

/*#endregion*/
/*#region Width Height*/
.max-width-500 {
  max-width: 500px;
}

.min-width-user-summary {
  min-width: 500px;
}

.min-width-70 {
  min-width: 100px;
}

.min-width-100 {
  min-width: 100px;
}

.min-width-110 {
  min-width: 110px;
}

.min-width-rel-notes {
  min-width: 250px;
}

.pdf-iframe {
  width: 100%;
  height: 70vh;
}

.width-fit-content {
  width: fit-content;
}

.main-min-height {
  min-height: 800px;
}

.max-width-70vw {
  max-width: 70vw;
}

.max-width-300 {
  max-width: 300px;
}

.max-height-overflow-announcements {
  max-height: 300px;
  overflow-y: auto;
}

.max-scrollable-height-notifications {
  overflow-y: auto;
  max-height: calc(100vh - 150px);
}

/*#endregion*/
/*#region Table Related*/
.generaltable thead tr {
  white-space: nowrap;
}

tfoot input {
  width: 100%;
  padding: 3px;
  box-sizing: border-box;
}

.ScrollableTable {
  max-height: 600px;
  overflow: auto;
}

.min-width-cols {
  min-width: 150px;
}

.attendance-table {
  overflow: auto;
  max-height: calc(100vh - 150px);
}

/*#endregion*/
/*#region Text*/
.font-color-main-theme {
  color: #ae152d;
}

.auto-capitalize-first-letter {
  text-transform: capitalize;
}

/*#endregion*/
/*#region Extenal Link Icon */
a[target=_blank]::after {
  font-family: "bootstrap-icons";
  content: "\f1c5"; /* box-arrow-up-right */
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.8em;
  /*vertical-align: middle;*/
}

/* Remove the icon from links that contain images */
a[target=_blank]:has(img)::after {
  content: none;
}

/* For older browsers that don't support :has() */
a[target=_blank] img + ::after {
  content: none;
}

/*#endregion */
/*#region Loading Spinner */
.loading-spinner-position {
  position: fixed;
  z-index: 2000;
  top: 50%;
  left: 50%;
  opacity: 0.5;
  transform: translate(-50%, -50%);
}

.loading-spinner-position div {
  width: 4rem;
  height: 4rem;
  border-width: 10px;
}

/*#endregion */
/*#region Modals*/
.sticky-modal-footer {
  bottom: 0;
  position: sticky;
  background-color: #fff;
  border-top: 2px solid #ae152d;
}

.modal-header-border-bottom {
  border-bottom: 2px solid #ae152d;
}

.modal-height-max {
  max-height: 50vh;
}

.modal-center-pos {
  left: 33vw;
}

@media (max-width: 767px) {
  .modal-center-pos {
    left: 50vw;
    transform: translateX(-50%) !important;
  }
}
.modal-offset-vert-pos {
  top: 50px;
}

.modal-scroll-y {
  overflow-y: auto;
  max-height: 90vh;
}

/*#endregion*/
/*#region Local DateTime*/
.local-time {
  cursor: pointer;
  border-bottom: 1px dotted #999;
  transition: color 0.2s;
}

.local-time:hover {
  color: #0066cc;
  border-bottom-color: #0066cc;
}

/*#endregion*/
/*#region Seach Bar*/
.search-header {
  border-bottom: solid #ae152d 5px;
}

/*#endregion*/
/*#region Cards*/
.max-width-main-image {
  max-width: 1500px;
}

/*#endregion*/
