/****************************
******* GLOBAL STYLES *******
*****************************/
/* Variaveis */
:root {
  --bs-primary: #a2c61c;
  --bs-primary-light: #b5d149;
  --bs-primary-dark: #617711;
  --bs-secondary: #15652e;
  --bs-secondary-light: #35814c;
  --bs-secondary-dark: #0d3d1c;
  --bs-success: #1fb77b;
  --bs-success-light: #79d4b0;
  --bs-success-dark: #136e4a;
  --bs-error: #e33b3b;
  --bs-error-light: #ee8989;
  --bs-error-dark: #882323;
  --bs-warning: #f6c034;
  --bs-warning-light: #fad985;
  --bs-warning-dark: #94741f;
  --bs-info: #1277e0;
  --bs-info-light: #71adec;
  --bs-info-dark: #0b4786;
  --bs-gray-100: #f4f4f4;
  --bs-gray-200: #e8e8e8;
  --bs-gray-300: #d6d6d6;
  --bs-gray-400: #a5a5a5;
  --bs-gray-500: #757575;
  --bs-gray-600: #575757;
  --bs-gray-700: #444444;
  --bs-gray-800: #2b2b2b;
  --bs-gray-900: #1c1c1c;
  --bs-title: var(--bs-gray-800);
  --bs-text: var(--bs-gray-700);
  --bs-text-secondary: var(--bs-gray-500);
  --bs-text-tertiary: var(--bs-gray-400);
  --bs-border: var(--bs-gray-200);
  --bs-body-secondary-bg: #f4f3fc;
  --bs-card-bg: #ffffff;
  --bs-black-dark: #020c07;

  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-md: 0.75rem;
  --bs-border-radius-xl: 1rem;

  --bs-display-xs: 1.5rem;
  --bs-text-lg: 1.125rem;
  --bs-text-md: 1rem;
  --bs-text-sm: 0.875rem;
  --bs-text-xs: 0.75rem;
}

/* Fonte padrão */
body {
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bs-text);
}

a {
  color: var(--bs-primary);
  text-decoration: none;
}

a:hover {
  color: var(--bs-primary-dark);
}

p {
  line-height: 1.6;
}

small {
  font-size: 80%;
  font-weight: 400;
}

menu {
  padding-left: 0px;
}

a:hover,
a:active,
a:focus {
  outline: none !important;
  text-decoration: none !important;
}

b,
strong,
.bold {
  font-weight: 600;
}

dt {
  font-weight: 500;
}

