/* TheaCRM unified admin/settings UI
   v2.4.5
   This stylesheet intentionally stays generic and Bootstrap-compatible.
*/
:root {
  --thea-bg: #f6f8f7;
  --thea-surface: #ffffff;
  --thea-border: rgba(16, 24, 40, .10);
  --thea-muted: #667085;
  --thea-text: #182230;
  --thea-primary: #198754;
  --thea-primary-soft: rgba(25, 135, 84, .10);
  --thea-radius: 1rem;
  --thea-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}

body {
  background: var(--thea-bg);
}

.thea-page {
  color: var(--thea-text);
}

.thea-page > .d-flex:first-child,
.thea-page .thea-hero {
  background: linear-gradient(135deg, #ffffff, #f0faf4);
  border: 1px solid var(--thea-border);
  border-radius: var(--thea-radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--thea-shadow);
}

.thea-page h1,
.thea-page .h1,
.thea-page .h2,
.thea-page .h3 {
  letter-spacing: -.02em;
}

.thea-page .text-muted,
.thea-page .form-text {
  color: var(--thea-muted) !important;
}

.thea-card,
.thea-page .card {
  border: 1px solid var(--thea-border) !important;
  border-radius: var(--thea-radius) !important;
  box-shadow: var(--thea-shadow) !important;
  overflow: hidden;
}

.thea-page .card-header {
  background: #fff !important;
  border-bottom: 1px solid var(--thea-border) !important;
  font-weight: 650;
}

.thea-page .card-body {
  padding: 1.15rem;
}

.thea-page .table {
  --bs-table-bg: transparent;
}

.thea-page .table thead th {
  color: #344054;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .035em;
  background: #f8faf9;
  border-bottom-color: var(--thea-border);
}

.thea-page .table td,
.thea-page .table th {
  vertical-align: middle;
}

.thea-page .form-control,
.thea-page .form-select {
  border-radius: .75rem;
  border-color: rgba(16, 24, 40, .16);
}

.thea-page .form-control:focus,
.thea-page .form-select:focus {
  border-color: rgba(25, 135, 84, .55);
  box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .12);
}

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

.btn-thea,
.thea-page .btn-success {
  border-radius: .75rem;
  box-shadow: 0 8px 18px rgba(25, 135, 84, .18);
}

.thea-page .btn,
.thea-page .badge {
  border-radius: .7rem;
}

.thea-page code {
  color: #175c3b;
  background: rgba(25, 135, 84, .08);
  border: 1px solid rgba(25, 135, 84, .10);
  border-radius: .45rem;
  padding: .1rem .35rem;
}

.thea-kpi,
.thea-page .border.rounded.p-3,
.thea-page .border.rounded {
  border-color: var(--thea-border) !important;
  border-radius: .95rem !important;
  background: #fff;
}

.thea-page .alert {
  border-radius: var(--thea-radius);
  border-width: 1px;
}

.thea-page .accordion-item {
  border: 1px solid var(--thea-border);
  border-radius: var(--thea-radius) !important;
  overflow: hidden;
  margin-bottom: .75rem;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}

.thea-page .accordion-button {
  font-weight: 650;
}

.thea-page .accordion-button:not(.collapsed) {
  color: #0f5132;
  background: var(--thea-primary-soft);
}

.thea-toolbar-sticky {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--thea-border);
  border-radius: var(--thea-radius);
  padding: .75rem;
  box-shadow: var(--thea-shadow);
}

.thea-settings-grid .card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.thea-settings-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(16, 24, 40, .10) !important;
}

@media (max-width: 767.98px) {
  .thea-page {
    padding-left: .25rem;
    padding-right: .25rem;
  }

  .thea-page > .d-flex:first-child,
  .thea-page .thea-hero {
    padding: 1rem;
  }

  .thea-page .card-body {
    padding: 1rem;
  }
}

/* TheaCRM unified document UI additions
   v2.4.6 – invoices/offers
*/
.thea-page .bg-white.rounded.shadow-sm {
  border: 1px solid var(--thea-border) !important;
  border-radius: var(--thea-radius) !important;
  box-shadow: var(--thea-shadow) !important;
}

.thea-document-toolbar,
.thea-page .d-flex.justify-content-between.align-items-center.mb-3 {
  gap: .75rem;
  flex-wrap: wrap;
}

.thea-doc-card,
.thea-page .invoice-card,
.thea-page .offer-card {
  border: 1px solid var(--thea-border) !important;
  border-left-width: 6px !important;
  border-radius: var(--thea-radius) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .055);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.thea-doc-card:hover,
