/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/
/* CasaSuite: override colori primari del tema */
:root,
[data-bs-theme="light"] {
  --vz-blue: #0a6aed;
  --vz-cyan: #0a6aed;
  --vz-primary: #0a6aed;
  --vz-primary-rgb: 10, 106, 237;
  --vz-primary-text-emphasis: #0a6aed;
  --vz-info-text-emphasis: #0a6aed;
  --vz-secondary: #5e21d5;
  --vz-secondary-rgb: 94, 33, 213;
  --vz-secondary-text-emphasis: #5e21d5;
  --vz-success: #10B981;
  --vz-success-rgb: 16,185,129;
  /* Menu sidebar: colori hover/attivo centralizzati su --vz-primary */
  --vz-vertical-menu-item-hover-color: var(--vz-primary);
  --vz-vertical-menu-item-active-color: var(--vz-primary);
  --vz-vertical-menu-sub-item-hover-color: var(--vz-primary);
  --vz-vertical-menu-sub-item-active-color: var(--vz-primary);
  --vz-topnav-item-active-color: var(--vz-primary);

  /* Link e paginazione Bootstrap/DataTables */
  --vz-link-color: var(--vz-primary);
  --vz-link-hover-color: var(--vz-primary);
  --vz-pagination-active-bg: var(--vz-primary);
  --vz-pagination-active-border-color: var(--vz-primary);
}
.page-content{
  background-color: #f6f8fa87;
}
[data-bs-theme="dark"] .page-content{
  background-color: transparent;
}



