:root {
  --primary: #23bf81;
  --primary-rgb: 35, 191, 129;
  --primary-shade: #1ea56f;
  --primary-tint: #39c58e;

  --secondary: #0e0e0f;
  --secondary-rgb: 14, 14, 15;
  --secondary-shade: #0a0a0b;
  --secondary-tint: #131314;

  --cinza-claro: #E4E4E4;

  --texto-principal: #444444;
  --texto-secundario: #8D8D8D;

  --background: #EFEFEF;

  --auth-card: #1c1c1f;
  --auth-input: #171717;
  --auth-border: #d1d3e2;
  --auth-placeholder: #73726f;
  --sidebar-bg: #0e0e0f;
  --sidebar-active-bg: #131314;
}

/* BUTTONs */
a {
  color: var(--primary);
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--primary-tint);
  border-color: var(--primary-shade);
}

.btn-primary:focus,
.btn-primary.focus {
  color: #fff;
  background-color: var(--primary-tint);
  border-color: var(--primary-shade);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-color: var(--primary-tint);
  border-color: var(--primary-tint);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--primary-shade);
  border-color: var(--primary-tint);
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  color: #fff;
  background-color: var(--secondary-tint);
  border-color: var(--secondary-shade);
}

.btn-secondary:focus,
.btn-secondary.focus {
  color: #fff;
  background-color: var(--secondary-tint);
  border-color: var(--secondary-shade);
  box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.5);
}

.btn-secondary.disabled,
.btn-secondary:disabled {
  color: #fff;
  background-color: var(--secondary-tint);
  border-color: var(--secondary-tint);
}

.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
  color: #fff;
  background-color: var(--secondary-shade);
  border-color: var(--secondary-tint);
}

.btn-secondary:not(:disabled):not(.disabled):active:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.5);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.5);
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.5);
}

.btn-outline-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-secondary:focus,
.btn-outline-secondary.focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.5);
}

.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled {
  color: var(--secondary);
  background-color: transparent;
}

.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,
.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-secondary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--secondary-rgb), 0.5);
}

.btn .spinner-border {
  width: 1.2rem;
  height: 1.2rem;
}

.btn-link {
  color: var(--secondary);
}

.btn-link:hover {
  color: var(--secondary-shade);
}

.btn-link:focus {
  box-shadow: 0 0 0 .2rem rgba(var(--secondary-rgb), .25);
}

.btn-link:disabled, .btn-link.disabled {
  color: var(--secondary-tint);
}

/* INPUTS */
.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
  border-color: var(--primary);
  background-color: var(--primary);
}

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background-color: rgba(var(--primary-rgb), 0.5);
}

.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {
  background-color: rgba(var(--primary-rgb), 0.5);
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background-color: rgba(var(--primary-rgb), 0.5);
}

.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {
  background-color: rgba(var(--primary-rgb), 0.5);
}

.form-group label {
  color: var(--texto-principal);
}

.form-control::placeholder {
  color: var(--texto-secundario);
}

.form-control {
  color: var(--texto-principal);
}

/* TEXTs */
.text-primary {
  color: var(--primary) !important;
}

a.text-primary:hover,
a.text-primary:focus {
  color: var(--primary-tint) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

a.text-secondary:hover,
a.text-secondary:focus {
  color: var(--secondary-tint) !important;
}

/* BACKGROUNDs */
.bg-gradient-primary {
  background-color: var(--primary);
  background-image: linear-gradient(180deg, var(--primary) 10%, var(--primary-shade) 100%);
  background-size: cover;
}

.bg-gradient-secondary {
  background-color: var(--secondary);
  background-image: linear-gradient(180deg, var(--secondary) 10%, var(--secondary-shade) 100%);
  background-size: cover;
}

.bg-gradient-secondary-light {
  background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0) 0%, rgba(var(--secondary-rgb), 0.5) 100%);
}

.bg-filtrando {
  background-color: rgba(var(--primary-rgb), .01);
  background-image: linear-gradient(180deg, rgba(var(--primary-rgb), .01) 10%, rgba(var(--primary-rgb), .2) 100%);
  background-size: cover;
}