hr {
  opacity: 1;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

/****************************
********* UTILITIES **********
*****************************/
/* Divider */
.divider {
  display: block;
  content: "";
  width: 100%;
  height: 1px;
  background: var(--bs-border);
  margin: 30px 0;
}

/* Margins & Paddings */
.no-s {
  margin: 0px !important;
  padding: 0px !important;
}

.no-m {
  margin: 0;
}

.no-p {
  padding: 0;
}

.m {
  margin: 15px;
}

.m-t-xxs {
  margin-top: 5px;
}

.m-r-xxs {
  margin-right: 5px;
}

.m-b-xxs {
  margin-bottom: 5px;
}

.m-l-xxs {
  margin-left: 5px;
}

.m-t-xs {
  margin-top: 10px;
}

.m-r-xs {
  margin-right: 10px;
}

.m-b-xs {
  margin-bottom: 10px;
}

.m-l-xs {
  margin-left: 10px;
}

.m-t-sm {
  margin-top: 15px;
}

.m-r-sm {
  margin-right: 15px;
}

.m-b-sm {
  margin-bottom: 15px;
}

.m-l-sm {
  margin-left: 15px;
}

.m-t-md {
  margin-top: 20px;
}

.m-r-md {
  margin-right: 20px;
}

.m-b-md {
  margin-bottom: 20px;
}

.m-l-md {
  margin-left: 20px;
}

.m-t-lg {
  margin-top: 25px;
}

.m-r-lg {
  margin-right: 25px;
}

.m-b-lg {
  margin-bottom: 25px;
}

.m-l-lg {
  margin-left: 25px;
}

.m-t-xxl {
  margin-top: 30px;
}

.m-r-xxl {
  margin-right: 30px;
}

.m-b-xxl {
  margin-bottom: 30px;
}

.m-l-xxl {
  margin-left: 30px;
}

.m-t-n-xxs {
  margin-top: -5px;
}

.m-r-n-xxs {
  margin-right: -5px;
}

.m-b-n-xxs {
  margin-bottom: -5px;
}

.m-l-n-xxs {
  margin-left: -5px;
}

.m-t-n-xs {
  margin-top: -10px;
}

.m-r-n-xs {
  margin-right: -10px;
}

.m-b-n-xs {
  margin-bottom: -10px;
}

.m-l-n-xs {
  margin-left: -10px;
}

.m-t-n-sm {
  margin-top: -15px;
}

.m-r-n-sm {
  margin-right: -15px;
}

.m-b-n-sm {
  margin-bottom: -15px;
}

.m-l-n-sm {
  margin-left: -15px;
}

.m-t-n-md {
  margin-top: -20px;
}

.m-r-n-md {
  margin-right: -20px;
}

.m-b-n-md {
  margin-bottom: -20px;
}

.m-l-n-md {
  margin-left: -20px;
}

.m-t-n-lg {
  margin-top: -25px;
}

.m-r-n-lg {
  margin-right: -25px;
}

.m-b-n-lg {
  margin-bottom: -25px;
}

.m-l-n-lg {
  margin-left: -25px;
}

.m-t-n-xxl {
  margin-top: -30px;
}

.m-r-n-xxl {
  margin-right: -30px;
}

.m-b-n-xxl {
  margin-bottom: -30px;
}

.m-l-n-xxl {
  margin-left: -30px;
}

.p {
  padding: 32px;
}

.p-h-xxs {
  padding-left: 5px;
  padding-right: 5px;
}

.p-h-xs {
  padding-left: 10px;
  padding-right: 10px;
}

.p-h-sm {
  padding-left: 15px;
  padding-right: 15px;
}

.no-p-h {
  padding-left: 0;
  padding-right: 0;
}

.no-p-v {
  padding-top: 0;
  padding-bottom: 0;
}

.p-h-md {
  padding-left: 20px;
  padding-right: 20px;
}

.p-h-lg {
  padding-left: 25px;
  padding-right: 25px;
}

.p-h-xxl {
  padding-left: 32px;
  padding-right: 32px;
}

.p-v-xxs {
  padding-top: 5px;
  padding-bottom: 5px;
}

.p-v-xs {
  padding-top: 10px;
  padding-bottom: 10px;
}

.p-v-sm {
  padding-top: 15px;
  padding-bottom: 15px;
}

.p-v-md {
  padding-top: 20px;
  padding-bottom: 20px;
}

.p-v-lg {
  padding-top: 25px;
  padding-bottom: 25px;
}

.p-v-xxl {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Width */
.full-width {
  width: 100% !important;
}

.w-20 {
  width: 1.25rem;
}

.w-40 {
  width: 2.5rem;
}

.w-xxs {
  width: 50px;
}

.w-xs {
  width: 90px;
}

.w-sm {
  width: 140px;
}

.w {
  width: 200px;
}

.w-md {
  width: 240px;
}

.w-lg {
  width: 280px;
}

.w-xl {
  width: 330px;
}

.w-xxl {
  width: 370px;
}

.w-auto {
  width: auto;
}

/* Height */
.h-20 {
  height: 1.25rem;
}

.h-40 {
  height: 2.5rem;
}

.full-height {
  height: 100% !important;
}

.h-auto {
  height: auto;
}

/* Borders */
.no-b {
  border: 0 !important;
}

.b-color {
  border-color: var(--bs-border);
}

.b {
  border: 1px solid var(--bs-border) !important;
}

.b-t {
  border-top: 1px solid var(--bs-border) !important;
}

.b-r {
  border-right: 1px solid var(--bs-border) !important;
}

.b-b {
  border-bottom: 1px solid var(--bs-border) !important;
}

.b-l {
  border-left: 1px solid var(--bs-border) !important;
}

.b-default {
  border-color: var(--bs-border) !important;
}

.b-primary {
  border-color: var(--bs-primary) !important;
}

.b-info {
  border-color: var(--bs-info) !important;
}

.b-success {
  border-color: var(--bs-success) !important;
}

.b-warning {
  border-color: var(--bs-warning) !important;
}

.b-danger {
  border-color: var(--bs-error) !important;
}

.b-2 {
  border-width: 2px;
}

.b-3 {
  border-width: 3px;
}

.b-4 {
  border-width: 4px;
}

.b-n-t {
  border-top: 0;
}

.b-n-r {
  border-right: 0;
}

.b-n-b {
  border-bottom: 0;
}

.b-n-l {
  border-left: 0;
}

/* Radius */
.no-r {
  border-radius: 0 !important;
}

.r {
  border-radius: var(--bs-border-radius-md);
}

.r-lg {
  border-radius: var(--bs-border-radius-lg);
}

.r-t-l {
  border-top-left-radius: var(--bs-border-radius-md);
}

.r-t-r {
  border-top-right-radius: var(--bs-border-radius-md);
}

.r-b-l {
  border-bottom-left-radius: var(--bs-border-radius-md);
}

.r-b-r {
  border-bottom-right-radius: var(--bs-border-radius-md);
}

.no-r-t-l {
  border-top-left-radius: 0 !important;
}

.no-r-t-r {
  border-top-right-radius: 0 !important;
}

.no-r-b-l {
  border-bottom-left-radius: 0 !important;
}

.no-r-b-r {
  border-bottom-right-radius: 0 !important;
}

/* Backgrounds */
.bg-primary {
  background-color: var(--bs-primary) !important;
}

.bg-primary-light {
  background-color: #dcd8f4 !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-secondary-light {
  background-color: #e7f6d9 !important;
}

.bg-success {
  background-color: var(--bs-success) !important;
}

.bg-danger {
  background-color: var(--bs-error) !important;
}

.bg-warning {
  background-color: var(--bs-warning) !important;
}

.bg-info {
  background-color: var(--bs-info) !important;
}

.bg-light {
  background-color: var(--bs-gray-100) !important;
}

.bg-gray-light {
  background: #fafafa;
}

.bg-dark {
  background-color: #2b2b2b !important;
}

/* Text Colors */
.text-white {
  color: #fff;
}

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

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

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

.text-danger {
  color: var(--bs-error) !important;
}

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

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

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

.text-dark {
  color: var(--bs-title) !important;
}

/* Size text */
.text-sm {
  font-size: var(--bs-text-sm);
}

.text-md {
  font-size: var(--bs-text-md) !important;
}

.text-lg {
  font-size: var(--bs-text-lg);
}

.label-analysis {
  display: flex;
  align-items: center;
  background: var(--bs-black-dark);
  padding: 2px 6px;
  border-radius: 30px;
  color: #ffffff;
  gap: 3px;
}

.label-analysis svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.label-analysis.error svg {
  color: var(--bs-error);
}

.label-analysis.success svg {
  color: var(--bs-success);
}

.label-analysis span {
  font-size: var(--bs-text-xs);
}

/* Buttons */
.btn {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--bs-border-radius-lg);
  font-weight: 600;
  font-size: var(--bs-text-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--bs-primary-dark);
  border-color: var(--bs-primary-dark);
}

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

.btn-secondary:hover {
  background-color: var(--bs-secondary-dark);
  border-color: var(--bs-secondary-dark);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary.show {
  background: transparent;
  color: var(--bs-title);
}

.btn-actions {
  display: inline-flex;
  align-items: center;
  width: 30px;
  height: 30px;
  justify-content: center;
}

.top20 {
  margin-top: 12px;
}

svg.feather-more-horizontal.btn-icon {
  width: 24px;
  height: 24px;
}

.btn-actions:hover,
.btn-actions.show {
  color: var(--bs-title);
}

.hide {
  display: none;
}

.d-none {
  display: none;
}

.show {
  display: block;
}

/* Customizados */
.max-w-470 {
  max-width: 470px;
}

/* Login */
.authent-login {
  background: url(../../img/bg-login.jpg) no-repeat center center;
}

.authent-login .card {
  overflow: hidden;
}

.authent-login .card-header {
  background: var(--bs-black-dark);
  border-radius: 0;
  padding: 30px 0;
}

.authent-login .card-body {
  padding: 30px 40px !important;
}

/* Layout */
.page-container {
  position: relative;
}

/* Header */
.header-nav {
  background: var(--bs-card-bg);
  padding: 8px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--bs-border);
}

.header-nav .header-left {
  gap: 12px;
}

.header-nav .header-left .icon-btn svg {
  fill: var(--bs-gray-600);
}

.header-nav .header-right .notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-text);
}

