/* Bootstrap */
textarea {
  height: unset !important;
}

.accordion-button,
.accordion-button:not(.collapsed) {
  background: var(--gray-100);
  box-shadow: unset !important;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
  background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 320 512%22 width=%2218%22 height=%2218%22%3E%3Cpath d=%22M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z%22 fill=%22%23332d2d%22/%3E%3C/svg%3E');
}

.dropdown-toggle::after {
  border-top-color: var(--black-900);
  border-bottom-color: var(--black-900);
}

.form-control,
.form-control[type='file'],
.form-select {
  height: 38px;
  box-shadow: unset;
  border: 1px solid var(--gray-300);
}

.form-control:disabled {
  background: var(--blue-100);
}

.popover-header {
  background: var(--blue-100);
}

.rounded,
.tooltip-inner {
  border-radius: 12px !important;
}

.table > :not(caption) > * > * {
  border-bottom: unset;
}

.table > tbody > tr:nth-of-type(odd) > * {
  background: var(--blue-100);
}

.table tbody tr td,
.table thead tr th {
  white-space: nowrap;
}

.text-clamp {
  overflow: hidden;
  display: -webkit-box;
}

.tooltip-inner {
  background: linear-gradient(to bottom, var(--blue-500), var(--blue-700));
}

/* Core UI */
.btn-double-next,
.btn-double-prev,
.btn-ghost-secondary,
.btn-month,
.btn-next,
.btn-prev,
.btn-year {
  box-shadow: unset !important;
}

.btn-double-next,
.btn-double-prev,
.btn-month,
.btn-next,
.btn-prev,
.btn-year {
  padding: 3px;
}

.btn-ghost-secondary {
  width: 100%;
  padding: 12px 0px;
}

.btn-ghost-secondary:hover,
.btn-month:hover,
.btn-year:hover {
  color: var(--blue-400) !important;
}

.calendar-cell-inner:hover,
.calendar-cell.selected:not(th, .next, .previous) .calendar-cell-inner,
.calendar-cell.today .calendar-cell-inner,
.calendar-row.selected:not(th, .next, .previous) .calendar-cell-inner,
.calendar-row.today .calendar-cell-inner,
.date-picker-dropdown,
.date-picker-input-group,
.form-multi-select-input-group,
.form-multi-select-tag {
  border-radius: 12px !important;
}

.calendar-cell-inner:hover,
.calendar-cell.selected:not(th, .next, .previous) .calendar-cell-inner,
.calendar-row.selected:not(th, .next, .previous) .calendar-cell-inner,
.date-picker-ranges,
.form-multi-select-tag {
  background: var(--blue-100) !important;
}

.calendar-cell.range .calendar-cell-inner::after,
.calendar-row.range .calendar-cell-inner::after {
  background: rgba(219, 234, 254, 0.3) !important;
}

.calendar-cell.range-hover .calendar-cell-inner::before,
.calendar-row.range-hover .calendar-cell-inner::before {
  border-top: 1px dashed var(--blue-300) !important;
  border-bottom: 1px dashed var(--blue-300) !important;
}

.calendar-cell.range-hover:not(:has(~ .range-hover))
  .calendar-cell-inner::before {
  border-inline-end: 1px dashed var(--blue-300) !important;
}

.calendar-cell.selected:not(th, .next, .previous) .calendar-cell-inner,
.calendar-cell.today .calendar-cell-inner,
.calendar-row.selected:not(th, .next, .previous) .calendar-cell-inner,
.calendar-row.today .calendar-cell-inner {
  color: var(--black-900) !important;
}

.calendar-cell.today .calendar-cell-inner,
.calendar-row.today .calendar-cell-inner {
  background: var(--red-100) !important;
}

.calendar-cell:not(.range-hover)
  + .calendar-cell.range-hover
  .calendar-cell-inner::before,
.calendar-cell.range-hover:first-of-type .calendar-cell-inner::before {
  border-inline-start: 1px dashed var(--blue-300) !important;
}

.date-picker-input-group,
.form-multi-select-input-group,
.form-multi-select-tag {
  border: 1px solid var(--gray-300) !important;
}

.date-picker-ranges {
  width: 60px !important;
}

.form-multi-select-option.form-multi-selected {
  background: var(--gray-100) !important;
}

.form-multi-select-option.form-multi-selected::before {
  background-color: var(--blue-100) !important;
}

.form-multi-select-option.form-multi-selected::before {
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22%3E%3Cpath fill=%22none%22 stroke=%22%23332d2d%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%223%22 d=%22m6 10 3 3 6-6%22/%3E%3C/svg%3E') !important;
  border-color: var(--blue-100) !important;
}

@media screen and (max-width: 1279px) {
  .calendar[data-coreui-calendar-index='1'] {
    display: none;
  }

  .date-picker-dropdown {
    overflow-x: auto;
    max-width: 69%;
  }
}

/* Calendar */
.fc .fc-button-group,
.fc .fc-today-button {
  overflow: hidden;
  border-radius: 12px !important;
}

.fc .fc-button-primary,
.fc .fc-button-primary:disabled {
  background: var(--blue-400);
  border: 1px solid var(--blue-400);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled):hover,
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--blue-500);
  border: 1px solid var(--blue-500);
}

.fc .fc-daygrid-day.fc-day-today,
.fc .fc-timegrid-col.fc-day-today {
  background: var(--blue-100);
}

.fc .fc-daygrid-event,
.fc .fc-timegrid-event {
  border-radius: 12px;
  border-style: dashed;
}

.fc .fc-event-time {
  display: none;
}

.fc .fc-event-title {
  font-weight: bold;
}

.fc .fc-event-title-container {
  padding: 0px 6px;
}

.fc .fc-header-toolbar {
  font-size: clamp(6px, 1vw, 15px);
}

.fc .fc-toolbar-title {
  color: var(--black-900);
}

.fc .fc-view-harness {
  min-height: 60vh;
}

.fc-daygrid-dot-event {
  padding: 0px 0px 0px 6px;
  border-style: unset !important;
}

/* Sweet Alert */
.swal2-actions {
  margin-top: 12px;
}

.swal2-html-container,
.swal2-title {
  color: var(--black-900);
}

.swal2-modal,
.swal2-styled,
.swal2-toast {
  overflow: hidden;
  border-radius: 12px;
}

.swal2-toast {
  border: 1px dashed var(--gray-300);
  box-shadow: unset !important;
}