/* CasaSuite: override gradiente overlay nella login */
.auth-one-bg .bg-overlay {
  background: -webkit-gradient(linear, left top, right top, from(#064fb2), to(#0a6aed));
  background: linear-gradient(to right, #064fb2, #0a6aed);
  opacity: 0.9;
}


/* CasaSuite: override gradiente di base per auth-bg-cover */
.auth-bg-cover{
  background: linear-gradient(-45deg, var(--vz-primary), var(--vz-secondary));
}

a,
.navbar-menu .navbar-nav .nav-link[data-bs-toggle=collapse][aria-expanded=true] {
    color: var(--vz-vertical-menu-item-active-color);
}


/* Sidebar: hover/attivo voci principali e sub-item */
.navbar-menu .navbar-nav .nav-link:hover,
.navbar-menu .navbar-nav .nav-link.active,
.navbar-menu .navbar-nav .nav-link:focus {
  color: var(--vz-vertical-menu-item-hover-color);
}
.navbar-menu .navbar-nav .nav-sm .nav-link:hover,
.navbar-menu .navbar-nav .nav-sm .nav-link.active,
.navbar-menu .navbar-nav .nav-sm .nav-link:focus {
  color: var(--vz-vertical-menu-sub-item-hover-color);
}



/* CasaSuite: override Button Animation */
.btn-primary.btn-animation {
    background-color: var(--vz-primary);
    border-color: var(--vz-primary) !important;
}


/* DataTables: paginazione (integrazione Bootstrap 5) */
/* DataTables: paginazione (integrazione Bootstrap 5) - forziamo override anche contro !important del tema */
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
  background-color: var(--vz-primary) !important;
  border-color: var(--vz-primary) !important;
  color: #fff;
}
.dataTables_wrapper .dataTables_paginate .page-link {
  color: var(--vz-link-color);
}
.dataTables_wrapper .dataTables_paginate .page-link:hover,
.dataTables_wrapper .dataTables_paginate .page-link:focus {
  color: var(--vz-link-hover-color);
  border-color: var(--vz-primary);
}


/* Paginazione globale Bootstrap (copre altre liste oltre DataTables) */
.pagination .page-item.active .page-link {
  background-color: var(--vz-primary) !important;
  border-color: var(--vz-primary) !important;
  color: #fff;
}
.pagination .page-link {
  color: var(--vz-link-color);
}
.pagination .page-link:hover,
.pagination .page-link:focus {
  color: var(--vz-link-hover-color);
  border-color: var(--vz-primary);
}

.nav-tabs-custom .nav-item .nav-link.active {
    color: var(--vz-primary);
}
.nav-tabs-custom .nav-item .nav-link::after {
    background-color: var(--vz-primary);
}
.profile-wid-bg::before,
.modal-team-cover::before, .profile-offcanvas .team-cover::before, .team-box .team-cover::before {
  background: var(--vz-primary);
    background: -webkit-gradient(linear, left bottom, left top, from(var(--vz-primary)), to(var(--vz-secondary)));
    background: linear-gradient(-45deg, var(--vz-primary), var(--vz-secondary));
}
.profile-foreground { pointer-events: none; }
.form-check-input:checked {
    background-color: var(--vz-primary);
    border-color: var(--vz-primary);
}


/* CasaSuite: badge "Tipo Log" (soft style con bordo e arrotondamento) */
.badge-type {
  --badge-opacity: 0.7;
  border: 1px solid transparent;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-type i { line-height: 1; font-size: 1em; }

.badge-type-primary {
  background-color: rgba(var(--vz-primary-rgb), var(--badge-opacity)) !important;
  border-color: rgb(var(--vz-primary-rgb)) !important;
}
.badge-type-success {
  background-color: rgba(var(--vz-success-rgb), var(--badge-opacity)) !important;
  border-color: rgb(var(--vz-success-rgb)) !important;
}
.badge-type-info {
  background-color: rgba(var(--vz-info-rgb), var(--badge-opacity)) !important;
  border-color: rgb(var(--vz-info-rgb)) !important;
}
.badge-type-warning {
  background-color: rgba(var(--vz-warning-rgb), var(--badge-opacity)) !important;
  border-color: rgb(var(--vz-warning-rgb)) !important;
}
.badge-type-danger {
  background-color: rgba(var(--vz-danger-rgb), var(--badge-opacity)) !important;
  border-color: rgb(var(--vz-danger-rgb)) !important;
}
.badge-type-secondary {
  background-color: rgba(var(--vz-secondary-rgb), var(--badge-opacity)) !important;
  border-color: rgb(var(--vz-secondary-rgb)) !important;
}




/* CasaSuite: Patch campi form */
.autoComplete_wrapper > input{
  width: 100% !important;
  font-size: .875rem !important;
}
.dropzone .dz-preview.dz-image-preview {
    background: #f6f8fa !important;
    padding: 0px 10px 10px !important;
    border-radius: 10px !important;
    border: 1px solid #e4e8ec !important; 
    margin: 10px !important;
}
/* CasaSuite: override bordo container dropzone contro CSS vendor */
.dropzone {
  border: 2px dashed var(--vz-border-color) !important;
}





.cs-contatto-link {
  background-color: #fff;
  padding: 4px 15px;
  border-radius: 30px;
  color: var(--vz-primary);
}
.cs-contatto-link:hover,
.cs-contatto-link:focus {
  background-color: var(--vz-primary);
  color: #fff;
}

.seller-owner-badge {
  font-size: 12px !important;
}
.seller-col .autoComplete_wrapper > ul > li {
  font-size: 13px !important;
  line-height: 1.3;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.profile-wid-bg, .profile-wid-img { pointer-events: none; }

#page-topbar { z-index: 10050 !important; pointer-events: auto; }
#page-topbar .topnav-hamburger { position: relative; z-index: 10051; pointer-events: auto; }




/* ======= GENERALE / AUTOCOMPLETE ======= */
.autoComplete_wrapper {
  width: 100%;
}

.autoComplete_wrapper {
  position: relative;
  display: block;
}

.autoComplete_wrapper > ul {
  z-index: 2005 !important;
}

.autoComplete_wrapper > input {
  width: 100% !important;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.9rem;
  border-radius: 0.25rem;
  font-size: .8125rem;
}

.autoComplete_wrapper > input:focus {
  border-color: #878a99;
  outline: 0;
  box-shadow: 0 0 0 0.15rem rgba(64,81,137,.25);
}

.autoComplete_wrapper input.form-control {
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid #ced4da !important;
  border-radius: .375rem !important;
  padding: .5rem .75rem !important;
  height: calc(1.5em + .75rem + 2px) !important;
  line-height: 1.5 !important;
  color: #212529 !important;
  background-color: #fff !important;
}

.autoComplete_wrapper input.form-control::placeholder {
  color: #6c757d !important;
}

.tags-autocomplete .choices__inner {
  overflow: visible !important;
  position: relative;
}

.tags-autocomplete .choices__list--dropdown {
  display: none !important;
}

.tags-autocomplete .tags-suggest-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ced4da;
  border-top: none;
  max-height: 200px;
  overflow: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  z-index: 1003;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags-autocomplete .tags-suggest-list li {
  padding: 8px 10px;
  cursor: pointer;
}

.tags-autocomplete .tags-suggest-list li:hover {
  background: #f8f9fa;
}

.seller-col .autoComplete_wrapper {
  font-size: .875rem;
}

.seller-col .autoComplete_wrapper .autoComplete_result {
  line-height: 1.2;
}




/* ======= DASHBOARD ======= */
.dashboard-home {
  --ds-surface: #faf8ff;
  --ds-surface-low: #f2f3ff;
  --ds-surface-lowest: #ffffff;
  --ds-surface-high: #ececf8;
  --ds-text: #191b24;
  --ds-muted: #6d7385;
  --ds-outline: rgba(25, 27, 36, 0.08);
  --ds-primary: #0057cd;
  --ds-primary-soft: #0d6efd;
  --ds-secondary: #ac3319;
  --ds-secondary-soft: #fe6e4e;
  --ds-tertiary: #00685f;
  --ds-tertiary-soft: #008378;
  color: var(--ds-text);
  padding-bottom: 1.5rem;
}

.dashboard-home .dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-home .dashboard-tonal-card,
.dashboard-home .card {
  background: var(--ds-surface-lowest);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 24px 40px rgba(25, 27, 36, 0.04);
}

.dashboard-home .dashboard-kpi-link,
.dashboard-home .dashboard-shortcut-link {
  display: block;
  text-decoration: none;
}

.dashboard-home .dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-primary-soft) 100%);
  color: #ffffff;
}

.dashboard-home .dashboard-hero::before,
.dashboard-home .dashboard-hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  pointer-events: none;
}

