.w-20 {
  width: 20% !important;
}

.w-55 {
  width: 55% !important;
}

.max-w-100px {
  max-width: 100px !important;
}

.max-w-125px {
  max-width: 125px !important;
}

.max-w-150px {
  max-width: 150px !important;
}

.max-w-175px {
  max-width: 175px !important;
}

.max-w-200px {
  max-width: 200px !important;
}

.min-w-100px {
  min-width: 100px !important;
}

.min-w-125px {
  min-width: 125px !important;
}

.min-w-150px {
  min-width: 150px !important;
}

.min-w-175px {
  min-width: 175px !important;
}

.min-w-200px {
  min-width: 200px !important;
}

.min-w-250px {
  min-width: 250px !important;
}

.bg-white {
  background-color: #FFF !important;
}

/* ── Select2 customer picker ───────────────────────────────────────── */
.select2-container--default .select2-selection--multiple {
  border: 1px solid #dee2e6;  
  border-radius: 0.75rem;
  padding: 6px 8px;
  min-height: 52px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
}

/* Tags (selected items) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 25px !important;
  padding: 0 15px 0 0 !important;
  margin: 3px 4px 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  width: 200px;
  height: 50px;
  overflow: hidden;
}

/* × absolutely positioned on the right so content can truly center */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: absolute;
  top: 25px !important;
  left: 175px !important;
  border-left: 0px solid #aaa !important;
  border-right: 0px !important;
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  border: none;
  background: none;
  padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #475569;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px;
}

/* Avatar circle */
.s2-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Dropdown option row */
.s2-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.s2-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.s2-option-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #1e293b;
}

.s2-option-company {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

.s2-option-code {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Selected tag content */
.s2-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s2-tag-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.s2-tag-name {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s2-tag-company {
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown container */
.select2-container--default .select2-results__option {
  padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f1f5f9;
  color: inherit;
}

/* ── Select2 single-select — matches rounded-pill form-select ── */
.select2-container--default .select2-selection--single {
  border: 1px solid #dee2e6;
  border-radius: 50rem;
  height: 50px !important;
  display: flex;
  align-items: center;
  padding-top: 10px;
  background-color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: normal;
  color: #212529;
  width: 100%;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6c757d;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  top: 12px !important;
  right: 12px;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 0;
}
.select2-dropdown {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  overflow: hidden;
}

/* ── Documentation ─────────────────────────────────────── */
.doc-nav-link:hover {
  background-color: #f8fafc;
  color: #1e293b !important;
}

.doc-nav-active {
  background-color: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding-left: calc(1rem - 3px) !important;
}

.doc-content h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.doc-content h2 { font-size: 1.35rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.4rem; }
.doc-content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.doc-content p  { line-height: 1.75; color: #374151; }
.doc-content ul,
.doc-content ol { padding-left: 1.5rem; line-height: 1.85; color: #374151; }
.doc-content li { margin-bottom: 0.25rem; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.doc-content th { background-color: #f1f5f9; font-weight: 600; text-align: left; padding: 0.6rem 0.9rem; border: 1px solid #e2e8f0; }
.doc-content td { padding: 0.55rem 0.9rem; border: 1px solid #e2e8f0; vertical-align: top; }
.doc-content tr:nth-child(even) td { background-color: #f8fafc; }
.doc-content code { background-color: #f1f5f9; border-radius: 4px; padding: 0.15rem 0.4rem; font-size: 0.85em; color: #be185d; }
.doc-content pre code { background: none; padding: 0; color: inherit; }
.doc-content pre { background-color: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 1.25rem; overflow-x: auto; font-size: 0.85rem; margin: 1.25rem 0; }
.doc-content blockquote { border-left: 4px solid #3b82f6; margin: 1.25rem 0; padding: 0.75rem 1rem; background-color: #eff6ff; border-radius: 0 6px 6px 0; color: #1e40af; }
.doc-content a { color: #3b82f6; }
.doc-content a:hover { color: #1d4ed8; }

/* Company details collapsible chevron */
.company-details-toggle .fa-chevron-down { transition: transform 0.2s ease; }
.company-details-toggle:not(.collapsed) .fa-chevron-down { transform: rotate(180deg); }

/* Utilities */
.cursor-pointer { cursor: pointer; }