/* BORDERS */
.border-left-primary {
  border-left: 0.25rem solid var(--primary) !important;
}

.border-bottom-primary {
  border-bottom: 0.25rem solid var(--primary) !important;
}

.border-left-secondary {
  border-left: 0.25rem solid var(--secondary) !important;
}

.border-bottom-secondary {
  border-bottom: 0.25rem solid var(--secondary) !important;
}

/* TOPBAR NAVBAR */
.dropdown-item.active, .dropdown-item:active {
  background-color: var(--primary);
}

.dropdown-item:focus, .dropdown-item:hover {
  background-color: var(--primary-tint);
  color: #fff;
}

/* SIDEBAR */
.sidebar.bg-gradient-secondary .nav-item.active .nav-link {
  background-color: var(--secondary-tint);
}
@media (min-width: 768px) {
  .sidebar.toggled .nav-item .nav-link span.badge {
      display: inline;
  }
}

body,
.auth-page,
.sidebar.sidebar-wbr {
  font-family: 'Lato', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* FOOTER */
footer.sticky-footer {
  padding: 1rem 0;
}

/* NAVBAR TABs */
.nav-tabs.nav-tabs-primary .nav-link {
  color: var(--texto-secundario);
  background-color: transparent;
  border: 1px solid var(--cinza-claro);
}

.nav-tabs.nav-tabs-primary .nav-item.show .nav-link,
.nav-tabs.nav-tabs-primary .nav-link.active {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary-shade);
}

.nav-tabs.nav-tabs-primary .nav-link:focus,
.nav-tabs.nav-tabs-primary .nav-link:hover {
  color: #fff;
  background-color: var(--primary-tint);
  border-color: var(--primary-shade);
}

/* CARDs */
.card-header {
  background-color: #FFF;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.min-h-100vh {
  min-height: 100vh !important;
}

.noresize {
  resize: none !important;
}

.text-decoration-underline {
  text-decoration: underline;
}

.card-body .dropzone {
  border: 1px solid var(--secondary);
  border-radius: .35rem;
}

.invalid-form,
.invalid-image {
  border: 1px solid #ff0000;
}

.nav-tabs {
  border-bottom: 0px;
}

#pager {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 4px;
}

#pager .stepper-before,
#pager .stepper-next,
#pager .stepper {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  padding: 0.25rem 0.5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  color: var(--secondary);
  border: 1px solid var(--secondary-tint);
  cursor: pointer;
}

#pager .stepper-before:hover,
#pager .stepper-next:hover,
#pager .stepper:hover,
#pager .stepper-active {
  color: var(--cinza-claro);
  background-color: var(--secondary-tint);
}

/* Login / Auth (Figma Admin) */
.bg-onboard {
  min-height: 100vh;
  background-color: #202020;
  background-image: url('/img/background-admin-login.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  padding: 0;
  margin: 0;
}

.bg-onboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(6.65px);
  -webkit-backdrop-filter: blur(6.65px);
  z-index: 0;
  pointer-events: none;
}

.bg-login-image,
.bg-password-image {
  background-image: url('/img/background-admin-login.png');
}

.auth-page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

/* Overlays must stay fixed and out of the auth layout */
body.bg-onboard .swal2-container {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1060 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.bg-onboard .iziToast-wrapper,
body.bg-onboard .iziToast-overlay {
  position: fixed !important;
  z-index: 9999 !important;
  pointer-events: none;
}

body.bg-onboard .iziToast-wrapper .iziToast {
  pointer-events: all;
}

.auth-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 48px;
  background: var(--auth-card);
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(58, 59, 69, 0.1);
  max-width: 960px;
  width: 100%;
}