.dashboard-home .dashboard-hero::before {
  width: 16rem;
  height: 16rem;
  top: -5rem;
  right: -3rem;
}

.dashboard-home .dashboard-hero::after {
  width: 10rem;
  height: 10rem;
  top: 1rem;
  right: 4rem;
}

.dashboard-home .dashboard-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-home .dashboard-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.dashboard-home .dashboard-hero-text {
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
}

.dashboard-home .dashboard-hero-scope {
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ds-primary);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.dashboard-home .dashboard-warning {
  border: 0;
  border-radius: 1rem;
  background: #fff3ef;
  color: #7b2b18;
}

.dashboard-home .dashboard-agency-alert {
  border: 0;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.10) 0%, rgba(172, 51, 25, 0.18) 100%);
  color: #6f1d1b;
  box-shadow: 0 20px 34px rgba(25, 27, 36, 0.04);
}

.dashboard-home .dashboard-agency-alert-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 53, 69, 0.14);
  color: #bb2d3b;
  flex-shrink: 0;
}

.dashboard-home .dashboard-agency-alert-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: #7f1d1d;
}

.dashboard-home .dashboard-agency-alert-text {
  font-size: 0.8rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: rgba(111, 29, 27, 0.88);
}

.dashboard-home .dashboard-agency-alert .btn {
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-home .dashboard-kpi-card {
  position: relative;
  height: 100%;
  padding: 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-home .dashboard-kpi-link:hover .dashboard-kpi-card {
  transform: translateY(-3px);
  box-shadow: 0 26px 42px rgba(25, 27, 36, 0.06);
}

.dashboard-home .dashboard-kpi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}

.dashboard-home .dashboard-kpi-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8c91a3;
}

.dashboard-home .dashboard-kpi-value {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ds-text);
  margin-bottom: 0.6rem;
}

.dashboard-home .dashboard-kpi-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--ds-text);
}

.dashboard-home .dashboard-kpi-description,
.dashboard-home .dashboard-kpi-secondary {
  font-size: 0.72rem;
  color: var(--ds-muted);
  margin-bottom: 0;
}

.dashboard-home .dashboard-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.dashboard-home .dashboard-title-subtle {
  font-size: 0.72rem;
  color: var(--ds-muted);
  margin-top: 0.18rem;
  margin-bottom: 0;
}

.dashboard-home .dashboard-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-home .dashboard-shortcut-item {
  height: 100%;
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  background: var(--ds-surface-low);
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-home .dashboard-shortcut-link:hover .dashboard-shortcut-item {
  background: var(--ds-surface-lowest);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(25, 27, 36, 0.05);
}

.dashboard-home .dashboard-shortcut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-home .dashboard-shortcut-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ds-text);
  margin-bottom: 0.2rem;
}

.dashboard-home .dashboard-shortcut-description {
  font-size: 0.66rem;
  color: #8a8fa0;
  margin-bottom: 0;
}

