/*
* demo.css
* File include item demo only specific css only
******************************************************************************/
/********* Loader Start **************/


.table-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    display: none;
    z-index: 1091;
}

.table-overlay .custom-loader{
    width: 250px;
    /*height: 140px;*/
    object-fit: contain;
    position: absolute;
    top: calc(50% - 71px);
    left: calc(50% - 125px);
}


/********* Loader End **************/

@media (min-width: 1400px) {
    .container-xxl, .container {
        max-width: 1440px;
        max-width: 100% !important;
    }
}

.menu .app-brand.demo {
  height: 75px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

.layout-menu-collapsed.layout-menu-fixed .collapsed-img, .layout-menu-collapsed.layout-menu-hover .open-menu-img {
    display: block;
}

.layout-menu-fixed .collapsed-img {
    display: none;
}

.layout-menu-collapsed img.open-menu-img, .layout-menu-fixed.layout-menu-hover .collapsed-img {
    display: none;
}


/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 34px !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


/************************* Start of Custom CSS *************************/

/* Start of Global CSS */

[data-bs-theme=light] {
  --bs-heading-color: #fff !important;
}

#template-customizer {
  display: none !important;
}

#calendar button.fc-dayGridMonth-button.fc-button.fc-button-primary.fc-button-active {
  background-color: #6921c4 !important;
}

.fc .fc-view-harness .fc-event, .fc-timegrid-event .fc-event-main {
  padding: 0px !important;
}

.fc-event-primary {
  border: 1px solid #696cff !important;
}

.fc-event-danger {
  border: 1px solid #ff3e1d !important;
}

.fc-event-success {
  border: 1px solid #71dd37 !important;
}

.calendar-scroll .fc-timeGridWeek-view .fc-scroller.fc-scroller-liquid-absolute,
.calendar-scroll .fc-timeGridDay-view .fc-scroller.fc-scroller-liquid-absolute {
    overflow: hidden !important;
}

section.lightpick, .lightpick__month {
  width: 100% !important;
  z-index: 1;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  color: #292929;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-40 {
  font-size: 40px !important;
}

.torque-bg,
#layout-menu .menu-inner > .menu-item.active:before,
.appointment-month-filter-btn .btn.active,
.appointment-month-filter-btn .btn:hover{
  background: #6921c4 !important;
}

.btn.torque-bg,
.btn.torque-bg:hover,
.appointment-month-filter-btn .btn.active,
.appointment-month-filter-btn .btn:hover {
  color: #fff;
}

.btn.torque-bg:hover {
  background-color: #000 !important;
}

.torque-color {
  color: #6921c4;
}

.btn:hover {
  transform: none !important;
}

.box-shadow {
  box-shadow: 0 0.1875rem 0.5rem 0 rgba(34, 48, 62, 0.1);
}

/* End of Global CSS */

/* Start of Header CSS */
.header-bottom-logo {
  display: block;
  width: 100%;
  text-align: center;
}

.app-brand .layout-menu-toggle {
  top: 31px;
}

.app-brand-link {
  justify-content: center;
  width: 100%;
}

span.app-brand-text {
  margin-left: -10px;
}

.header-bottom-logo img {
  width: 100%;
  max-width: 134px;
  padding: 20px 10px;
  margin-bottom: 30px;
}

.app-brand .layout-menu-toggle i {
  color: #6921c4 !important;
}

.app-brand .layout-menu-toggle {
  background-color: #fff !important;
}

#layout-menu .menu-inner > .menu-item.active > .menu-link {
  /*color: #000 !important;
  background-color: transparent !important;*/
}

/* #layout-menu .menu-inner > .menu-item.active:before {

} */

.menu-item span.badge {
  padding: 6px 9px !important;
}

.dropdown-user a.nav-link {
  display: flex;
  gap: 15px;
}

/* End of Header CSS */

/* Start of Appointment Page CSS */

.app-filters {
  display: none;
}


.appointment-card {
  background-color: #fff;
  border: 1px solid #DDE9FB;
  border-radius: 10px;
  margin-bottom: 15px;
  position: relative;
}

.appointment-card .row {
  min-height: 103px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
}

.appointment-card.online .row {
  border: 1px solid #2e9d12 !important;
}

.appointment-card.portal .row {
  border: 1px solid #367EAF !important;
}

.appointment-card.carx .row {
    border: 1px solid #000 !important;
}


.appointment-card-promotion:after {
    content: 'Promotion';
    background: #9C27B0;
    color: #fff;
    transform: rotate(89deg);
    position: absolute;
    width: 102px;
    text-align: center;
    right: -42px;
    top: 41px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    font-size: 14px;
    z-index: 1;
}

