:root {
  --tag-bg: rgba(13, 110, 253, 0.08);
  --tag-border: rgba(13, 110, 253, 0.3);
  --tag-text: #0d6efd;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.shadow-sm-sm {
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}

.multi-select .dropdown-menu {
  max-height: 18rem;
  overflow: hidden;
}

.multi-select .options-list {
  max-height: 13rem;
  overflow-y: auto;
}

.multi-select .option-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background-color: transparent;
  transition: all 0.15s ease-in-out;
}

.multi-select .option-item:hover,
.multi-select .option-item:focus {
  background-color: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.2);
  outline: none;
}

.multi-select .option-item.active {
  border-color: rgba(13, 110, 253, 0.35);
  background-color: rgba(13, 110, 253, 0.12);
}

.multi-select .option-title {
  font-weight: 600;
  color: #1f2937;
}

.multi-select .option-description {
  font-size: 0.8rem;
  color: #6b7280;
}

.multi-select .selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem 0.35rem 0.75rem;
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  color: var(--tag-text);
  transition: all 0.15s ease-in-out;
}

.tag-pill[data-status="draft"] {
  background-color: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  color: #6d28d9;
}

.tag-pill .tag-label {
  font-weight: 600;
  font-size: 0.85rem;
}

.tag-pill .tag-note {
  font-size: 0.75rem;
  color: #334155;
}

.tag-pill button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.tag-pill button:hover,
.tag-pill button:focus-visible {
  color: #0b5ed7;
}

.tag-pill-compact {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  gap: 0.35rem;
}

.tag-pill[data-color="blue"] {
  background-color: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.35);
  color: #0d6efd;
}

.tag-pill[data-color="green"] {
  background-color: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.35);
  color: #198754;
}

.tag-pill[data-color="orange"] {
  background-color: rgba(253, 126, 20, 0.12);
  border-color: rgba(253, 126, 20, 0.35);
  color: #fd7e14;
}

.tag-pill[data-color="purple"] {
  background-color: rgba(111, 66, 193, 0.12);
  border-color: rgba(111, 66, 193, 0.35);
  color: #6f42c1;
}

.tag-pill[data-color="teal"] {
  background-color: rgba(32, 201, 151, 0.12);
  border-color: rgba(32, 201, 151, 0.35);
  color: #0f8f6d;
}

.tag-pill[data-color="pink"] {
  background-color: rgba(214, 51, 132, 0.12);
  border-color: rgba(214, 51, 132, 0.35);
  color: #d63384;
}

.tag-pill[data-color="indigo"] {
  background-color: rgba(102, 16, 242, 0.12);
  border-color: rgba(102, 16, 242, 0.35);
  color: #6610f2;
}

.tag-pill[data-color="cyan"] {
  background-color: rgba(13, 202, 240, 0.12);
  border-color: rgba(13, 202, 240, 0.35);
  color: #0aa2c0;
}

.tag-pill[data-color="amber"] {
  background-color: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.35);
  color: #b37500;
}

.tag-pill[data-color="red"] {
  background-color: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.35);
  color: #dc3545;
}

.tag-pill[data-color="slate"] {
  background-color: rgba(108, 117, 125, 0.12);
  border-color: rgba(108, 117, 125, 0.35);
  color: #495057;
}

.btn-icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-icon.text-muted:hover,
.btn-icon.text-muted:focus-visible {
  color: #0d6efd !important;
}

.table thead th {
  font-weight: 600;
  color: #475569;
  border-top: 0;
}

.table tbody td {
  vertical-align: middle;
  border-color: #f1f5f9;
}

.toast {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.12);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0.45rem;
  width: 2px;
  background: rgba(15, 23, 42, 0.08);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 0.35rem;
  left: -0.05rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.04);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.address-actions {
  display: flex;
  gap: 0.5rem;
}

.address-actions .btn {
  flex: 1;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .tag-pill {
    width: 100%;
    justify-content: space-between;
  }
}

#statusTagContainer:empty {
  display: none;
}

#statusTagContainer {
  display: inline-flex;
  align-items: center;
}

.search-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-panel .search-wrapper {
  flex: 1;
  position: relative;
}

.search-panel .search-wrapper .form-control {
  padding-left: 2.75rem;
  height: 3rem;
}

.search-panel .search-wrapper .bi-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-panel .btn {
  height: 3rem;
}

.company-table .table {
  min-width: 100%;
}

.company-table tbody tr {
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
}

.company-table tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.company-table td,
.company-table th {
  padding: 0.95rem 1rem;
}

.company-table td .tag-pill {
  pointer-events: none;
}

.company-table .count-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #1d4ed8;
}

.pagination .page-link {
  border-radius: 0.75rem;
  color: #475569;
  border: none;
  margin: 0 0.15rem;
  padding: 0.4rem 0.8rem;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.list-caption {
  font-size: 0.85rem;
  color: #6b7280;
}

.concessionnaire-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(120deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0));
  padding: 2rem;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.concessionnaire-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
}

.concessionnaire-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.concessionnaire-card .card-subtitle {
  color: #64748b;
  font-size: 0.9rem;
}

.concessionnaire-card .badge {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.concessionnaire-card .btn {
  border-radius: 0.9rem;
}

.contacts-table td,
.contacts-table th {
  padding: 0.85rem 1rem;
}

.contacts-table tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.contacts-table .contact-name {
  font-weight: 600;
}

.contacts-table .contact-role {
  color: #475569;
  font-size: 0.85rem;
}

.contacts-table .contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background-color: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}
