:root {
  --detix-blue: #0d6efd;
  --detix-sidebar: #1a3a5c;
  --detix-orange: #fd7e14;
  --detix-footer-height: 2rem;
}

.app-sidebar {
  --lte-sidebar-bg: var(--detix-sidebar);
}

.sidebar-brand .brand-link .brand-text {
  font-weight: 600 !important;
  color: #7ec8ff !important;
}

body:not(.detix-login-page):not(.detix-menu-pronto) .sidebar-menu > .nav-item {
  visibility: hidden;
}

.sidebar-brand .brand-link:hover .brand-text {
  color: #a8dcff !important;
}

.app-main {
  padding-bottom: calc(var(--detix-footer-height) + 0.75rem);
}

.app-footer.detix-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--detix-footer-height);
  height: var(--detix-footer-height);
  font-size: 0.76rem;
  line-height: 1.2;
  color: var(--bs-secondary-color);
  padding: 0.45rem 1rem !important;
  background-color: #f4f5f7;
  border-top: 1px solid var(--bs-border-color-translucent);
}

@media (min-width: 992px) {
  .layout-fixed .app-footer.detix-footer {
    left: var(--lte-sidebar-width, 250px);
  }

  .sidebar-collapse.layout-fixed .app-footer.detix-footer {
    left: 4.6rem;
  }
}

[data-bs-theme='dark'] .app-footer.detix-footer {
  background-color: #2b3035;
}

.detix-btn-refresh .bi {
  color: #198754;
  font-size: 1.15rem;
}

.detix-btn-refresh:hover .bi {
  color: #157347;
}

.detix-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: #adb5bd;
  color: #fff;
  flex-shrink: 0;
}

.detix-user-avatar .bi {
  font-size: 1.2rem;
}

.detix-user-avatar-lg {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.5rem;
}

.detix-user-avatar-lg .bi {
  font-size: 2.4rem;
}

.card-kpi .bi {
  font-size: 2rem;
  color: var(--detix-blue);
}

.card-kpi-saldo-ok {
  color: #198754;
}

.card-kpi-saldo-baixo {
  color: var(--detix-orange);
}

.card-kpi-saldo-zero {
  color: #dc3545;
}

.small-box h3.card-kpi-saldo-ok,
.small-box h3.card-kpi-saldo-baixo,
.small-box h3.card-kpi-saldo-zero {
  color: inherit;
}

.small-box.text-bg-teal {
  color: #fff !important;
  background-color: #20c997 !important;
}

.small-box.text-bg-orange {
  color: #fff !important;
  background-color: var(--detix-orange) !important;
}

.small-box .small-box-icon.bi {
  display: block;
  line-height: 1;
}

@media (min-width: 992px) {
  .col-lg .small-box h3,
  .col-lg .small-box .h3 {
    font-size: 1.6rem;
  }
}

.detix-api-status {
  font-size: 0.82rem;
  font-weight: 600;
}

.detix-alertas {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.detix-alertas[hidden] {
  display: none;
}

.detix-alerta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
}

.detix-alerta + .detix-alerta {
  border-top: none;
}