.appointment-card:before {
    color: #fff;
    transform: rotate(270deg);
    position: absolute;
    width: 102px;
    text-align: center;
    left: -41px;
    top: 42px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    font-size: 14px;
}

.appointment-card.online:before {
  content: 'Online';
  background: #2E9D12;
}

.appointment-card.portal:before {
  content: 'Portal';
  background: #367EAF;
}

.appointment-card.carx:before {
    content: 'Carx';
    background: #21211d;
}

.appointment-card .details-row ul {
    color: #444647;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.appointment-card .details-row ul i {
  color: #6D7D8B;
}

.appointment-card .time {
    transform: rotate(270deg);
    position: absolute;
    left: 19px;
    top: 38px;
    font-size: 14px;
}

.date-box .day {
  font-size: 36px;
  line-height: normal;
}

.date-box .month, .date-box .day {
  padding-left: 38px;
}

.appointment-card button {
  justify-content: space-between;
  min-width: 85px;
}

.date-box {
  color: #292929;
}

.date-box.current-day {
  color: #FF4A55;
}


.status {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  min-width: 75px;
}

.appointment-card .form-select:focus {
  border-color: #ced1d5 !important;
  box-shadow: none;
}

.appointment-card .form-select option {
  background: #fff !important;
  color: #333 !important;
}


.details-icons i {
  margin-right: 5px;
}

.btn-edit {
  font-size: 12px;
  padding: 5px 10px;
  margin-top: 10px;
}

.details-row i {
  margin-right: 5px;
  color: #6c757d;
}

.details-row .text-muted {
  margin-left: 2px;
  font-size: 14px;
}


select#statusSelect {
  border-color: #44A6E9;
  color: #44A6E9;
  background-color: #f6fbfe;
}


.app-filters .input-group {
  min-width: 210px;
}

.app-filters span#search-addon {
  border-right: none;
  padding-right: 0;
}

.app-filters input.form-control {
  border-left: none;
}

.app-filters span#search-addon i {
  font-size: 15px;
}

.appointment-card .details-row ul li {
    margin-bottom: 10px;
    white-space: nowrap;
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appointment-card .details-row ul li:last-child {
    margin-bottom: 0;
}

.appointments-tabs {
    box-shadow: none !important;
    padding-top: 0 !important;
}

.invalid-feedback {
 display: block !important;
}

.create-appointment .form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.dark-style #appointments-container nav .text-muted {
    color: #fff !important;
}

.dark-style .lightpick__close-action, .dark-style .lightpick__next-action, .dark-style .lightpick__previous-action {
    background-color: #6921c4 !important;
}



.dark-style img.open-menu-img.light-mode-logo {
    display: none;
}

.light-style img.open-menu-img.dark-mode-logo {
    display: none;
}

.i-field{
    width: 100% !important;
    border: 1px solid !important;
    border-radius: 4px !important;
    padding: 20px !important;
}

.edit-field {
    display: none;
}

.lightpick__day.is-today {
    background-size: contain !important;
}

/* End of Appointment Page CSS */

/* Start of Calendar Page CSS */
.custom-tooltip {
    z-index: 1;
    background: #fff;
    min-height: 350px;
    /* min-width: 350px; */
    max-width: 350px;
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
    padding: 0px 20px 20px 20px;
    border-radius: 4px;
    margin-top: 10px;
    color: #000;
}

.custom-tooltip label {
    font-size: 20px !important;
    line-height: 35px !important;
    font-weight: 500 !important;
}

.custom-tooltip label span {
    font-size: 14px !important;
}

.custom-tooltip .date{
    font-size: 16px !important;
    line-height: 30px !important;
}

.lh-xl {
    line-height: 35px !important;
}

.icon-spacing i {
    margin-right: 10px;
}

.icon-spacing i:last-child {
    margin-right: 0; /* No margin for the last icon */
}

.cursor-pointer{
    cursor: pointer;
}

.custom-tooltip .custom-tooltip-content i {
    margin-right: 7px;
    color: #005f97;
}

.cancelled {
    border-color: rgb(255, 74, 85) !important;
    color: rgb(255, 74, 85) !important;
    background-color: rgb(255, 246, 246) !important;
}

.booked {
    border-color: #44A6E9 !important;
    color: #44A6E9 !important;
    background-color: #f6fbfe !important;
}

.arrived {
    border-color: rgb(239, 186, 0) !important;
    color: rgb(239, 186, 0) !important;
    background-color: rgb(254, 252, 242) !important;
}

.completed {
    border-color: rgb(53, 198, 119) !important;
    color: rgb(53, 198, 119) !important;
    background-color: rgb(245, 252, 248) !important;
}