.auth-brand {
  flex: 0 0 auto;
  width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.auth-form {
  flex: 0 1 355px;
  width: 100%;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.auth-form__title {
  margin: 0;
  width: 100%;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.auth-form__subtitle {
  margin: 0;
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.auth-form__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(209, 211, 226, 0.5);
}

.auth-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.auth-field label {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.auth-field .form-control,
.auth-field .form-control-user {
  height: 36px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--auth-border);
  background-color: var(--auth-input);
  color: #fff;
  font-size: 16px;
  line-height: 19.5px;
}

.auth-field .form-control::placeholder,
.auth-field .form-control-user::placeholder {
  color: var(--auth-placeholder);
}

.auth-field .form-control:focus,
.auth-field .form-control-user:focus {
  background-color: var(--auth-input);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.15rem rgba(var(--primary-rgb), 0.25);
}

.auth-input-password {
  position: relative;
  width: 100%;
}

.auth-input-password .form-control,
.auth-input-password .form-control-user {
  padding-right: 44px;
}

.auth-input-password .olho-senha {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  cursor: pointer;
  opacity: 0.85;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 0 6px rgba(58, 59, 69, 0.1);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.auth-btn--primary {
  background-color: var(--primary);
  color: #121212 !important;
  border-color: var(--primary);
}

.auth-btn--primary:hover,
.auth-btn--primary:focus {
  background-color: var(--primary-tint);
  color: #121212 !important;
  border-color: var(--primary-tint);
}

.auth-btn--outline {
  background-color: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.auth-btn--outline:hover,
.auth-btn--outline:focus {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary) !important;
}

.auth-link {
  color: var(--primary) !important;
  font-size: 12px;
  line-height: normal;
  text-align: center;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--primary-tint) !important;
}

.footer-login p {
  color: #FFFFFF;
  font-size: small;
}
.footer-login img {
  height: 23px;
}

.div-olho-senha {
  height: 0;
}

#olho-senha {
  width: 25px;
  margin-right: 20px;
  margin-left: 0px;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  margin-top: calc(calc(1.5em + 4rem + 2px) * -1);
}

form.user select.form-control-user {
  font-size: 0.8rem;
  border-radius: 10rem;
  padding: .375rem .75rem;
  height: 3.1rem;
}

@media (max-width: 991.98px) {
  .auth-card {
    flex-direction: column;
    gap: 32px;
    padding: 32px 24px;
  }

  .auth-brand {
    width: 220px;
  }
}

@media (max-width: 575.98px) {
  .auth-page {
    padding: 16px;
  }

  .auth-card {
    padding: 24px 16px;
    gap: 24px;
  }

  .auth-form__title {
    font-size: 20px;
  }

  .auth-form__subtitle {
    font-size: 14px;
  }
}

/* Sidebar Admin (Figma Menu Admin) */
.sidebar.sidebar-wbr,
#accordionSidebar.sidebar-wbr {
  background-color: var(--sidebar-bg) !important;
  background-image: none !important;
  box-shadow: 0 0 6px rgba(58, 59, 69, 0.1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sidebar.sidebar-wbr .sidebar-brand {
  height: 80px;
  padding: 8px 16px;
}

.sidebar.sidebar-wbr .sidebar-brand-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar.sidebar-wbr .sidebar-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar.sidebar-wbr hr.sidebar-divider {
  display: none;
}

.sidebar.sidebar-wbr .nav-item .nav-link {
  color: #fff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px !important;
  width: 100%;
}

.sidebar.sidebar-wbr .nav-item .nav-link i {
  color: #fff !important;
  font-size: 1rem;
  margin: 0 !important;
}

.sidebar.sidebar-wbr .nav-item .nav-link span {
  color: #fff !important;
  font-size: 12px;
  line-height: 15.6px;
  display: block;
  white-space: normal;
}

.sidebar.sidebar-wbr .nav-item.active .nav-link,
.sidebar.sidebar-wbr .nav-item .nav-link:hover {
  background-color: var(--sidebar-active-bg) !important;
  color: var(--primary) !important;
  border-right: 2px solid var(--primary);
}

.sidebar.sidebar-wbr .nav-item.active .nav-link i,
.sidebar.sidebar-wbr .nav-item .nav-link:hover i,
.sidebar.sidebar-wbr .nav-item.active .nav-link span,
.sidebar.sidebar-wbr .nav-item .nav-link:hover span {
  color: var(--primary) !important;
}

.sidebar.sidebar-wbr #sidebarToggle {
  background-color: var(--sidebar-bg) !important;
  border: 2.94px solid var(--primary) !important;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
}

.sidebar.sidebar-wbr #sidebarToggle:hover {
  background-color: var(--sidebar-active-bg) !important;
}

.sidebar.sidebar-wbr #sidebarToggle::after {
  color: var(--primary) !important;
  font-weight: 900;
}