.dashboard-home .dashboard-widget-card {
  height: 100%;
  padding: 1.75rem;
}

.dashboard-home .dashboard-widget-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.35rem;
}

.dashboard-home .dashboard-widget-item {
  display: block;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
  border: 0;
  border-radius: 1rem;
  background: var(--ds-surface-low);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-home .dashboard-widget-item:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(25, 27, 36, 0.05);
}

.dashboard-home .dashboard-widget-item:first-child,
.dashboard-home .dashboard-widget-item:last-child {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.dashboard-home .dashboard-widget-title {
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--ds-text);
}

.dashboard-home .dashboard-widget-subtitle,
.dashboard-home .dashboard-widget-meta,
.dashboard-home .dashboard-widget-description {
  font-size: 0.68rem;
  color: var(--ds-muted);
  margin-bottom: 0;
}

.dashboard-home .dashboard-widget-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.dashboard-home .dashboard-chart-container {
  min-height: 290px;
}

.dashboard-home .dashboard-chart-compact {
  min-height: 240px;
}

.dashboard-home .dashboard-empty-block {
  display: flex;
  min-height: 12.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 1rem;
  background: var(--ds-surface-low);
  color: #8c91a3;
  padding: 1.5rem;
}

.dashboard-home .dashboard-empty-block .empty-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.dashboard-home .dashboard-analytics-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.dashboard-home .dashboard-analytics-card {
  padding: 1.75rem;
  text-align: center;
}

.dashboard-home .dashboard-analytics-heading {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ds-muted);
  margin-bottom: 1.25rem;
}

.dashboard-home .dashboard-chart-fallback li + li {
  margin-top: 0.35rem;
}

.dashboard-home .page-bottom-spacing {
  height: 0.5rem;
}

@media (max-width: 1399.98px) {
  .dashboard-home .dashboard-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .dashboard-home .dashboard-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-home .dashboard-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .dashboard-home .dashboard-hero,
  .dashboard-home .dashboard-widget-card,
  .dashboard-home .dashboard-analytics-card {
    padding: 1.25rem;
  }

  .dashboard-home .dashboard-shortcut-grid {
    grid-template-columns: 1fr;
  }
}




/* ======= PROFILO AGENZIA ======= */
.required-asterisk {
  color: var(--vz-danger);
  margin-left: 2px;
}




/* ======= DIAGNOSTICA SISTEMA ======= */
.diag-summary-card {
  border-radius: 1rem;
  border: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #112b6b 0%, #0d6efd 100%);
  color: #fff;
}

.diag-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: .8rem;
  font-weight: 600;
}

.diag-kpi-card {
  border-radius: 1rem;
  border-width: 1px;
  border-style: solid;
  height: 100%;
}

.diag-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.diag-category-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(18, 38, 63, .06);
}

.diag-table td,
.diag-table th {
  vertical-align: top;
}

.diag-table td:nth-child(1) {
  min-width: 210px;
}

.diag-table td:nth-child(2) {
  min-width: 120px;
  font-weight: 600;
}

.diag-hint {
  color: #6c757d;
  font-size: .875rem;
}

@media (max-width: 991.98px) {
  .diag-summary-card .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
}




/* ======= CLIENTI SCHEDA ======= */
#clienteActivitiesTable,
#clienteHistoryTable {
  table-layout: fixed;
}

#clienteActivitiesTable th,
#clienteActivitiesTable td,
#clienteHistoryTable th,
#clienteHistoryTable td {
  vertical-align: top;
}

.cliente-activity-type-col {
  width: 110px;
  white-space: nowrap;
}

.cliente-activity-date-col {
  width: 170px;
  white-space: nowrap;
}

.cliente-activity-details-col {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cliente-activity-actions-col {
  width: 110px;
  white-space: nowrap;
}

.cs-client-hero-avatar-shell {
  position: relative;
  width: 170px;
  padding-bottom: 0;
}

.cs-client-hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 1.5rem;
  border: 6px solid rgba(255,255,255,.96);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 .85rem 1.75rem rgba(15, 23, 42, .16);
}

.cs-client-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.cs-client-pill {
  position: absolute;
  bottom: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: .3rem .62rem;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.98);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 .4rem .9rem rgba(15, 23, 42, .14);
  line-height: 1;
  z-index: 2;
}

.cs-client-pill--buyer {
  right: 10px;
  background: #ff7a59;
}

.cs-client-pill--seller {
  left: -8px;
  background: #0ab39c;
}