.header-nav .header-right .notif-btn-icon {
  width: 22px;
  height: 22px;
}

.header-nav .header-right .notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0px 4px;
  font-size: 10px;
  text-align: center;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 6px;
  border: 2px solid #fff;
  font-weight: bold;
}

.header-nav .header-right .notif-menu {
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.header-nav .header-right .notif-menu .dropdown-item {
  white-space: normal;
}

.header-nav .header-right .notif-menu .flex-grow-1 {
  min-width: 0;
}

.header-nav .header-right .notif-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  line-height: 1;
  color: #fff;
}

.header-nav .header-right .notif-icon i,
.header-nav .header-right .notif-icon svg {
  width: 18px;
  height: 18px;
}

.header-nav .header-right .notif-menu p {
  line-height: 18px;
}

.header-nav .header-right .nav-item-bar {
  width: 1px;
  height: 22px;
  background: var(--bs-border);
}

#profileDropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav .header-right .avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--bs-border-radius);
  display: block;
}

.header-nav .header-right .avatar-icon {
  width: 20px;
  height: 20px;
}

.header-nav .header-right .profile-menu {
  width: 250px;
}

.profile-menu-icon {
  width: 18px;
  height: 18px;
}

.profile-menu .dropdown-item {
  display: flex;
  gap: 10px;
}