.detix-alerta .bi {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.detix-alerta-aviso {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffc107;
}

[data-bs-theme='dark'] .detix-alerta-aviso {
  background-color: #664d03;
  color: #ffe69c;
  border-color: #ffc107;
}

.btn-detix-enviar {
  background-color: var(--detix-orange);
  border-color: var(--detix-orange);
  color: #fff;
}

.btn-detix-enviar:hover {
  background-color: #e56f0a;
  border-color: #e56f0a;
  color: #fff;
}

.btn-detix-enviar:disabled,
.btn-detix-enviar:disabled:hover {
  background-color: var(--detix-orange);
  border-color: var(--detix-orange);
  color: #fff;
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-item {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.3;
}

.contact-item:hover {
  background-color: var(--bs-tertiary-bg);
}

.contact-item .form-check-input {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.15rem;
}

.tag-merge {
  display: inline-block;
  background: #d1e7dd;
  color: #0f5132;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
}

.tag-merge-btn {
  border: none;
  cursor: pointer;
  line-height: 1.3;
}

.tag-merge-btn:hover {
  background: #bfe2d1;
}

.tag-merge-btn:active {
  transform: scale(0.98);
}

.detix-enviar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.detix-sms-modelos-menu {
  max-height: 16rem;
  overflow-y: auto;
}

.contact-item-envio {
  cursor: default;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-item-envio:hover {
  background-color: transparent;
}

.contact-item-envio.contact-item-envio--pendente {
  background-color: #fde8e8;
  border-color: #f5c2c7;
}

.contact-item-envio.contact-item-envio--pendente:hover {
  background-color: #fde8e8;
}

.contact-item-envio.contact-item-envio--completo {
  background-color: #e8f6ed;
  border-color: #badbcc;
}

.contact-item-envio.contact-item-envio--completo:hover {
  background-color: #e8f6ed;
}

[data-bs-theme='dark'] .contact-item-envio:hover {
  background-color: transparent;
}

[data-bs-theme='dark'] .contact-item-envio.contact-item-envio--pendente {
  background-color: #3d2224;
  border-color: #842029;
}

[data-bs-theme='dark'] .contact-item-envio.contact-item-envio--pendente:hover {
  background-color: #3d2224;
}

[data-bs-theme='dark'] .contact-item-envio.contact-item-envio--completo {
  background-color: #1e3a2a;
  border-color: #146c43;
}

[data-bs-theme='dark'] .contact-item-envio.contact-item-envio--completo:hover {
  background-color: #1e3a2a;
}

.detix-contacto-campo-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.detix-contacto-linha-envio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.detix-contacto-linha-envio .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
}

.detix-contacto-info {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.35rem;
  row-gap: 0.05rem;
}

.detix-contacto-nome {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.detix-contacto-telefone {
  font-size: 0.74rem;
  white-space: nowrap;
}

.detix-contacto-agenda-inline {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.detix-contacto-agenda-inline .contacto-data-cliente {
  width: 8.3rem;
}

.detix-contacto-agenda-inline .contacto-hora-cliente {
  width: 5.4rem;
}

.detix-contacto-agenda .form-control {
  font-size: 0.78rem;
  padding: 0.2rem 0.35rem;
}

/* Enviar SMS */
.detix-enviar-card .card-header {
  padding: 0.55rem 0.85rem;
}

.detix-enviar-card .card-title {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.detix-enviar-card .card-body {
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
}

.detix-enviar-card .btn {
  font-size: 0.82rem;
}

.detix-enviar-card .form-control {
  font-size: 0.82rem;
}

.detix-enviar-card .form-check-label {
  font-size: 0.82rem;
}

.detix-enviar-meta {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

.detix-enviar-contador {
  font-size: 0.78rem;
  color: #dc3545;
  margin-bottom: 0;
}

.detix-enviar-aviso {
  font-size: 0.78rem;
  color: #dc3545;
}

.detix-enviar-agendamento .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.detix-enviar-agendamento .form-control,
.detix-enviar-agendamento .input-group-text {
  font-size: 0.82rem;
}

.detix-modal-contactos .modal-header {
  padding: 0.65rem 1rem;
}

.detix-modal-contactos .modal-title {
  font-size: 0.95rem;
}

.detix-modal-contactos .modal-body {
  padding: 0.85rem 1rem;
}

.detix-modal-contactos .modal-footer {
  padding: 0.65rem 1rem;
}

.detix-modal-contactos .modal-footer .btn,
.detix-modal-contactos .form-control {
  font-size: 0.82rem;
}

.detix-modal-contactos-lista {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 18rem;
  overflow-y: auto;
}

.detix-modal-contactos-lista .contact-item {
  margin-bottom: 0;
}

/* Login */
.detix-login-page {
  position: relative;
  min-height: 100vh;
  background: #fff;
}

.detix-login-theme {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 10;
  color: #212529;
  text-decoration: none;
}

.detix-login-theme:hover {
  color: var(--detix-blue);
}

.detix-login-theme .bi {
  font-size: 1.15rem;
}

.detix-login-main {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.detix-login-wrap {
  width: 100%;
  max-width: 760px;
}

.detix-login-logo {
  display: block;
  max-height: 56px;
  width: auto;
  margin: 0 auto 1.25rem;
}

.detix-login-logo-dark {
  display: none;
}

[data-bs-theme='dark'] .detix-login-logo-light {
  display: none;
}

[data-bs-theme='dark'] .detix-login-logo-dark {
  display: block;
}

.detix-login-panel {
  width: 100%;
  max-width: 760px;
  background: #ececec;
  padding: 2rem 2.5rem;
}

.detix-login-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  color: #111;
}

.detix-login-erro {
  margin: 0 0 1.25rem;
  color: #b42318;
  font-weight: 600;
}

.detix-login-erro.detix-login-info {
  color: #1f4e79;
  font-weight: 600;
}

.detix-login-field {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detix-login-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
  color: #222;
}

.detix-login-field label .bi {
  color: var(--detix-blue);
  font-size: 1.35rem;
}

.detix-login-field .form-control {
  border: 1px solid #cfcfcf;
  border-radius: 0;
  min-height: 2.4rem;
}

.detix-login-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.detix-login-forgot {
  color: var(--detix-blue);
  font-weight: 600;
  text-decoration: none;
}

.detix-login-forgot:hover {
  color: #0b5ed7;
  text-decoration: underline;
}

.detix-login-forgot.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.detix-login-actions-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.detix-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.detix-login-remember .form-check-input {
  float: none;
  margin: 0;
}

.detix-login-submit {
  display: block;
  background: var(--detix-blue);
  border: 1px solid #0b5ed7;
  color: #fff;
  font-weight: 600;
  min-width: 150px;
  padding: 0.45rem 1.25rem;
  border-radius: 0;
}

.detix-login-submit:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
  color: #fff;
}

[data-bs-theme='dark'] .detix-login-page {
  background: #212529;
}

[data-bs-theme='dark'] .detix-login-theme {
  color: #f8f9fa;
}

[data-bs-theme='dark'] .detix-login-theme:hover {
  color: #7ec8ff;
}

[data-bs-theme='dark'] .detix-login-panel {
  background: #343a40;
}

[data-bs-theme='dark'] .detix-login-title {
  color: #f8f9fa;
}

[data-bs-theme='dark'] .detix-login-erro {
  color: #ff8a80;
}

[data-bs-theme='dark'] .detix-login-erro.detix-login-info {
  color: #9ec5fe;
}

[data-bs-theme='dark'] .detix-login-field label,
[data-bs-theme='dark'] .detix-login-remember {
  color: #dee2e6;
}

[data-bs-theme='dark'] .detix-login-field .form-control {
  background-color: #2b3035;
  border-color: #495057;
  color: #f8f9fa;
}

[data-bs-theme='dark'] .detix-login-forgot {
  color: #7ec8ff;
}

[data-bs-theme='dark'] .detix-login-forgot:hover {
  color: #a8dcff;
}

@media (max-width: 768px) {
  .detix-login-panel {
    padding: 1.5rem;
  }

  .detix-login-field {
    grid-template-columns: 1fr;
  }

  .detix-login-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detix-login-actions-right {
    align-items: flex-start;
  }
}

/* Histórico */
body[data-page='historico'] .app-wrapper {
  height: 100vh;
  max-height: 100vh;
}

body[data-page='historico'] .app-main {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.detix-historico-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding: 0.15rem 0.5rem 0.5rem;
  background-color: var(--bs-tertiary-bg);
}

.detix-historico-filtros {
  box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.06);
}

.detix-historico-filtros .card-body {
  padding: 0.75rem 1rem;
}

.detix-historico-filtros .form-label {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.detix-historico-filtros .form-control,
.detix-historico-filtros .input-group-text {
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
}

.detix-historico-filtros .input-group-text {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.detix-historico-filtros .btn {
  font-size: 0.82rem;
  padding: 0.3rem 0.9rem;
}

.detix-historico-total {
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.detix-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.detix-filter-pill {
  border: 1px solid var(--detix-blue);
  background: var(--detix-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  line-height: 1.2;
}

.detix-filter-pill:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

.detix-filter-pill.active {
  background: #fff;
  color: #dc3545;
  border-color: #dc3545;
}

[data-bs-theme='dark'] .detix-filter-pill.active {
  background: var(--bs-body-bg);
  color: #ff6b6b;
  border-color: #ff6b6b;
}

.detix-historico-lista {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detix-historico-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  background: #f3f3f3;
  border: 1px solid #d9d9d9;
  border-radius: 0.25rem;
}

[data-bs-theme='dark'] .detix-historico-item {
  background: #343a40;
  border-color: #495057;
}

.detix-historico-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.detix-historico-icon-ok {
  color: #198754;
}

.detix-historico-icon-erro {
  color: #dc3545;
}

.detix-historico-icon-agendada {
  color: #0d6efd;
}

.detix-historico-data {
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  margin-bottom: 0;
  line-height: 1.25;
}

.detix-historico-linha {
  font-size: 0.86rem;
  line-height: 1.25;
}

/* Contactos */
body[data-page='contactos'] .app-wrapper {
  height: 100vh;
  max-height: 100vh;
}

body[data-page='contactos'] .app-main {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.detix-contactos-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding: 0.15rem 0.5rem 0.5rem;
  background-color: var(--bs-tertiary-bg);
}

.detix-contactos .form-control {
  font-size: 0.82rem;
}

.detix-contactos-total {
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.detix-contactos-pesquisa-ajuda {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
}

.detix-contactos-mostrar-inactivos {
  font-size: 0.78rem;
}

.detix-contactos-mostrar-inactivos .form-check-input {
  margin-top: 0.15rem;
}

.detix-contactos-pesquisa-ajuda .bi {
  font-size: 0.85rem;
}

.detix-contactos-acoes .btn {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
}

.detix-contactos-tabela {
  font-size: 0.82rem;
}

.detix-contactos-tabela tbody tr {
  cursor: pointer;
  user-select: none;
}

.detix-contactos-tabela > tbody > tr > * {
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.detix-contactos-tabela > tbody > tr:hover > * {
  --bs-table-bg-state: rgba(13, 110, 253, 0.16);
  box-shadow: inset 3px 0 0 var(--detix-blue), inset 0 0 0 9999px var(--bs-table-bg-state);
}

[data-bs-theme='dark'] .detix-contactos-tabela > tbody > tr:hover > * {
  --bs-table-bg-state: rgba(13, 110, 253, 0.32);
}

.detix-contactos-tabela > tbody > tr[data-inactivo="1"] > * {
  --bs-table-color-state: inherit;
  --bs-table-bg-state: #f8d7da;
  --bs-table-bg-type: #f8d7da;
  --bs-table-accent-bg: #f8d7da;
  background-color: #f8d7da !important;
  box-shadow: inset 0 0 0 9999px #f8d7da;
}

.detix-contactos-tabela > tbody > tr[data-inactivo="1"]:hover > * {
  --bs-table-bg-state: #f5c2c7;
  background-color: #f5c2c7 !important;
  box-shadow: inset 3px 0 0 #dc3545, inset 0 0 0 9999px #f5c2c7;
}

[data-bs-theme='dark'] .detix-contactos-tabela > tbody > tr[data-inactivo="1"] > * {
  --bs-table-bg-state: rgba(220, 53, 69, 0.35);
  --bs-table-bg-type: rgba(220, 53, 69, 0.35);
  --bs-table-accent-bg: rgba(220, 53, 69, 0.35);
  background-color: rgba(220, 53, 69, 0.35) !important;
  box-shadow: inset 0 0 0 9999px rgba(220, 53, 69, 0.35);
}

[data-bs-theme='dark'] .detix-contactos-tabela > tbody > tr[data-inactivo="1"]:hover > * {
  --bs-table-bg-state: rgba(220, 53, 69, 0.48);
  background-color: rgba(220, 53, 69, 0.48) !important;
  box-shadow: inset 3px 0 0 #dc3545, inset 0 0 0 9999px rgba(220, 53, 69, 0.48);
}

.detix-contactos-tabela .btn {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
}

.detix-modal-form .modal-header {
  padding: 0.65rem 1rem;
}

.detix-modal-form .modal-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.detix-modal-form .modal-body {
  padding: 0.85rem 1rem;
  overflow: visible;
}

.detix-modal-form .modal-content {
  overflow: visible;
}

.detix-modal-form .modal-footer {
  padding: 0.65rem 1rem;
}

.detix-modal-form .form-label {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.detix-modal-form .form-control,
.detix-modal-form .form-check-label,
.detix-modal-form .btn {
  font-size: 0.82rem;
}

.detix-contactos-form-ajuda {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
}

.detix-contactos-form-ajuda .bi {
  font-size: 0.85rem;
}

#modalDetixAviso,
#modalDetixConfirmar {
  z-index: 1100;
}

.detix-modal-por-baixo {
  pointer-events: none;
}

.modal-backdrop.detix-backdrop-bloqueado {
  pointer-events: none;
}

.detix-modal-aviso {
  border: 1px solid #dc3545;
  overflow: hidden;
}

.detix-modal-aviso-header {
  background-color: #dc3545;
  color: #fff;
  border-bottom: none;
  padding: 0.65rem 1rem;
}

.detix-modal-aviso-header .modal-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.detix-modal-aviso-body {
  font-size: 0.9rem;
  color: #dc3545;
  padding: 1rem 1.25rem 0.75rem;
  text-align: center;
}

.detix-modal-aviso-body strong {
  color: #b02a37;
}

[data-bs-theme='dark'] .detix-modal-aviso-body {
  color: #ff6b6b;
}

[data-bs-theme='dark'] .detix-modal-aviso-body strong {
  color: #ff8787;
}

/* Agenda */
.detix-agenda-content {
  padding-top: 0.5rem;
}

.detix-agenda-card .card-body {
  padding: 0.85rem;
}

.detix-agenda-card .fc {
  --fc-small-font-size: 0.85rem;
  font-size: 0.9rem;
}

.detix-agenda-card .fc .fc-toolbar {
  margin-bottom: 0.75rem;
  gap: 0.4rem;
}

.detix-agenda-card .fc .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.detix-agenda-card .fc .fc-button {
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  line-height: 1.3;
}

.detix-agenda-card .fc .fc-button-group .fc-button {
  padding: 0.3rem 0.6rem;
}

.detix-agenda-card .fc .fc-col-header-cell-cushion,
.detix-agenda-card .fc .fc-daygrid-day-number,
.detix-agenda-card .fc .fc-list-day-text,
.detix-agenda-card .fc .fc-list-day-side-text {
  font-size: 0.85rem;
}

.detix-agenda-card .fc .fc-daygrid-day-number {
  padding: 0.3rem 0.4rem;
}

.detix-agenda-card .fc .fc-daygrid-event,
.detix-agenda-card .fc .fc-timegrid-event,
.detix-agenda-card .fc .fc-list-event-title {
  font-size: 0.82rem;
  line-height: 1.25;
}

.detix-agenda-card .fc .fc-daygrid-day,
.detix-agenda-card .fc .fc-timegrid-slot {
  cursor: pointer;
}

.detix-agenda-card .fc .fc-daygrid-event {
  margin: 1px 2px 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 3px;
  border-left: 3px solid rgba(0, 0, 0, 0.18);
  display: block;
  width: calc(100% - 4px);
}

.detix-agenda-card .fc .fc-daygrid-dot-event .fc-daygrid-event-dot {
  display: none;
}

.detix-agenda-card .fc .fc-daygrid-block-event .fc-event-time,
.detix-agenda-card .fc .fc-daygrid-block-event .fc-event-title,
.detix-agenda-card .fc .fc-h-event .fc-event-main,
.detix-agenda-card .fc .fc-h-event .fc-event-title,
.detix-agenda-card .fc .fc-h-event .fc-event-time,
.detix-agenda-card .fc a.fc-event,
.detix-agenda-card .fc a.fc-event:hover {
  color: inherit;
  font-weight: 500;
}

.detix-agenda-card .fc .fc-h-event {
  border: 0;
  display: block;
}

.detix-agenda-card .fc .fc-event .fc-event-main {
  color: inherit;
}

.detix-agenda-evento {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  width: 100%;
}

.detix-agenda-evento-hora {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detix-agenda-evento-titulo {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detix-agenda-evento-icones {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.95;
}

.detix-agenda-card .fc .fc-list-event .detix-agenda-evento-titulo {
  flex: 0 1 auto;
}

.detix-agenda-card .fc .fc-timegrid-event .detix-agenda-evento {
  padding: 0.1rem 0;
}

.detix-agenda-card .fc .fc-list-event {
  font-size: 0.9rem;
}

.detix-agenda-card .fc .fc-list-event-time {
  font-size: 0.85rem;
}

.detix-agenda-card .fc .fc-timegrid-slot-label-cushion {
  font-size: 0.82rem;
}

.detix-agenda-card .fc-event {
  cursor: pointer;
}

[data-bs-theme='dark'] .detix-agenda-card .fc {
  --fc-border-color: #495057;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: #2b3035;
  --fc-list-event-hover-bg-color: #343a40;
  --fc-today-bg-color: rgba(13, 110, 253, 0.15);
}

[data-bs-theme='dark'] .detix-agenda-card .fc .fc-button-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

[data-bs-theme='dark'] .detix-agenda-card .fc-theme-standard td,
[data-bs-theme='dark'] .detix-agenda-card .fc-theme-standard th {
  border-color: #495057;
}

.detix-filtro-cor-menu {
  min-width: 12rem;
}

.detix-filtro-cor-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.detix-filtro-cor-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.detix-agenda-cores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.detix-agenda-cor {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 4px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
}

.detix-agenda-cor:hover,
.detix-agenda-cor:focus-visible {
  border-color: rgba(0, 0, 0, 0.45);
}

.detix-agenda-cor.active {
  border-color: #212529;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #212529;
}

[data-bs-theme='dark'] .detix-agenda-cor.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #212529, 0 0 0 4px #fff;
}

.detix-contacto-combo {
  position: relative;
}

.detix-contacto-combo-lista {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 14rem;
  overflow-y: auto;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.25rem;
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.14);
}

.detix-contacto-combo-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1.25;
}

.detix-contacto-combo-item:hover,
.detix-contacto-combo-item.active {
  background: #3A61E4;
  color: #fff;
}

.detix-contacto-combo-vazio {
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
}
