:root {
  --app-bg: #f5f6f8;
  --app-card-bg: #ffffff;
  --app-sidebar-bg: #eef1f4;
  --app-sidebar-border: #d9dee5;
  --app-topbar-bg: #ffffff;
  --app-topbar-border: #e6e9ef;
  --app-text: #1f2937;
  --app-muted: #6b7280;
  --app-accent: var(--primary-color, #008D8D);
  --app-shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.08);
  --app-shadow-xs: 0 3px 12px rgba(16, 24, 40, 0.06);
  --app-radius-lg: 32px;
  --app-radius-md: 12px;
  --app-radius-sm: 8px;
  --primary-rgb: 0, 141, 141;
}

body.layout-default:not(.auth) {
  background: var(--app-bg);
  color: var(--app-text);
}

main .page-body {
  background: var(--app-card-bg);
}

main .page-body.clean {
  background: transparent;
}

.app-brand {
  position: relative;
  z-index: 4;
}

.app-topbar {
  background: var(--app-topbar-bg);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
  position: sticky;
  top: 0;
  z-index: 6;
}

body.layout-border header, body.layout-border .page-header {
    border-bottom: none;
    border-radius: 0 0 0 32px;
}

.app-page-header {
  background: transparent;
  border-bottom: 1px solid var(--app-topbar-border);
}

/* .app-content {
  padding-bottom: 2rem;
}

.content-card {
  background: var(--app-card-bg);
  border-radius: var(--app-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--app-shadow-sm);
  border: 1px solid #eef0f4;
}

@media (max-width: 991.98px) {
  .content-card {
    padding: 1.25rem;
    border-radius: var(--app-radius-md);
  }
} */

.sidebar {
  background: var(--app-sidebar-bg);
  min-height: 100vh;
  position: relative;
  z-index: 7;
}

.sidebar .offcanvas {
  background: var(--app-sidebar-bg);
}

.sidebar .offcanvas-header {
  border-bottom: 1px solid var(--app-sidebar-border);
}

.sidebar .menu-list a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.85rem;
  margin: 0.2rem 0;
  border-radius: var(--app-radius-sm);
  color: var(--app-text);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sidebar .menu-list a i {
  width: 1.3rem;
  text-align: center;
  font-size: 1rem;
  /*color: var(--app-muted);*/
}

.sidebar .menu-list>li>a[aria-expanded="true"],
.sidebar .menu-list>li>a:hover,
.sidebar .menu-list>li>a:focus,
.sidebar .menu-list a.active,
.sidebar .menu-list li.active > a,
.sidebar .menu-list a[aria-current="page"] {
    /*background: rgba(var(--primary-rgb), 0.2);*/
    background: var(--primary-color);
    color: #ffffff;
}
/* .sidebar .menu-list a:hover,
.sidebar .menu-list a:focus {
  background: #dde3ea;
  color: var(--app-text);
}

.sidebar .menu-list a.active,
.sidebar .menu-list li.active > a,
.sidebar .menu-list a[aria-current="page"] {
  background: #d7dfe9;
  border-left: 4px solid var(--app-accent);
  padding-left: 0.7rem;
  color: var(--app-text);
} */

.sidebar .menu-list>li ul li a:hover{
  background: transparent;
  border-left: 4px solid var(--app-accent);
  color: var(--app-text);
  border-radius: 0;
}

.sidebar .menu-list > li ul li a.sidebar-footer-icon:hover,
.sidebar .menu-list > li ul li a.rounded-pill:hover {
  border-left: none;
}

.sidebar .menu-list .collapse {
  padding-left: 1.75rem;
  margin-top: 0.35rem;
}

.sidebar .menu-list .collapse a {
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0;
  /* padding-left: 1.75rem; */
  /* margin-top: 0.35rem; */
}

.rightbar {
  background: transparent;
}

.rightbar-offcanvas {
  width: 360px;
  z-index: 1080;
}

.rightbar-header,
.rightbar-body {
  background: var(--app-card-bg);
}

.rightbar-header {
  border-bottom: 1px solid var(--app-topbar-border);
}

.rightbar-body .card {
  background: var(--app-card-bg);
  border: 1px solid #eef0f4;
  box-shadow: var(--app-shadow-xs);
}

.page-header .action .btn,
.page-header .action .dropdown > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--app-text);
  background: #f0f2f5;
  border: 1px solid #e3e6ed;
  transition: all 0.2s ease;
}

.page-header .action .btn:hover,
.page-header .action .dropdown > a:hover {
  background: #e6eaf0;
}

.btn {
  border-radius: var(--app-radius-sm);
  font-weight: 600;
}