/* Content row */
.content-row {
  display: flex;
}

/* Sidebar */
.page-sidebar {
  flex: 0 0 220px;
  background: var(--bs-black-dark);
  width: 220px;
  min-height: 100vh;
  transition:
    width 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1050;
}

.page-sidebar-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body:not(.sidebar-open) .page-sidebar {
  width: 0 !important;
  flex-basis: 0 !important;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-open .page-sidebar {
  width: 220px !important;
  flex-basis: 220px !important;
  opacity: 1;
  pointer-events: auto;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1040;
}

.page-sidebar .accordion-menu {
  padding: 20px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.page-sidebar .page-sidebar-menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.page-sidebar .accordion-menu li {
  width: 100%;
}

.page-sidebar .accordion-menu li a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  padding: 12px 15px;
  text-decoration: none;
  font-size: var(--bs-text-sm);
}

.page-sidebar .accordion-menu li a svg {
  width: 18px;
  height: 18px;
  text-align: center;
  vertical-align: text-top;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 10px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.page-sidebar .accordion-menu li.active-page a {
  border-radius: var(--bs-border-radius-lg);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 500;
}

.page-sidebar .accordion-menu li.active-page a svg {
  color: var(--bs-primary) !important;
}

.page-sidebar .accordion-menu > li.active-page ul li a.active {
  font-weight: 500;
}

.page-sidebar .accordion-menu li a:hover svg {
  margin-left: 5px;
}

.page-sidebar .accordion-menu li a .dropdown-icon {
  float: right;
  vertical-align: middle;
  line-height: 44px;
  font-size: 10px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  margin-right: 0;
}

.page-sidebar .accordion-menu li.open a .dropdown-icon {
  visibility: visible;
  transform: rotate(90deg);
}

.page-sidebar .accordion-menu li ul {
  padding: 5px 0;
  list-style: none;
}

.page-sidebar .accordion-menu li ul li a {
  color: #ffffff;
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  position: relative;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.page-sidebar .accordion-menu li ul li a:hover {
  margin-left: 5px;
}

.page-sidebar .page-sidebar-logout {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/****************************
********* PAGE CONTENT *******
*****************************/
.page-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
}

/* Sidebar hidden */
.sidebar-hidden .page-sidebar {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar-hidden .page-content {
  flex: 1 1 100%;
}

.sidebar-hidden .content-row {
  gap: 0;
}

.sidebar-hidden.sidebar-open .content-row {
  gap: 20px;
}

/* Filters */
.filter-custom {
  width: 560px;
}

.filter-dashboard {
  width: 360px;
}

/* Dashboard */
.dashboard-text-analysis {
  font-size: 30px;
  line-height: 38px;
  color: var(--bs-title);
  font-weight: 600;
}

.dashboard-exem-analysis {
  background: var(--bs-gray-100);
  border-radius: 8px;
  padding: 20px;
  font-size: 15px;
  color: var(--bs-title);
  height: 180px;
}

.dashboard-graphic-pie-services,
.dashboard-graphic-pie-services-clients {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dash-action-list .action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dash-action-list .status-bar {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dash-action-list .status-bar-one {
  background: #a2c61c;
}

.dash-action-list .status-bar-two {
  background: #15652e;
}

.dash-action-list .status-bar-three {
  background: #0d3d1c;
}

.dash-action-list .status-bar-four {
  background: #c7dd77;
}

.dash-action-list .status-bar-five {
  background: #549c6b;
}

.dash-order-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-thin {
  width: 150px;
  height: 8px;
  background: var(--bs-gray-100) !important;
  border-radius: 999px;
}

.progress-thin .progress-bar {
  border-radius: 999px;
}

.progress-thin .progress-bar.bar-green {
  background: var(--bs-primary);
}

.vbar {
  width: 4px;
  height: 70px;
  border-radius: 8px;
  display: inline-block;
}

.vbar.bar-purple {
  background: var(--bs-primary);
}

.vbar.bar-green {
  background: var(--bs-secondary);
}

.vbar.bar-red {
  background: var(--bs-error);
}

.vbar.bar-green-dark {
  background: var(--bs-success);
}

.option-item .option-textarea {
  padding-left: 2.2rem;
}

.option-item .option-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
}

.option-item .btn-remove-option {
  width: 44px;
  height: 44px;
  border-radius: var(--bs-border-radius-lg);
  border: 1px solid var(--bs-border);
  justify-content: center;
}

.btn-add-option {
  color: var(--bs-primary);
}

.btn-add-option:hover {
  color: var(--bs-primary);
}

/****************************
********* UI ELEMENTS *******
*****************************/
/* Alerts */
.alert.light {
  border-radius: 8px;
  padding: 16px;
}

.alert.light .alert-content {
  display: flex;
  flex-direction: column;
}

.alert-success.light {
  background: #e9f8f2;
  border-color: var(--bs-success);
  color: #062519;
}

.alert-success.light svg {
  color: #1fb77b;
}

.alert-warning.light {
  background: #fef9eb;
  border-color: var(--bs-warning);
  color: #33280a;
}

.alert-warning.light svg {
  color: var(--bs-warning);
}

/* Dropdowns */
.dropdown-menu {
  border-radius: var(--bs-border-radius-md);
  border: 1px solid var(--bs-border);
  padding: 15px 0;
  margin: 10px 0 0 0 !important;
}

.dropdown-item {
  color: var(--bs-text-secondary);
  font-size: var(--bs-text-sm);
  padding: 9px 26px;
  white-space: normal;
  display: flex;
  gap: 10px;
  align-items: center;
}

.dropdown-item:hover {
  background: none;
  color: var(--bs-text);
}

.dropdown-divider {
  border-color: var(--bs-border);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--bs-primary);
  background: none;
}

.dropdown-header {
  padding: 8px 26px;
}

.dropdown-menu form {
  padding: 8px 20px;
}

/* Cards */
.card {
  margin-bottom: 28px;
  border-radius: 15px;
  border: none;
}

.card-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 24px;
  color: var(--bs-title);
  margin-bottom: 30px;
}

.card-title h1 {
  font-size: 24px;
}

.card-body {
  padding: 32px;
}

.card-header,
.card-footer {
  border-color: var(--bs-border);
}

/* breadcrumb */
.breadcrumb {
  font-size: var(--bs-text-sm);
}

.breadcrumb-item a {
  color: var(--bs-text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--bs-title);
}

.breadcrumb-item.active {
  color: var(--bs-title);
  font-weight: 500;
}

/* Navs */
.tabs-surface {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--bs-border);
  padding: 0 20px;
}

.tabs-surface .nav {
  font-size: var(--bs-text-sm);
  font-weight: 600;
}

.nav-pills .nav-link.active,
.nav-pills .show .nav-link {
  background-color: transparent;
  color: var(--bs-title) !important;
  border-color: var(--bs-primary);
}

.nav-pills .nav-link {
  padding: 18px 16px !important;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.nav-item .nav-link {
  color: var(--bs-text-secondary) !important;
  padding: 10px 16px;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link {
  border: 0;
}

/* Badge */
.badge {
  font-weight: 500;
  padding: 7px 12px;
  font-weight: 600;
}

.badge:not(.badge-pill) {
  border-radius: 100px;
}

.badge.bg-primary {
  background-color: #dcd8f4 !important;
  color: var(--bs-primary);
}

.badge.bg-success {
  background-color: #d2f1e5 !important;
  color: #199262;
}

.badge.bg-danger {
  background-color: #f9d8d8 !important;
  color: #b62f2f;
}

.badge.bg-warning {
  background-color: #fdf2d6 !important;
  color: var(--bs-warning);
}

.badge.bg-info {
  background-color: #d0e4f9 !important;
  color: var(--bs-info);
}

.badge.bg-dark {
  background-color: #e8e8e8 !important;
  color: var(--bs-gray-700);
}

/* Modals */
body.modal-open {
  overflow: visible;
}

.modal-content {
  border-radius: var(--bs-border-radius-md);
  border: none;
}

.modal-header {
  padding: 16px 30px;
  border: 0;
  border-bottom: 1px solid var(--bs-border);
}

.modal-title {
  font-size: 18px !important;
  color: var(--bs-title) !important;
}

.modal-body {
  padding: 30px;
}

/* Pagination */
.page-link {
  color: var(--bs-text);
  border-color: var(--bs-border);
  border-radius: var(--bs-border-radius-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.page-link:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  border-color: var(--bs-border);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
  border-radius: var(--bs-border-radius-lg);
}

.page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  border-radius: var(--bs-border-radius-lg);
}

/* Progress */
.progress {
  background-color: #dcd8f4;
}

.progress-bar {
  background-color: var(--bs-primary);
}

/* Accordion */
.accordion-element {
  overflow: hidden;
  border-radius: var(--bs-border-radius-lg);
}

.accordion-header {
  background: var(--bs-gray-100);
}

.accordion-button {
  border: none;
  padding: 20px;
}

.accordion-collapse {
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--bs-primary);
}

.accordion-item:first-of-type .accordion-button {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.accordion-item:last-of-type .accordion-button.collapsed {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.accordion-flush .accordion-button {
  box-shadow: none;
}

/* Form Elements */
.form-label {
  font-weight: 500;
  font-size: var(--bs-text-sm);
  margin-bottom: 6px;
  color: var(--bs-title);
}

.form-label-small {
  font-size: 12px;
  margin-top: 6px;
  color: var(--bs-text-secondary);
}

.form-control {
  height: 44px;
  border-radius: var(--bs-border-radius-lg);
  font-size: var(--bs-text-md);
  border: 1px solid var(--bs-border) !important;
  box-shadow: none;
  padding: 10px 18px;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  background-color: #fafafa;
  color: var(--bs-title);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: none;
}

.form-select {
  border-color: var(--bs-border) !important;
  border-radius: var(--bs-border-radius-lg);
  height: 44px;
  padding: 0 18px;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.input-group-text {
  border-radius: var(--bs-border-radius-lg);
  background-color: #fff;
  border-color: var(--bs-border);
}

.form-control.is-valid,
.was-validated .form-control:valid,
.form-select.is-valid,
.was-validated .form-select:valid {
  border-color: var(--bs-success);
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.was-validated .form-select:invalid {
  border-color: var(--bs-error);
}

textarea.form-control {
  height: auto;
  padding: 18px;
}

.dropzone {
  border: 2px dashed var(--bs-border);
  border-radius: var(--bs-border-radius-lg);
  cursor: pointer;
}

.dropzone-btn {
  width: 48px;
  height: 48px;
  background: var(--bs-primary);
  color: #ffffff;
}

.dropzone.dragover {
  background: #f5f3ff;
  border-color: var(--bs-border);
}

.object-fit-cover {
  object-fit: cover;
}

.dropzone-btn-action {
  width: 30px;
  height: 30px;
  background: #ffffff;
  padding: 0;
  border: 1px solid var(--bs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-text);
  border-radius: var(--bs-border-radius-lg);
  cursor: pointer;
}

.form-subtitle {
  font-size: 18px;
  color: var(--bs-title);
}

.form-switch {
  padding-left: 0;
}

.form-switch .form-check-input {
  margin-left: 8px !important;
  height: 22px !important;
  width: 36px !important;
  margin-top: 0 !important;
}

.image-gall {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--bs-border-radius);
}

/* Tables */
.table {
  color: var(--bs-text);
  border-color: var(--bs-border);
}

.table * {
  border-color: var(--bs-border) !important;
}

.table th,
.table td {
  padding: 15px 20px !important;
  font-weight: normal;
  vertical-align: middle;
  font-size: var(--bs-text-sm);
  color: var(--bs-text);
}

.table thead th {
  font-weight: 500;
  color: var(--bs-text-secondary);
  text-transform: uppercase;
  font-size: 12px;
}

.table tbody tr:last-child td,
.table tbody tr:last-child th {
  border-bottom: none;
}

.table tfoot tr td,
.table tfoot tr th {
  border-bottom: none;
  border-top-width: 1px;
}

.table-hover tbody tr {
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.table-hover tbody tr:hover {
  --bs-table-hover-bg: transparent;
  background: var(--bs-gray-100);
}

.table-striped tbody tr:nth-of-type(odd) {
  --bs-table-striped-bg: var(--bs-gray-100);
}

.table-striped tbody tr:nth-of-type(odd) {
  color: var(--bs-text);
}

.table-active {
  --bs-table-bg-state: var(--bs-gray-100);
}

/* permissionamentos switchs */

.form-switch .form-check-input {
  width: 3em;
  height: 1.5em;
  margin-right: 0.75rem;
}

.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.permission-box {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1.25rem;
  height: 100%;
  background: #fff;
}

.permission-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.sub-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.sub-permissions.single-column {
  grid-template-columns: 1fr;
}

/* checkbox do form usuario*/

/* Container principal (opcional, apenas para agrupar) */
.cc-container {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cc-title {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0;
}

/* Wrapper de cada item individual */
.cc-item {
  margin-bottom: 15px;
  position: relative;
  display: block; /* Garante que ocupe a linha */
}

/* 1. Ocultar o input original usando uma classe específica */
.cc-input {
  display: none !important; /* !important garante que sobrescreva estilos globais */
}

/* 2. Estilo da Barra (Label) */
.cc-label {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px;
  background-color: #fff;
  border: 1px solid #e0e0e0; /* Borda reduzida para 1px */
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  user-select: none;
  margin: 0; /* Remove margens padrões de labels em alguns frameworks */
  font-weight: normal; /* Reseta pesos herdados */
}

/* Hover na barra */
.cc-label:hover {
  background-color: #f9f9f9;
  border-color: #ccc;
}

/* 3. Quadrado do Checkbox */
.cc-square {
  width: 20px;
  height: 20px;
  border: 1px solid #bbb; /* Borda reduzida para 1px */
  border-radius: 4px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background-color: white;
  position: relative; /* Necessário para o pseudo-elemento after */
}

/* Texto da opção */
.cc-text {
  font-size: 16px;
  color: #555;
  font-weight: 500;
  line-height: 1.2;
}

/* --- LÓGICA DE SELEÇÃO (CHECKED) --- */

/* Muda a borda e fundo da barra quando selecionado */
.cc-input:checked + .cc-label {
  border-color: #4caf50;
  background-color: #f0fff4;
}

/* Muda a cor do quadrado quando selecionado */
.cc-input:checked + .cc-label .cc-square {
  background-color: #4caf50;
  border-color: #4caf50;
}

/* O "V" (check icon) dentro do quadrado */
.cc-square::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  margin-bottom: 2px;
  display: block;
}

/* Mostra o "V" quando selecionado */
.cc-input:checked + .cc-label .cc-square::after {
  transform: rotate(45deg) scale(1);
}

/* Muda a cor do texto quando selecionado */
.cc-input:checked + .cc-label .cc-text {
  color: #2e7d32;
}

.assinatura-tecnico {
  max-width: 300px; /* largura máxima */
  width: 100%;
  height: auto;

  max-height: 100px; /* altura máxima */
  object-fit: contain;

  margin-top: 6px;
}

/****************************
************ MOBILE **********
*****************************/
/* 1350 */
@media (max-width: 1350px) {
}

/* 1200 */
@media (max-width: 1200px) {
}

/* Min 992 **/
@media (min-width: 992px) {
  /* Sidebar */
  .page-sidebar {
    position: relative;
    width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition:
      width 0.2s ease,
      opacity 0.2s ease;
  }

  body.sidebar-open .page-sidebar {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* 992 */
@media (max-width: 991.98px) {
  /* Sidebar */
  .page-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateX(-110%);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
    opacity: 1;
    pointer-events: none;
  }

  body.sidebar-open .page-sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav .unit-switch {
    padding: 8px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }

  .header-nav .unit-switch .unit-name,
  .header-nav .unit-switch .unit-caret {
    display: none !important;
  }

  /* Card */
  .card-body {
    padding: 20px;
  }

  /* Paddings */
  .p {
    padding: 20px;
  }

  /* Form control */
  .form-switch .form-check-input {
    margin-left: 0 !important;
  }

  /* Modal */
  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .header-nav .header-right .notif-menu {
    width: 300px;
    right: -30px;
  }

  .filter-custom {
    width: 300px;
  }
}

/****************************
****** SELECT2 OVERRIDES ****
*****************************/
/* Container - full width */
.select2-container {
  width: 100% !important;
}

/* ===== SINGLE SELECT ===== */
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius);
  height: auto;
  min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width, 1px) * 2));
  padding: 0.375rem 0.75rem;
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bs-text);
  line-height: 1.5;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: var(--bs-text);
  line-height: 1.5;
  padding-left: 0;
  padding-right: 30px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: var(--bs-text-tertiary);
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  display: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  margin-right: 20px;
  font-size: 1.2em;
  color: var(--bs-gray-500);
  position: relative;
  z-index: 1;
}

/* ===== MULTIPLE SELECT ===== */
.select2-container--default .select2-selection--multiple {
  background-color: #fff;
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius);
  min-height: calc(1.5em + 0.75rem + calc(var(--bs-border-width, 1px) * 2));
  padding: 0.375rem 0.375rem 0 0.375rem;
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bs-text);
  line-height: 1.5;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  cursor: text;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: var(--bs-gray-100);
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius-sm);
  color: var(--bs-text);
  padding: 2px 4px 2px 24px;
  margin: 2px 4px 2px 0;
  font-size: var(--bs-text-sm);
  line-height: 1.4;
  max-width: 100%;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__display {
  padding-left: 4px;
  padding-right: 4px;
  cursor: default;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: var(--bs-gray-500);
  font-weight: bold;
  border-right: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius-sm) 0 0 var(--bs-border-radius-sm);
  padding: 2px 5px;
  background-color: transparent;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover,
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:focus {
  background-color: var(--bs-gray-200);
  color: var(--bs-error);
}

