@import url('./customs/custom-bootstrap.css');

:root {
  --bs-primary: #777248;
  --bs-primary-rgb: 119, 114, 72;
  --bs-info: #03a9f4;
  --bs-info-rgb: 3, 169, 244;
  --bs-font-sans-serif: "Inter", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-font-mono: "Inconsolata", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/** Layouts **/
body {
  background-color: var(--bs-gray-100);
}

.app-header {
  z-index: 300;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  left: 0;
  background-color: var(--bs-white);
  box-shadow: 0 0.075rem 0.75rem rgba(37, 56, 124, 0.08),
    0 0.075rem 0.375rem rgba(37, 56, 124, 0.04);
}

.app-bottom-menu {
  z-index: 300;
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  left: 0;
  background-color: var(--bs-white);
  box-shadow: 0 -0.075rem 0.75rem rgba(37, 56, 124, 0.08),
    0 -0.075rem 0.375rem rgba(37, 56, 124, 0.04);
}

.app-bottom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottom-menu-item a {
  color: var(--bs-gray-700);
  text-decoration: none;
}

.bottom-menu-item a:hover, .bottom-menu-item.active a {
  color: var(--bs-primary);
}

.bottom-menu-item.active a:hover, .bottom-menu-item a:active {
  text-decoration: underline;
}

/** Utilities */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bs-gray-200);
  width: 2em;
  height: 2em;
}

.avatar img {
  width: 1.5em;
  height: 1.5em;
  object-fit: cover;
}

/** Forms **/
.form-group + .form-group {
  margin-top: 0.75rem;
}

.text-field.text-field-sm .form-control {
  font-size: 0.85rem;
}

.text-field-input {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.875rem 1.125rem;
  padding: calc(0.875rem + 1px) 1.125rem;
  line-height: 1;
}

.text-field.text-field-sm .text-field-input {
  padding: 0.5rem 0.75rem;
}

.text-field-input *:not(.text-field-border) {
  z-index: 5;
}

.text-field-input .form-control {
  border: none;
  padding: 0;
  border-radius: 0;
  flex: 1;
  min-height: 0;
  background: none;
}

.text-field-input .form-control:focus {
  outline: none;
  box-shadow: none;
}

.text-field-input .form-control.shadow {
  box-shadow: none !important;
}

.text-field-border {
  z-index: 0;
  background-color: #ffffff;
  border: 1px solid #c5ccd6;
  border-radius: 0.35rem;
  position: absolute;
  inset: 0;
  transition: 250ms ease-in-out;
}

.text-field.border-none .text-field-border {
  border-color: transparent;
}

.form-control.underline ~ .text-field-border {
  border: none;
  border-bottom: 2px solid #BDBDBD;
  border-radius: 0;
}

.form-control.shadow ~ .text-field-border {
  border: none;
  box-shadow: 0 0.075rem 0.75rem rgba(37, 56, 124, 0.08), 0 0.075rem 0.375rem rgba(37, 56, 124, 0.04);
}

.form-control.form-control-sm ~ .text-field-border {
  border-radius: 0.25rem;
}

.form-control.is-error ~ .text-field-border {
  border-color: #f44336;
}

.form-control:focus ~ .text-field-border {
  border-color: rgba(var(--bs-primary-rgb), 0.25);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

input.hide-arrows {
  -webkit-appearance: textfield;
  appearance: textfield;
  -moz-appearance: textfield;
}

input.hide-arrows::-webkit-outer-spin-button, input.hide-arrows::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.form-control-action {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control-action .btn-action {
  position: absolute;
  right: .5rem;
  border-color: transparent;
}

.form-control-action .btn-action.btn-action-left {
  right: auto;
  left: .5rem;
}

.form-control-action .btn-action:active {
  border-color: transparent;
}

.form-check-input.form-check-primary:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-input.form-check-success:checked {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
}

/** Choices **/
.choices {
  font-size: 1rem;
}

.choices .choices__inner {
  display: flex;
  flex-wrap: wrap;
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-white);
  padding: .375rem .75rem;
  min-height: 0;
  font-size: 1rem;
}

.choices[data-type*=select-one] .choices__inner {
  padding: .375rem .75rem;
}

.choices[data-type*=select-multiple] .choices__inner {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.choices .choices__list--single {
  padding: 0;
}

.choices .choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}

.choices .choices__list--multiple .choices__item {
  display: block;
  padding: .125rem .5rem;
  margin: 0;
}

.choices .choices__list--multiple .choices__item:last-child {
  margin-right: .25rem;
}

.choices .choices__input {
  margin: 0 0 -1px;
}

.choices.choices-sm .choices__inner {
  padding: .25rem .5rem;
}

.choices.choices-dropdown-150 .choices__list--dropdown {
  min-width: 150px;
  right: 0;
  left: auto;
}

.choices.choices-no-border .choices__inner {
  border-color: transparent;
}

.choices.choices-no-caret[data-type*=select-one]::after {
  display: none;
}

/** Select2 **/
.select2-container--default .select2-selection--single {
  height: auto;
  border-radius: var(--bs-border-radius);
  border-color: #c5ccd6;
  display: flex;
  position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding: .375rem .75rem;
  flex: 1 0 0%;
}

.form-control-sm + .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0.5rem 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  position: static;
  margin: 0;
}

.field-select2.is-invalid + .select2-container--default .select2-selection--single {
  border-color: var(--bs-danger);
}

.select2-container--default .select2-results__option--disabled {
  color: var(--bs-gray-500);
  background-color: var(--bs-gray-100);
}

label.is-required::after {
  content: " *";
  color: var(--bs-danger);
}