.thea-page .invoice-card:hover,
.thea-page .offer-card:hover {
  background: #fbfdfc !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 24, 40, .09);
}

.thea-page .summary-card {
  border: 1px solid var(--thea-border) !important;
  border-radius: var(--thea-radius) !important;
  background: linear-gradient(135deg, #fff, #f8fbf9) !important;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .045);
}

.thea-page .summary-label {
  color: var(--thea-muted) !important;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.thea-page .summary-value {
  color: var(--thea-text);
  font-weight: 750;
}

.thea-page .btn-ghost {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: #212529;
  transition: background-color .15s, box-shadow .15s, transform .02s, color .15s, border-color .15s;
}

.thea-page .btn-ghost:hover {
  background: rgba(16, 24, 40, .055);
  border-color: rgba(16, 24, 40, .08);
  box-shadow: 0 3px 9px rgba(16, 24, 40, .10);
}

.thea-page .btn-ghost-primary {
  background: var(--thea-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(25, 135, 84, .22);
}

.thea-page .btn-ghost-primary:hover {
  background: #157347;
  color: #fff;
  box-shadow: 0 12px 24px rgba(25, 135, 84, .28);
}

.thea-page .dropdown-menu {
  border: 1px solid var(--thea-border);
  border-radius: .85rem;
  box-shadow: var(--thea-shadow);
}

.thea-page .input-group-text {
  border-radius: .75rem 0 0 .75rem;
  border-color: rgba(16, 24, 40, .16);
}

.thea-page .input-group .form-control:last-child,
.thea-page .input-group .form-select:last-child {
  border-radius: 0 .75rem .75rem 0;
}

.thea-page .list-group.position-absolute {
  border-radius: .85rem;
  box-shadow: var(--thea-shadow);
  overflow: hidden;
}

.thea-page .table-responsive {
  border-radius: var(--thea-radius);
}

.thea-page .table.thea-table {
  margin-bottom: 0;
}

.thea-page .document-totals,
.thea-page .totals,
.thea-page .total-box {
  border: 1px solid var(--thea-border);
  border-radius: var(--thea-radius);
  background: linear-gradient(135deg, #fff, #f7fbf9);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .045);
}

@media (max-width: 767.98px) {
  .thea-page .btn-ghost {
    width: 44px;
    height: 44px;
  }

  .thea-page .invoice-card,
  .thea-page .offer-card,
  .thea-doc-card {
    padding: .85rem !important;
  }
}

/* === THEA STOCK UI v2.4.7 =============================================== */
.thea-page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}
.thea-hero {
  background: linear-gradient(135deg, rgba(21, 128, 61, .10), rgba(15, 118, 110, .06));
  border: 1px solid rgba(21, 128, 61, .16);
  border-radius: 1.25rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.thea-hero h1, .thea-hero h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
}
.thea-hero .lead, .thea-muted {
  color: #64748b;
}
.thea-card, .thea-stock-page .card, .thea-stock-page form:not(.d-inline):not(.inline-form) {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}
.thea-card { padding: 1rem; }
.thea-stock-page .card { overflow: hidden; }
.thea-stock-page .card-header {
  background: rgba(248, 250, 252, .92);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  font-weight: 700;
}
.thea-stock-page table, .thea-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.thea-stock-page .table, .thea-table {
  margin-bottom: 0;
}
.thea-stock-page .table th, .thea-table th {
  color: #475569;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}
.thea-stock-page .table td, .thea-table td {
  vertical-align: middle;
}
.thea-stock-page input.form-control,
.thea-stock-page select.form-select,
.thea-stock-page textarea.form-control,
.thea-form input.form-control,
.thea-form select.form-select,
.thea-form textarea.form-control {
  border-radius: .75rem;
  border-color: rgba(15, 23, 42, .16);
}
.thea-stock-page label, .thea-form label {
  font-weight: 650;
  color: #334155;
}
.thea-toolbar, .thea-document-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
}
.btn-thea, .thea-stock-page .btn-primary {
  border-radius: .75rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(21, 128, 61, .16);
}
.thea-stock-page .btn, .thea-page .btn {
  border-radius: .75rem;
}
.thea-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.thea-kpi {
  padding: .9rem 1rem;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}
.thea-kpi .label { color: #64748b; font-size: .82rem; }
.thea-kpi .value { font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.thea-stock-page .badge {
  border-radius: 999px;
  padding: .38em .65em;
}
@media (max-width: 768px) {
  .thea-page { width: 94vw; padding-top: .75rem; }
  .thea-hero { border-radius: 1rem; padding: 1rem; }
  .thea-toolbar { align-items: stretch; }
  .thea-toolbar > * { width: 100%; }
  .thea-stock-page .table-responsive { border-radius: 1rem; border: 1px solid rgba(15, 23, 42, .08); }
}
/* === /THEA STOCK UI v2.4.7 ============================================== */

/* === THEA DIRECTORY UI v2.4.8 =========================================== */
.thea-page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}
.thea-directory-page.container,
.container.responsive-container.thea-directory-page {
  max-width: min(1180px, 94vw);
  padding-left: 0;
  padding-right: 0;
}
.thea-card,
.thea-directory-page .bg-white.rounded.shadow-sm,
.thea-directory-page .card {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 1.05rem !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
}
.thea-directory-page h1,
.thea-directory-page h2,
.thea-directory-page h3 {
  letter-spacing: -.02em;
  font-weight: 800;
}
.thea-directory-page h2[style*="color"],
.thea-directory-page h2,
.thea-directory-page .appbar h2 {
  color: #2e7d32 !important;
}
.thea-directory-page .appbar {
  position: sticky;
  top: calc(var(--navbar-height, 0px) + .4rem);
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 1rem;
  padding: .55rem .7rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.thea-directory-page .btn,
.thea-directory-page .form-control,
.thea-directory-page .form-select,
.thea-directory-page textarea.form-control {
  border-radius: .75rem;
}
.thea-directory-page .form-control,
.thea-directory-page .form-select,
.thea-directory-page textarea.form-control {
  border-color: rgba(15, 23, 42, .16);
}
.thea-directory-page label.form-label,
.thea-directory-page label {
  font-weight: 650;
  color: #334155;
}
.thea-directory-page .form-text,
.thea-directory-page .text-muted {
  color: #64748b !important;
}
.thea-directory-page .btn-success,
.thea-directory-page .btn-primary,
.thea-directory-page .btn-ghost-primary {
  box-shadow: 0 8px 18px rgba(21, 128, 61, .14);
}
.thea-directory-page .btn-ghost,
.thea-directory-page .btn-ghost-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: #2e7d32;
}
.thea-directory-page .btn-ghost:hover,
.thea-directory-page .btn-ghost-primary:hover {
  background: rgba(46, 125, 50, .08);
  border-color: rgba(46, 125, 50, .24);
}
.thea-directory-page .dropdown-menu {
  border-radius: .9rem;
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}
.thea-directory-page .table,
.thea-directory-page table {
  --bs-table-bg: transparent;
}
.thea-directory-page .table th,
.thea-directory-page table th {
  color: #475569;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}
.thea-directory-page .table td,
.thea-directory-page table td {
  vertical-align: middle;
}
.thea-directory-page .list-group-item,
.thea-directory-page .contact-card,
.thea-directory-page .organization-card,
.thea-directory-page .item-card {
  border-radius: .9rem;
  border: 1px solid rgba(15, 23, 42, .09);
  margin-bottom: .55rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}
.thea-directory-page .autocomplete-dropdown,
.thea-directory-page .list-group.position-absolute {
  border-radius: .9rem;
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
  overflow: hidden;
}
.thea-directory-page .alpha-rail,
.thea-directory-page [class*="alpha"] a,
.thea-directory-page a[href^="#alpha-"] {
  border-radius: .65rem;
  font-weight: 700;
}
.thea-directory-page .badge {
  border-radius: 999px;
  padding: .38em .65em;
}
.thea-directory-form .row,
.thea-directory-page form .row {
  row-gap: .65rem;
}
.thea-directory-detail p strong,
.thea-directory-page strong[style*="color"] {
  color: #2e7d32 !important;
}
.thea-directory-page .table-responsive {
  border-radius: .95rem;
}
.thea-directory-page .thea-section-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 800;
  margin-bottom: .55rem;
}
@media (max-width: 768px) {
  .thea-directory-page.container,
  .container.responsive-container.thea-directory-page {
    width: 94vw;
    max-width: 94vw;
  }
  .thea-directory-page .bg-white.rounded.shadow-sm {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }
  .thea-directory-page .appbar { top: .35rem; }
  .thea-directory-page .d-flex.gap-2,
  .thea-directory-page .d-flex.gap-1 { gap: .45rem !important; }
  .thea-directory-page .table-responsive { border: 1px solid rgba(15, 23, 42, .08); }
}
/* === /THEA DIRECTORY UI v2.4.8 ========================================== */

/* === THEA WORK UI v2.4.9 =============================================== */
.thea-work-page {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}
.thea-work-page.container,
.container.thea-work-page,
.container.responsive-container.thea-work-page {
  max-width: min(1180px, 94vw);
  padding-left: 0;
  padding-right: 0;
}
.thea-work-page .card,
.thea-work-page .thea-card,
.thea-work-page .bg-white.rounded.shadow-sm,
.thea-work-card {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 1.05rem !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
  background: #fff;
}
.thea-work-page h1,
.thea-work-page h2,
.thea-work-page h3 {
  letter-spacing: -.02em;
  font-weight: 800;
}
.thea-work-page h1,
.thea-work-page h2,
.thea-work-page .page-title {
  color: #2e7d32;
}
.thea-work-toolbar,
.thea-work-page .toolbar,
.thea-work-page .appbar,
.thea-work-page .actionbar {
  position: sticky;
  top: calc(var(--navbar-height, 0px) + .4rem);
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 1rem;
  padding: .55rem .7rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.thea-work-page .btn,
.thea-work-page .form-control,
.thea-work-page .form-select,
.thea-work-page textarea.form-control {
  border-radius: .75rem;
}
.thea-work-page .form-control,
.thea-work-page .form-select,
.thea-work-page textarea.form-control {
  border-color: rgba(15, 23, 42, .16);
}
.thea-work-page label.form-label,
.thea-work-page label {
  font-weight: 650;
  color: #334155;
}
.thea-work-page .form-text,
.thea-work-page .text-muted {
  color: #64748b !important;
}
.thea-work-page .btn-success,
.thea-work-page .btn-primary {
  box-shadow: 0 8px 18px rgba(21, 128, 61, .14);
}
.thea-work-page .btn-outline-secondary,
.thea-work-page .btn-light {
  border-color: rgba(15, 23, 42, .12);
}
.thea-work-page .badge {
  border-radius: 999px;
  padding: .38em .65em;
}
.thea-work-page .table,
.thea-work-page table {
  --bs-table-bg: transparent;
}
.thea-work-page .table-responsive {
  border-radius: .95rem;
}
.thea-work-page .table th,
.thea-work-page table th {
  color: #475569;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
}
.thea-work-page .table td,
.thea-work-page table td {
  vertical-align: middle;
}
.thea-work-page .list-group-item,
.thea-work-page .task-card,
.thea-work-page .project-card,
.thea-work-page .event-card,
.thea-work-page .item-card {
  border-radius: .9rem;
  border: 1px solid rgba(15, 23, 42, .09);
  margin-bottom: .55rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}
.thea-work-page .nav-tabs {
  border-bottom-color: rgba(15, 23, 42, .10);
}
.thea-work-page .nav-tabs .nav-link {
  border-radius: .8rem .8rem 0 0;
  font-weight: 650;
}
.thea-work-page .nav-pills .nav-link {
  border-radius: .85rem;
}
.thea-work-page .progress {
  height: .65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}
.thea-work-page .thea-section-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 800;
  margin-bottom: .55rem;
}
.thea-work-page .status-dot,
.thea-work-page .priority-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  display: inline-block;
  margin-right: .35rem;
}
.thea-work-page .empty-state,
.thea-work-empty {
  border: 1px dashed rgba(15, 23, 42, .18);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  color: #64748b;
}
@media (max-width: 768px) {
  .thea-work-page.container,
  .container.thea-work-page,
  .container.responsive-container.thea-work-page {
    width: 94vw;
    max-width: 94vw;
  }
  .thea-work-page .card,
  .thea-work-page .bg-white.rounded.shadow-sm,
  .thea-work-card {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }
  .thea-work-toolbar,
  .thea-work-page .toolbar,
  .thea-work-page .appbar,
  .thea-work-page .actionbar {
    top: .35rem;
  }
  .thea-work-page .d-flex.gap-2,
  .thea-work-page .d-flex.gap-1 {
    gap: .45rem !important;
  }
  .thea-work-page .table-responsive {
    border: 1px solid rgba(15, 23, 42, .08);
  }
}
/* === /THEA WORK UI v2.4.9 ============================================== */

/* === THEA UI CHECKPOINT v2.5.0 ========================================= */
.thea-ui-checkpoint .thea-table-wrap { border-radius: 1rem; }
.thea-ui-checkpoint .progress { height: .7rem; border-radius: 999px; }
.thea-ui-checkpoint code { font-size: .86em; }
.thea-ui-checkpoint .badge { border-radius: 999px; }
.thea-ui-score-ring {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 8px solid rgba(46, 125, 50, .18);
  color: #1b5e20;
  font-weight: 900;
  background: #fff;
}
/* === /THEA UI CHECKPOINT v2.5.0 ======================================== */

/* === THEA ARES AUTOCOMPLETE HOTFIX v2.5.1 ============================== */
.thea-ares-wrap,
.position-relative:has(.thea-ares-dropdown),
.position-relative:has(.autocomplete-dropdown) {
  position: relative;
}
.thea-ares-wrap.ares-suggest-open,
.position-relative.ares-suggest-open {
  z-index: 100000 !important;
  isolation: isolate;
}
.thea-ares-dropdown,
.autocomplete-dropdown {
  position: absolute !important;
  top: calc(100% + .35rem) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100001 !important;
  max-height: min(52vh, 360px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, .16) !important;
  border-radius: 1rem !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .20) !important;
  padding: .35rem !important;
  -webkit-overflow-scrolling: touch;
}
.thea-ares-dropdown .thea-ares-item,
.autocomplete-dropdown .thea-ares-item,
.autocomplete-dropdown .list-group-item {
  cursor: pointer;
  border: 0 !important;
  border-radius: .8rem !important;
  margin: .15rem 0;
  padding: .75rem .9rem;
  touch-action: manipulation;
  background: #fff;
}
.thea-ares-dropdown .thea-ares-item:hover,
.thea-ares-dropdown .thea-ares-item:focus,
.autocomplete-dropdown .list-group-item:hover,
.autocomplete-dropdown .list-group-item:focus {
  background: rgba(46, 125, 50, .08) !important;
  outline: none;
}
.thea-ares-dropdown small,
.autocomplete-dropdown small {
  display: block;
  color: #64748b;
  line-height: 1.35;
  margin-top: .15rem;
}
@media (max-width: 768px) {
  .thea-ares-dropdown,
  .autocomplete-dropdown {
    max-height: 46vh !important;
    border-radius: 1rem !important;
    font-size: .98rem;
  }
  .thea-ares-dropdown .thea-ares-item,
  .autocomplete-dropdown .list-group-item {
    padding: .85rem .95rem;
  }
}
/* === /THEA ARES AUTOCOMPLETE HOTFIX v2.5.1 ============================= */

/* === THEA ARES AUTOCOMPLETE HOTFIX v2.5.2 ============================== */
.thea-ares-wrap,
.position-relative:has(.thea-ares-dropdown),
.position-relative:has(.autocomplete-dropdown) {
  position: relative !important;
}
.thea-ares-wrap.ares-suggest-open,
.position-relative.ares-suggest-open,
.mb-3.ares-suggest-open,
.form-group.ares-suggest-open {
  z-index: 2147483000 !important;
  isolation: isolate !important;
}
.thea-ares-dropdown,
.autocomplete-dropdown {
  position: absolute !important;
  top: calc(100% + .45rem) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483001 !important;
  max-height: min(48vh, 360px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background-color: #ffffff !important;
  background-image: none !important;
  opacity: 1 !important;
  border: 1px solid rgba(15, 23, 42, .16) !important;
  border-radius: 1rem !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, .26) !important;
  padding: .35rem !important;
  -webkit-overflow-scrolling: touch !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.thea-ares-dropdown[hidden],
.autocomplete-dropdown[hidden] {
  display: none !important;
}
.thea-ares-dropdown .thea-ares-item,
.autocomplete-dropdown .thea-ares-item,
.autocomplete-dropdown .list-group-item {
  cursor: pointer !important;
  border: 0 !important;
  border-radius: .85rem !important;
  margin: .15rem 0 !important;
  padding: .85rem 1rem !important;
  touch-action: manipulation !important;
  background-color: #ffffff !important;
  background-image: none !important;
  opacity: 1 !important;
}
.thea-ares-dropdown .thea-ares-item:hover,
.thea-ares-dropdown .thea-ares-item:focus,
.autocomplete-dropdown .list-group-item:hover,
.autocomplete-dropdown .list-group-item:focus {
  background-color: rgba(46, 125, 50, .09) !important;
  outline: none !important;
}
.thea-ares-dropdown small,
.autocomplete-dropdown small {
  display: block !important;
  color: #64748b !important;
  line-height: 1.35 !important;
  margin-top: .15rem !important;
}
body.thea-ares-open .thea-card,
body.thea-ares-open .thea-directory-form,
body.thea-ares-open form {
  overflow: visible !important;
}
@media (max-width: 768px) {
  .thea-ares-dropdown,
  .autocomplete-dropdown {
    max-height: 42vh !important;
    border-radius: 1rem !important;
    font-size: .98rem !important;
  }
  .thea-ares-dropdown .thea-ares-item,
  .autocomplete-dropdown .list-group-item {
    padding: .9rem 1rem !important;
  }
}
/* === /THEA ARES AUTOCOMPLETE HOTFIX v2.5.2 ============================= */