.no-show{
    border-color: #8A8A8F !important;
    color: #8A8A8F !important;
    background-color: #f9f9f9 !important;
}

td.fc-day-other {
    background: rgb(230, 230, 230);
}

.fc-event-multiple {
    background-color: #993300 !important;
    color: #fff !important;
}

.fc-event-main-frame {
    padding-left: 5px !important;
    padding-top: 2px !important;
}

.fc-timegrid-event-harness {
    border: 1px solid #fff;
    border-radius: 6px;
    overflow: hidden;
}

.fc .fc-list .fc-list-table .fc-list-event td {
    border-color: #e4e6e8;
    color: #fff !important;
}

div#popupContent div {
    padding-left: 10px;
}

div#popupContent {
    z-index: 9999;
/*    margin-left: 5%;*/
}
/* End of Calendar Page CSS */


.torque-alert {
    background: #6921c4 !important;
    color: white;
}

.swal2-container {
    z-index: 99999;
}

ul.pagination {
    flex-wrap: wrap;
    row-gap: 13px;
}
/**************************** Start of Media Query *********************************/

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

  .appointment-card button {
    display: flex !important;
  }

}


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

    .date-box .day {
      font-size: 22px;
    }

    .details-row .text-muted {
      font-size: 10px;
    }

    .appointment-card .time {
      top: 43px;
      font-size: 10px;
    }

    .appointment-card .details-row ul {
      justify-content: start;
    }

}

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

  .date-with-btn {
        display: flex;
        justify-content: space-between;
    }

    .appointment-card .row {
        min-height: 220px;
        padding-top: 40px !important;
    }

    .appointment-card .row select {
      margin-top: 15px;
    }

    .details-row:first-child {
      margin-top: 15px;
    }

    .appointment-card:before {
      transform: none;
      width: 100%;
      left: 0;
      top: 0;
      padding: 4px 0;
    }

    .appointment-card .time {
      position: unset;
      transform: none;
    }

    .date-box {
      display: flex;
      justify-content: center;
    }

    .appointment-card .details-row ul {
      flex-direction: column;
      font-size: 16px;
      line-height: 28px;
      margin-bottom: 0;
    }

    .details-row .text-muted {
      font-size: 14px;
    }

    .date-box div {
      font-size: 20px !important;
      border-right: 1px solid lightgray;
      padding: 0 15px !important;
    }

    .date-box div:first-child {
      padding-left: 0 !important;
    }

    .appointment-card .details-row ul li {
      border-bottom: 1px solid lightgray;
      padding: 7px 0;
      margin: 0;
    }

    li.nav-item.border-end.border-black, .appointment-card .row .border-end, .date-box div:last-child {
      border: none !important;
    }

    nav#layout-navbar h1 {
      font-size: 14px !important;
    }

    .navbar-nav .nav-item.gap-10 {
      gap: 0.75rem !important;
    }

    nav#layout-navbar {
      padding: 10px;
    }

    nav#layout-navbar .nav-item button {
      font-size: 12px !important;
      padding: 7px 10px;
    }

    .fc-more-link {
        white-space: break-spaces !important;
        padding: 0;
        font-size: 11px;
    }

    .appointment-card .details-row ul li {
        max-width: 100% !important;
    }

    div#popupContent {
        margin-left: 0%;
        left: 16px !important;
    }
}


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

    .appointment-card .details-row ul li {
        max-width: 100% !important;
    }
}


.appointment-row {
  max-height: 600px;
  overflow-y: scroll;
}

.is-invalid {
    border: 1px solid red;
}

.invalid-feedback {
    color: red;
    font-size: 0.875em;
    display: none; /* Initially hide all error messages */
}

.invalid-feedback.active {
    display: block; /* Show error messages only when needed */
}

/* Mobile specific */
@media (max-width: 768px) {
    .book-appointment-btn {
        padding: 7px; /* 7px padding for mobile */
    }

    .appointment-text {
        font-size: 0; /* hide old text */
    }

    .appointment-text::after {
        content: "Appointment"; /* new short text */
        font-size: 14px; /* normal text size */
    }
}

@media (max-width: 991.98px) {
    #calendar .text-heading {
        display: none !important;
    }

    .fc .fc-more-popover .fc-popover-body {
        max-height: 230px;
        overflow-y: scroll;
    }
}


@media screen and (max-width: 999px) and (min-width: 767px){
    .appointment-card .row {
        min-height: 190px;
    }
    .appointment-card:before {
        width: 190px;
        left: -86px;
        top: 85px;
    }

    .appointment-card .details-row ul li{
        font-size: 12px;
    }

    .appointment-card-promotion:after {
        width: 190px;
        right: -86px;
        top: 85px;
    }
}