.sidebar.sidebar-wbr.toggled #sidebarToggle::after {
  color: var(--primary) !important;
}

@media (min-width: 768px) {
  .sidebar.sidebar-wbr.toggled {
    width: 6.5rem !important;
  }

  .sidebar.sidebar-wbr.toggled .nav-item .nav-link {
    width: 100%;
    text-align: center;
    padding: 16px !important;
  }

  .sidebar.sidebar-wbr.toggled .nav-item .nav-link span {
    display: block;
    font-size: 12px;
    margin: 0;
  }

  .sidebar.sidebar-wbr:not(.toggled) .nav-item .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 16px !important;
  }

  .sidebar.sidebar-wbr:not(.toggled) .nav-item .nav-link span {
    text-align: left;
  }
}

::-webkit-calendar-picker-indicator {
  border-radius: 50%;
  margin-left: 0.1rem;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

::-webkit-calendar-picker-indicator:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

#barra-hml {
  background-color: #ff0000;
  color: #ffffff;
  padding: 3px 10px;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* USUÁRIOS */
.img-avatar {
  position: relative;
  top: 0;
  left: 10px;
  width: 180px !important;
  height: 180px !important;
  border-radius: 50%;
  margin: 0px !important;
  cursor: pointer;
  object-fit: cover;
  margin-bottom: 30px !important;
  color: var(--primary);
}
/* FIM USUÁRIOS */

/* MULTISELECT */
span.multiselect-native-select select {
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px -1px -1px -3px !important;
  overflow: hidden !important;
  padding: 0.5rem !important;
  position: absolute !important;
  width: 1px !important;
  left: 50%;
  top: 30px;
}

select.form-control[multiple] {
  border-radius: 16px;
  background-color: #fff;
  border: 1px solid #ced4da;
}

span.multiselect-native-select .btn-group-vertical > .btn,
.btn-group > .btn {
  /* border-radius: 16px; */
  background-color: #fff;
  border: 1px solid #ced4da;
}

span.multiselect-native-select ul {
  width: 100%;
  padding: 10px 20px 0px 20px;
}

span.multiselect-native-select .multiselect-container label {
  width: 100%;
  cursor: pointer;
}

span.multiselect-native-select .btn-group-vertical > .btn,
.btn-group > .btn .disabled {
  background-color: #eaecf4;
  color: #6e707e;
}

span.multiselect-native-select .btn-group-vertical > .btn.disabled,
.btn-group > .btn.disabled {
  background-color: #eaecf4 !important;
  color: #6e707e;
  opacity: 1;
}
/* FIM MULTISELECT */

/* INPUT FILE */
input[type="file"] {
  padding: 0 0.75rem 0 0;
}

input[type="file"]::file-selector-button {
  background-color: #dde0e3;
  /* background-color: var(--primary); */
  color: #000;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
  height: 100%;
  padding: 0.375rem;
  margin: 0 0.375rem 0 0;
}

input[type="file"]::file-selector-button:hover {
  background-color: #9d9fa1;
  color: #fff;
}
/* FIM INPUT FILE */

/* SWAL2 */
.swal2-styled.swal2-confirm {
  border: 0;
  border-radius: 0.25em;
  background: initial;
  background-color: var(--primary);
  color: #121212;
  font-size: 1em;
}
.swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.5);
}
/* FIM SWAL2 */