.btn-primary,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary {
  box-shadow: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.card {
  border-radius: var(--app-radius-md);
  box-shadow: var(--app-shadow-xs);
  border: 1px solid #eef0f4;
}

.card-header {
  border-bottom: 1px solid #eef0f4;
  background: transparent;
}

.form-control,
.form-select,
.select2-container--default .select2-selection--single {
  border-radius: var(--app-radius-sm);
  border-color: #dfe3ea;
  /* padding: 0.6rem 0.85rem; */
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.select2-container--default .select2-selection--single:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.table {
  border-color: #e8ebf1;
}

.offcanvas-backdrop.show {
  opacity: 0.45;
}

@media (max-width: 1199.98px) {
  .sidebar {
    min-height: auto;
  }

  .rightbar-offcanvas {
    width: 92vw;
  }
}

@media (max-width: 767.98px) {
  .app-topbar {
    position: static;
  }

  .page-header .action .btn,
  .page-header .action .dropdown > a {
    width: 36px;
    height: 36px;
  }
}


.info-tooltip-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    line-height: 1;
}

.info-tooltip-btn:hover,
.info-tooltip-btn:focus-visible {
    color: var(--primary-color);
}

.info-tooltip-btn i {
    font-size: 1rem;
}

.equipment-transfer-checkbox {
    accent-color: #0060df;
}
.status-bar {
  width: 3px;
  height: 100%;
  min-height: 65px;
  border-radius: 0px;
}

td:has(.status-bar) {
    padding: 0 0 0 0 !important;
}

table.dataTable > tbody > tr.selected > * {
  box-shadow: inset 0 0 0 9999px #ced3d8 ;
  color: rgb(255, 255, 255);
  color: rgb(var(--dt-row-selected-text));
}

table.dataTable > tbody > tr:hover > * {
  box-shadow: inset 0 0 0 9999px #ced3d8 !important;
  color: rgb(255, 255, 255) !important;
  color: rgb(var(--dt-row-selected-text)) !important;
}

table.dataTable > tbody > tr:hover > td a{
  color: #000 !important;
}

table.dataTable > tbody > tr:hover > td{
  background: #fff !important;
}

table.dataTable > tbody > tr:hover > * {
  color: rgb(0, 0, 0) !important;
}

#otherEquipments {
    max-height: 515px;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-floating.tomselect-floating > label,
.form-floating:has(.tomselect-users + .ts-wrapper) > label {
  transform: scale(.85) translateY(-0.6rem) translateX(.15rem);
  opacity: .8;
  pointer-events: none;
}

.form-floating.tomselect-floating .ts-wrapper,
.form-floating:has(.tomselect-users + .ts-wrapper) .ts-wrapper {
  width: 100%;
}

.form-floating.tomselect-floating .tomselect-users + .ts-wrapper .ts-control,
.form-floating.tomselect-floating .ts-wrapper .ts-control,
.form-floating:has(.tomselect-users + .ts-wrapper) .tomselect-users + .ts-wrapper .ts-control {
  min-height: 58px;
  padding-top: 1.4rem;
  background: #fff;
  flex-wrap: wrap;
}

.form-floating.tomselect-floating .tomselect-users + .ts-wrapper .item,
.form-floating.tomselect-floating .ts-wrapper .item,
.form-floating:has(.tomselect-users + .ts-wrapper) .tomselect-users + .ts-wrapper .item {
  font-weight: 500;
  max-width: 100%;
}

.sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
}

.sidebar-footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--app-sidebar-border);
  border-radius: 999px;
  box-shadow: var(--app-shadow-xs);
}

.sidebar-footer-icons .nav-item {
  display: inline-flex;
  align-items: center;
}

.sidebar-footer-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--app-muted);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-footer-icon:hover,
.sidebar-footer-icon:focus {
  color: #ffffff;
  background: var(--primary-color);
}

.sidebar-footer-icon i {
  font-size: 0.9rem;
  line-height: 1;
}

.sidebar-footer-icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-footer-separator {
  width: 1px;
  height: 18px;
  margin: 0 0.25rem;
  background: var(--app-sidebar-border);
  opacity: 0.9;
}

.sidebar-footer-icons .dropdown-toggle::after,
.sidebar-footer-icon::after {
  display: none !important;
}

.sidebar-footer-icons .dropdown-menu {
  margin-bottom: 0.5rem !important;
}


@media (max-width: 575.98px) {
    .card-header.py-3.d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: .85rem;
    }

    .card-header.py-3.d-flex.justify-content-between.align-items-center > h4 {
        width: 100%;
    }

    .card-header.py-3.d-flex.justify-content-between.align-items-center > .d-flex.gap-2 {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem !important;
    }

    .card-header.py-3.d-flex.justify-content-between.align-items-center > .d-flex.gap-2 > .btn-group {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .card-header.py-3.d-flex.justify-content-between.align-items-center > .d-flex.gap-2 > .btn-group > .btn {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: .35rem;
        padding-right: .35rem;
    }

    .card-header.py-3.d-flex.justify-content-between.align-items-center > .d-flex.gap-2 > .btn,
    .card-header.py-3.d-flex.justify-content-between.align-items-center > .d-flex.gap-2 > button.btn {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: .5rem;
        padding-right: .5rem;
        text-align: center;
    }
}

.sidebar-footer-row {
  display: none;
}

@media (max-width: 1200px) {
  .sidebar-footer-row {
    display: flex; 
  }
}

.li_animate > li:hover{
  z-index: 1;
}

.plan-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.plan-card.is-disabled .plan-card__inner {
    border-color: #d1d5db;
    box-shadow: none;
}

.plan-card.is-disabled::after {
    content: "Plano atual";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b7280;
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

table.dataTable > tbody > tr > td.select-checkbox::before,
table.dataTable > tbody > tr > th.select-checkbox::before {
    content: none !important;
    display: none !important;
}

body.onboarding-locked .app-topbar {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.ql-align-center {
  text-align: center;
}

.bullet {
  list-style: disc;
}

.ql-align-justify {
  text-align: justify;
}