@media (max-width: 575.98px) {
  .cs-client-hero-avatar-shell {
    width: 150px;
  }

  .cs-client-hero-avatar {
    width: 132px;
    height: 132px;
    border-radius: 1.2rem;
    border-width: 5px;
  }

  .cs-client-pill {
    bottom: -8px;
    min-width: 64px;
    padding: .26rem .52rem;
    font-size: .54rem;
  }

  .cs-client-pill--buyer {
    right: -6px;
  }

  .cs-client-pill--seller {
    left: -6px;
  }
}




/* ======= IMMOBILI EDIT ======= */
.dropzone .dz-preview .dz-image {
  width: 120px;
  height: 120px;
}

.dropzone .dz-preview .dz-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dropzone .dz-remove {
  color: #dc3545;
  font-weight: 500;
}

.dropzone .dz-remove:hover {
  color: #b02a37;
}

.dropzone .dz-preview .dz-remove {
  display: inline-flex;
  align-items: center;
}

.dropzone .dz-preview .dz-remove::before {
  content: "\f01b4";
  font-family: "Material Design Icons";
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  margin-right: .25rem;
}




/* ======= MARKETING CARTELLI ======= */
.marketing-cartelli-card .badge-soft-ok {
  background: rgba(10, 179, 156, 0.15);
  color: #0ab39c;
}

.marketing-cartelli-card .badge-soft-ko {
  background: rgba(240, 101, 72, 0.15);
  color: #f06548;
}

.marketing-cartelli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.marketing-cartelli-pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.marketing-cartelli-template-card {
  border: 1px solid #e9ebec;
  border-radius: .75rem;
  padding: 1rem;
  height: 100%;
}

.marketing-cartelli-hero {
  border: 1px solid #e9ebec;
  border-radius: .75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(13,110,253,.06), rgba(249,115,22,.08));
}

.marketing-cartelli-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: .75rem;
  border: 1px solid #e9ebec;
}

.marketing-cartelli-kpi {
  border: 1px solid #e9ebec;
  border-radius: .75rem;
  padding: .875rem;
  height: 100%;
}

.marketing-cartelli-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.marketing-cartelli-feature {
  background: #f3f6f9;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .875rem;
}

.marketing-cartelli-select .choices__inner {
  min-height: 38px;
  border-radius: .375rem;
}

.marketing-cartelli-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.marketing-cartelli-meta-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  color: #878a99;
  margin-bottom: .2rem;
}

.marketing-cartelli-hidden {
  display: none !important;
}

.marketing-cartelli-template-card.is-disabled {
  background: #f8f9fa;
  opacity: .78;
}

.marketing-cartelli-template-card.is-active {
  border-color: rgba(13, 110, 253, .22);
  box-shadow: 0 10px 30px rgba(13, 110, 253, .08);
}

.marketing-cartelli-disabled-note {
  color: #878a99;
  font-size: .875rem;
}




/* ======= IMMOBILI LIST ======= */
table.dataTable.dtr-column>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-column>tbody>tr>th.dtr-control:before,
table.dataTable.dtr-column>tbody>tr>td.control:before,
table.dataTable.dtr-column>tbody>tr>th.control:before {
  opacity: 0;
}

table.dataTable.dtr-column.collapsed>tbody>tr>td.dtr-control:before {
  opacity: 1;
  margin-right: 5px !important;
}




/* ======= TRATTATIVA DETAIL ======= */
.timeline-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  height: 75vh;
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.timeline-item {
  width: 100%;
  border-left: 3px solid #e9ebec;
  padding-left: 14px;
}

.timeline-item::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

#timelineFiltri {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}




/* ======= ERROR 404 ======= */
.error-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}




/* ======= AGENDA ======= */
.fc-event {
  cursor: pointer;
}

.fc-event-title {
  font-weight: 500;
}




/* ======= TEAM ======= */
.team-profile-img {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-profile-img .avatar-lg {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-profile-img .avatar-lg.img-thumbnail {
  padding: 0;
  border: none;
  background: transparent;
}

.team-profile-img .member-img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-profile-img .avatar-title {
  width: 86px;
  height: 86px;
  line-height: 86px;
  text-align: center;
}

.role-radio-group .form-check-label {
  opacity: 0.5;
  transition: opacity 0.15s ease-in-out;
}

.role-radio-group .form-check-input:checked + .form-check-label {
  opacity: 1;
}