.select2-container--default
  .select2-selection--multiple
  .select2-search--inline
  .select2-search__field {
  font-family: "Figtree", sans-serif;
  font-size: var(--bs-text-sm);
  color: var(--bs-text);
  margin-top: 4px;
  height: 28px;
}

/* ===== FOCUS STATES ===== */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open
  .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(162, 198, 28, 0.25);
  outline: 0;
}

/* ===== DISABLED STATE ===== */
.select2-container--default.select2-container--disabled
  .select2-selection--single,
.select2-container--default.select2-container--disabled
  .select2-selection--multiple {
  background-color: var(--bs-gray-100);
  opacity: 0.65;
  cursor: not-allowed;
}

/* ===== DROPDOWN ===== */
.select2-dropdown {
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  font-family: "Figtree", sans-serif;
  z-index: 1055;
  overflow: hidden;
}

.select2-container--open .select2-dropdown--below {
  border-top: 1px solid var(--bs-gray-200);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.select2-container--open .select2-dropdown--above {
  border-bottom: 1px solid var(--bs-gray-200);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Opened states - remove border radius to match dropdown connection */
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below
  .select2-selection--multiple {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above
  .select2-selection--multiple {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* ===== SEARCH INPUT IN DROPDOWN ===== */
.select2-search--dropdown {
  padding: 8px;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius);
  padding: 6px 12px;
  font-family: "Figtree", sans-serif;
  font-size: var(--bs-text-sm);
  color: var(--bs-text);
  outline: none;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(162, 198, 28, 0.25);
}

/* ===== RESULTS / OPTIONS ===== */
.select2-results__option {
  padding: 8px 12px;
  font-size: var(--bs-text-sm);
  color: var(--bs-text);
  transition: background-color 0.1s ease;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--bs-primary);
  color: #fff;
}

.select2-container--default .select2-results__option--selected {
  background-color: var(--bs-gray-100);
  color: var(--bs-text);
}

.select2-container--default .select2-results__option--disabled {
  color: var(--bs-text-tertiary);
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 250px;
  overflow-y: auto;
}

/* ===== LOADING / MESSAGES ===== */
.select2-results__message {
  padding: 10px 12px;
  color: var(--bs-text-secondary);
  font-size: var(--bs-text-sm);
  font-style: italic;
}

/* ===================================================================
   BOOTSTRAP-DATETIMEPICKER — Glyphicon → Font Awesome 6 mapping
   O plugin usa classes glyphicon do Bootstrap 3 que não existem no BS5.
   Mapeamos cada ícone para o equivalente do Font Awesome 6.
   =================================================================== */
.glyphicon {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.glyphicon-time::before {
  content: "\f017";
} /* fa-clock */
.glyphicon-calendar::before {
  content: "\f073";
} /* fa-calendar */
.glyphicon-chevron-up::before {
  content: "\f077";
} /* fa-chevron-up */
.glyphicon-chevron-down::before {
  content: "\f078";
} /* fa-chevron-down */
.glyphicon-chevron-left::before {
  content: "\f053";
} /* fa-chevron-left */
.glyphicon-chevron-right::before {
  content: "\f054";
} /* fa-chevron-right */
.glyphicon-screenshot::before {
  content: "\f05b";
} /* fa-crosshairs (today) */
.glyphicon-trash::before {
  content: "\f1f8";
} /* fa-trash-can (clear) */
.glyphicon-remove::before {
  content: "\f00d";
} /* fa-xmark (close) */

/* Widget: garantir z-index alto e sombra */
.bootstrap-datetimepicker-widget {
  z-index: 1060 !important;
}

/* BS3→BS5 fix: o plugin usa .collapse.in para mostrar painéis,
   mas o BS5 mudou para .collapse.show. Forçamos que .collapse.in
   dentro do widget se comporte como visível. */
.bootstrap-datetimepicker-widget .collapse.in {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
  overflow: visible !important;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--bs-gray-200);
  border-radius: 8px;
  padding: 8px;
}

/* Ajustar cor de active para ficar coerente com o tema */
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  background-color: var(--bs-primary) !important;
  color: #fff;
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: var(--bs-primary) !important;
}

.bootstrap-datetimepicker-widget table td span.active {
  background-color: var(--bs-primary) !important;
  color: #fff;
}
