@font-face {
    font-family: 'FiraGO';
    src: url('../fonts/FiraGO-Regular.woff2') format('woff2'),
    url('../fonts/FiraGO-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'FiraGO';
}

.dark-style .logo {
    filter: invert(99%) sepia(51%) saturate(0%) hue-rotate(204deg) brightness(109%) contrast(100%);
}

.form-group {
    position: relative;
}

.form-error {
    position: absolute;
    color: red;
    font-size: 12px;
}

.cargo-sizes {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

.cargo-ltl,.cargo-fcl {
    display: none;
}
  

.cargo-sizes:first-child .btn-label-danger {
    display: none;
}

.cargo-sizes div {
    min-width: 80px;
}

.container-xxl {
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════════
   Weshiper Kanban — Leads / Deals / Shipments (unified)
   ══════════════════════════════════════════════════════════ */

.kanban-module-page {
    margin-bottom: 1rem;
}

.kanban-page-title {
    font-size: 1.375rem;
    color: #3b4056;
}

.dark-style .kanban-page-title {
    color: #d7d8ed;
}

/* ── Toolbar ── */
.kanban-page-toolbar {
    background: #fff;
    border: 1px solid rgba(38, 43, 67, 0.08);
    border-radius: 0.625rem;
    padding: 0.65rem 0.85rem;
}

.dark-style .kanban-page-toolbar {
    background: #30334e;
    border-color: rgba(255, 255, 255, 0.08);
}

.kanban-view-toggle {
    background: #f0f2f5;
    border-radius: 0.5rem;
    padding: 0.2rem;
    gap: 0;
}

.kanban-view-toggle .btn {
    border: 0;
    background: transparent;
    color: #6d788d;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem !important;
    box-shadow: none;
    line-height: 1.2;
}

.kanban-view-toggle .btn.active {
    background: #fff;
    color: #696cff;
    box-shadow: 0 1px 3px rgba(38, 43, 67, 0.12);
}

.kanban-view-toggle .btn.active i {
    color: #696cff;
}

.kanban-view-toggle .btn:disabled {
    opacity: 1;
    cursor: default;
}

.kanban-view-toggle .btn:not(.active):not(:disabled) {
    cursor: pointer;
}

.kanban-table-view .card {
    border: 1px solid rgba(38, 43, 67, 0.08);
    border-radius: 0.625rem;
    overflow: hidden;
}

.kanban-table-view .kanban-data-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #8592a3;
    background: #f8f9fb;
    border-bottom: 1px solid rgba(38, 43, 67, 0.08);
    white-space: nowrap;
}

.kanban-table-view .kanban-data-table tbody td {
    font-size: 0.875rem;
    vertical-align: middle;
}

.kanban-table-view .kanban-data-table tbody tr:hover {
    background: rgba(105, 108, 255, 0.04);
}

.dark-style .kanban-table-view .card {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-style .kanban-table-view .kanban-data-table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: #a8aab8;
    border-color: rgba(255, 255, 255, 0.08);
}

.kanban-filter-btn {
    border-color: #e4e6eb;
    background: #fff;
    color: #566072;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.kanban-create-btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.35rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(105, 108, 255, 0.4);
}

.kanban-scroll-hint {
    padding-inline: 0.25rem;
    margin-top: -0.25rem;
}

/* ── Board shell ── */
.kanban-board-shell .kanban-wrapper {
    padding: 1rem 1rem 1.5rem;
    background: #f4f5f8;
    border-radius: 0.75rem;
    min-height: calc(100vh - 15rem);
}

.dark-style .kanban-board-shell .kanban-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.app-kanban .kanban-wrapper {
    padding: 1rem 1rem 1.5rem;
    background: #f4f5f8;
    border-radius: 0.75rem;
}

.dark-style .app-kanban .kanban-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.app-kanban .kanban-wrapper .kanban-container {
    display: flex;
    gap: 1.5rem;
    padding-block-end: 0.5rem;
}

.app-kanban .kanban-wrapper .kanban-container .kanban-board {
    flex: 0 0 auto;
    min-inline-size: 18.75rem;
    max-inline-size: 19.5rem;
    background: transparent !important;
    border-top: 0 !important;
}

.app-kanban .kanban-board-converted .kanban-item,
.app-kanban .kanban-board-converted .kanban-item.not-draggable {
    cursor: default;
}

.app-kanban .kanban-board-converted .kanban-drag {
    min-height: 120px;
}

/* ── Column header ── */
.app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.15rem 0.9rem;
}

.app-kanban .kanban-title-board {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.kanban-stage-dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.kanban-stage-dot--primary { background: #696cff; }
.kanban-stage-dot--warning { background: #ffab00; }
.kanban-stage-dot--info { background: #03c3ec; }
.kanban-stage-dot--success { background: #71dd37; }
.kanban-stage-dot--secondary { background: #8592a3; }
.kanban-stage-dot--danger { background: #ff3e1d; }
.kanban-stage-dot--purple { background: #9055fd; }

.kanban-stage-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b4056;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-style .kanban-stage-name {
    color: #d7d8ed;
}

.kanban-stage-count {
    flex-shrink: 0;
    margin-left: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #8592a3;
    background: #e8eaee;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    min-width: 1.35rem;
    text-align: center;
    line-height: 1.2;
}

.dark-style .kanban-stage-count {
    background: rgba(255, 255, 255, 0.1);
    color: #a8aab8;
}

.kanban-board-dropdown {
    flex-shrink: 0;
    cursor: pointer;
    color: #b4b9c5;
    font-size: 1.1rem;
    padding: 0.15rem;
}

.kanban-board-dropdown .dropdown-toggle::after {
    display: none;
}

/* ── Column body ── */
.app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-drag {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.15rem 1rem;
    min-block-size: 8rem;
    min-width: auto;
}

/* ── Cards ── */
.app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-item {
    position: relative;
    margin-block-end: 0 !important;
    padding: 0.85rem 0.9rem 0.8rem;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0.625rem;
    cursor: grab;
    background: #fff !important;
    border: 1px solid rgba(38, 43, 67, 0.06);
    box-shadow: 0 2px 6px rgba(38, 43, 67, 0.07) !important;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.dark-style .app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-item {
    background: #30334e !important;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(16, 17, 33, 0.25) !important;
}

.app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 43, 67, 0.12) !important;
}

.app-kanban .kanban-wrapper .kanban-container .kanban-board .kanban-item:last-child {
    margin-block-end: 0 !important;
}

.app-kanban .kanban-item.not-draggable {
    cursor: default;
}

.kanban-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    min-height: 1.25rem;
}

.kanban-card-id {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    line-height: 1.3;
}

.kanban-card-id--primary { background: rgba(105, 108, 255, 0.12); color: #696cff; }
.kanban-card-id--warning { background: rgba(255, 171, 0, 0.15); color: #e69a00; }
.kanban-card-id--info { background: rgba(3, 195, 236, 0.12); color: #03a9c4; }
.kanban-card-id--success { background: rgba(113, 221, 55, 0.15); color: #5cb82a; }
.kanban-card-id--secondary { background: rgba(133, 146, 163, 0.15); color: #697a8d; }
.kanban-card-id--purple { background: rgba(144, 85, 253, 0.12); color: #9055fd; }

.kanban-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #3b4056;
    margin-bottom: 0.15rem;
    text-decoration: none;
}

a.kanban-text:hover {
    color: #696cff;
}

.dark-style .kanban-text {
    color: #d7d8ed;
}

.dark-style a.kanban-text:hover {
    color: #a5a7ff;
}

.kanban-card-date {
    display: block;
    font-size: 0.6875rem;
    color: #a1a7b3;
    margin-bottom: 0.5rem;
}

.kanban-location-bar {
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.4rem 0.55rem;
    margin-bottom: 0.65rem;
    font-size: 0.6875rem;
    color: #566072;
    line-height: 1.3;
}

.kanban-location-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-location-bar--primary { background: rgba(105, 108, 255, 0.08); }
.kanban-location-bar--warning { background: rgba(255, 171, 0, 0.1); }
.kanban-location-bar--info { background: rgba(3, 195, 236, 0.1); }
.kanban-location-bar--success { background: rgba(113, 221, 55, 0.1); }
.kanban-location-bar--secondary { background: rgba(133, 146, 163, 0.1); }
.kanban-location-bar--purple { background: rgba(144, 85, 253, 0.08); }

.kanban-location-flag {
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Card footer ── */
.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(38, 43, 67, 0.07);
}

.dark-style .kanban-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.kanban-card-footer__team {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.kanban-card-footer__team .avatar-xs {
    width: 1.5rem;
    height: 1.5rem;
}

.kanban-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.625rem;
    font-weight: 700;
    background: #e8eaee;
    color: #697a8d;
}

.kanban-card-footer__empty {
    font-size: 0.75rem;
    color: #c5cad3;
}

.kanban-card-footer__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.kanban-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #a1a7b3;
}

.kanban-meta-item i {
    font-size: 0.875rem;
}

.kanban-footer-label {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.kanban-footer-label--urgent {
    color: #ff3e1d;
    background: rgba(255, 62, 29, 0.08);
}

.kanban-footer-label--pending {
    color: #71dd37;
    background: rgba(113, 221, 55, 0.12);
}

.kanban-footer-label--success {
    color: #71dd37;
    background: rgba(113, 221, 55, 0.12);
}

.app-kanban .kanban-tasks-item-dropdown {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    color: #b4b9c5;
    opacity: 0;
    transition: opacity 0.15s;
}

.app-kanban .kanban-item:hover .kanban-tasks-item-dropdown {
    opacity: 1;
    display: block;
}

.app-kanban .kanban-item .kanban-tasks-item-dropdown {
    display: block;
}

.app-kanban .kanban-tasks-item-dropdown .dropdown-toggle::after {
    display: none;
}

.kanban-transport-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    padding: 0.3rem 0.55rem;
    border-radius: 0.375rem;
    background: rgba(133, 146, 163, 0.1);
    margin-bottom: 0.5rem;
    color: #566072;
}

.kanban-footer-badge {
    font-size: 0.625rem;
    font-weight: 600;
}

/* Override Materio vendor kanban */
.light-style .app-kanban .kanban-board .kanban-item {
    background-color: #fff !important;
    box-shadow: 0 2px 6px rgba(38, 43, 67, 0.07) !important;
}

.light-style .app-kanban .kanban-board .kanban-item .kanban-text {
    color: #3b4056;
}

.app-kanban .kanban-wrapper {
    height: calc(100vh - 14rem);
    overflow-x: auto;
    overflow-y: auto;
}


.user-profile-header-banner img {
    width: 100%;
}

.modal-dialog {
    width: 80%;
    max-width: 80%;
}

.comments h6 small {
    font-size: 10px;
    display: block;
}

.comm {
    border-radius: 10px;
    padding: 10px;
    background: #f7f7f9;
}

.dark-style .comm {
    background: #282a42;
}

.form-select,.select2-selection__rendered {
    font-size: 14px;
}

.address-information {
    display: flex;
    grid-gap: 10px;
}

.address-information .form-floating {
  flex: 1;
  margin-bottom: 5px;
}

.f-btns {
    display: flex;
    flex-flow: wrap;
    grid-gap: 15px;
    padding: 0 20px;
}

.page-loader {
    position: fixed;
    background-color: #fff;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;;
}

.order-pricing {
    display: flex;
    grid-gap: 20px;
}

.order-pricing .form-check {
    flex: 1 1 0px;
}

.delivery_user_selection {
    position: absolute;
    z-index: 999;
    width: 100%;
    background: #fff;
  }
  /* Crashes notifications dropdown */
  /* .dropdown-menu {
    max-height: 300px;
    overflow-y: auto; 
  } */

  .selectpicker option {
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide text overflow */
    text-overflow: ellipsis; /* Truncate text with an ellipsis */
  }

  .form .errors {
    display: none;
  }

  .form .errors .alert {
    padding: 5px 15px;
    font-size: 13px;
    margin-bottom: 5px;
  }

  .form .errors p {
    padding: 0;
    margin: 0;
  }

  form .invalid, form .is-invalid .invalid:before, form .is-invalid::before {
    border-width: 1px;
  }

  .swal2-title {
    max-width: 100% !important;
  }

  .bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn):not(.w-100) {
    width: auto !important;
  }

  .form-floating .bootstrap-select,
  .form-floating-outline .bootstrap-select,
  .bootstrap-select.w-100 {
    width: 100% !important;
  }

  .form-floating .bootstrap-select > .dropdown-toggle,
  .form-floating-outline .bootstrap-select > .dropdown-toggle {
    width: 100%;
  }

  .pricing_list_item_remove {
    height: 80%;
  }

  .status-list {
    display: flex;
  }

  .status-list .sl {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 10px;
    padding: 15px;
    flex-grow: 1;
    flex-basis: 0;
  }

  .status-list .sl.deal-stage-pending {
    opacity: 0.45;
  }


  .auth-cover-brand {
    font-size: 28px;
  }

  .datatables-ajax tbody tr {
    cursor: pointer;
  }

  /* #layout-menu, #layout-navbar {
    position: static;
  }

  .layout-page {
    padding-top: 0;
  } */

  .permissions-list {
    display: grid;
    grid-gap: 10px 10%;
    grid-template-columns: repeat(3, 1fr);
  }

  .permissions-list label {
    display: flex;
    align-items: center;
  }

  .permissions-list label input {
    margin-left: auto;
  }

  .layout-menu {
    border-right: 1px solid #9191911a !important;
  }

  /* .dt-input {
    height: 2.5% !important;
    min-height: 2.5% !important;
    padding: 10px 15px !important;
  }

  .dt_adv_search .form-floating > label {
    font-size: 12px !important;
    padding: 10px !important;
  } */

  .dark-style .delivery_user_selection {
    background: #282a42;
  }

  .dark-style .layout-navbar {
    background: #0000001c;
  }

  .light-style .layout-navbar {
    background: #ffffff;
  }

/* Lead record (CRM detail view) */
.lead-record-header {
  border: 1px solid rgba(38, 43, 67, 0.08);
  box-shadow: 0 2px 8px rgba(38, 43, 67, 0.06);
}

.dark-style .lead-record-header {
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-record-title {
  font-weight: 700;
  color: #3b4056;
}

.dark-style .lead-record-title {
  color: #cfd3ec;
}

.lead-record-subtitle {
  font-size: 0.95rem;
}

.lead-record-meta i {
  opacity: 0.75;
}

.lead-pipeline-steps .lead-stage-step--clickable {
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.lead-pipeline-steps .lead-stage-step--clickable:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.lead-pipeline-steps .sl.lead-stage-pending {
  opacity: 0.45;
}

/* Deal record detail view */
.deal-record-header {
  border: 1px solid rgba(38, 43, 67, 0.08);
  box-shadow: 0 2px 8px rgba(38, 43, 67, 0.06);
}

.deal-record-title {
  font-weight: 700;
  color: #3b4056;
}

.deal-pipeline-steps .deal-stage-step--clickable {
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.deal-pipeline-steps .deal-stage-step--clickable:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.deal-pricing-card {
  border: 1px solid rgba(38, 43, 67, 0.08);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.deal-pricing-card--selected {
  border-color: rgba(105, 108, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(105, 108, 255, 0.2);
}

.deal-pricing-card__profit {
  color: #28c76f;
  font-weight: 600;
}

.deal-pricing-card--quote {
  background: linear-gradient(135deg, #f5f6ff 0%, #f0f2ff 100%);
  border: 1px solid #e7e9fb;
  border-radius: 12px;
  box-shadow: none;
}

.deal-pricing-card--quote:hover {
  border-color: #d8dcfa;
  box-shadow: 0 6px 18px rgba(76, 78, 100, 0.08);
}

.deal-pricing-card__route {
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 700;
}

.deal-pricing-card__status {
  font-size: 0.72rem;
  padding: 0.38rem 0.58rem;
}

.deal-pricing-card__meta {
  color: #475569;
  font-size: 0.76rem;
  white-space: nowrap;
}

.deal-pricing-card__meta span {
  color: #94a3b8;
  margin: 0 0.3rem;
}

.deal-pricing-card__metrics {
  background: #fff;
  border: 1px solid #edf0fa;
  border-radius: 10px;
  overflow: hidden;
}

.deal-pricing-card__metric {
  min-height: 64px;
  padding: 0.65rem 0.8rem;
}

.deal-pricing-card__metric + .deal-pricing-card__metric {
  border-left: 1px solid #eef1f7;
}

.deal-pricing-card__label {
  color: #64748b;
  font-size: 0.69rem;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.deal-pricing-card__value {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
}

.deal-pricing-card__value small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 500;
}

.deal-pricing-card__sell {
  color: #4f46e5;
  font-size: 1.08rem;
}

.deal-pricing-card__margin {
  color: #059669;
}

.deal-pricing-card__note {
  color: #475569;
  font-size: 0.76rem;
}

.deal-pricing-card__note i {
  color: #059669;
}

@media (max-width: 991.98px) {
  .deal-pricing-card__metric:nth-child(3) {
    border-left: 0;
  }

  .deal-pricing-card__metric:nth-child(n + 3) {
    border-top: 1px solid #eef1f7;
  }
}

@media (max-width: 575.98px) {
  .deal-pricing-card__head,
  .deal-pricing-card__foot {
    align-items: stretch !important;
    flex-direction: column;
  }

  .deal-pricing-card__meta {
    white-space: normal;
  }

  .deal-pricing-card__metric + .deal-pricing-card__metric {
    border-left: 0;
    border-top: 1px solid #eef1f7;
  }
}

.deal-cargo-kv h6 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8592a3;
}

.deal-address-row,
.deal-cargo-row {
  border: 1px solid rgba(38, 43, 67, 0.06);
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  .deal-record-header__actions {
    width: 100%;
  }

  .deal-record-header__actions .btn {
    flex: 1 1 auto;
  }

  .deal-address-row .row > .col,
  .deal-cargo-row .row > .col {
    margin-bottom: 0.5rem;
  }
}

.lead-sidebar-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(38, 43, 67, 0.08);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.lead-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(38, 43, 67, 0.06);
}

.lead-info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lead-info-list__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8592a3;
  font-weight: 600;
}

.lead-info-list__value {
  font-size: 0.92rem;
  color: #3b4056;
  word-break: break-word;
}

.dark-style .lead-info-list__value {
  color: #cfd3ec;
}

.lead-record-tabs .nav-link {
  font-weight: 500;
  border: 0;
  color: #8592a3;
}

.lead-record-tabs .nav-link.active {
  color: #696cff;
  border-bottom: 2px solid #696cff;
  background: transparent;
}

.lead-comment-form {
  background: rgba(105, 108, 255, 0.04);
  border: 1px solid rgba(105, 108, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
}

.dark-style .lead-comment-form {
  background: rgba(105, 108, 255, 0.08);
  border-color: rgba(105, 108, 255, 0.18);
}

.lead-activity-timeline {
  position: relative;
  padding-left: 0.5rem;
}

.lead-activity-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.25rem;
}

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

.lead-activity-item__marker {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #696cff;
  box-shadow: 0 0 0 4px rgba(105, 108, 255, 0.15);
}

.lead-activity-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: rgba(105, 108, 255, 0.15);
}

.lead-activity-item__body {
  background: #f7f7f9;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.dark-style .lead-activity-item__body {
  background: #282a42;
}

.lead-activity-empty {
  border: 1px dashed rgba(133, 146, 163, 0.35);
  border-radius: 12px;
}

.lead-add-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8592a3;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Organization record (CRM detail view) */
.org-record-header {
  border: 1px solid rgba(38, 43, 67, 0.08);
  box-shadow: 0 2px 8px rgba(38, 43, 67, 0.06);
}

.dark-style .org-record-header {
  border-color: rgba(255, 255, 255, 0.08);
}

.org-record-title {
  font-weight: 700;
  color: #3b4056;
}

.dark-style .org-record-title {
  color: #cfd3ec;
}

.org-record-meta i {
  opacity: 0.75;
}

.org-sidebar-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(38, 43, 67, 0.08);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.org-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(38, 43, 67, 0.06);
}

.org-info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.org-info-list__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8592a3;
  font-weight: 600;
}

.org-info-list__value {
  font-size: 0.92rem;
  color: #3b4056;
  word-break: break-word;
}

.dark-style .org-info-list__value {
  color: #cfd3ec;
}

.org-record-tabs .nav-link {
  font-weight: 500;
  border: 0;
  color: #8592a3;
}

.org-record-tabs .nav-link.active {
  color: #696cff;
  border-bottom: 2px solid #696cff;
  background: transparent;
}

.org-add-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8592a3;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════
   Home dashboard
   ══════════════════════════════════════════════════════════ */

.home-dashboard__greeting {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b4056;
  letter-spacing: -0.02em;
}

.dark-style .home-dashboard__greeting {
  color: #d7d8ed;
}

.home-dashboard__role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(140, 87, 255, 0.12);
  color: #8c57ff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-dashboard__subtitle {
  font-size: 0.9375rem;
}

.home-dashboard__actions .btn {
  border-radius: 0.625rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

.home-metric-card {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(38, 43, 67, 0.04);
  overflow: hidden;
  position: relative;
}

.home-metric-card::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -35%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  opacity: 0.14;
  pointer-events: none;
}

.home-metric-card--leads::after { background: #28c76f; }
.home-metric-card--deals::after { background: #8c57ff; }
.home-metric-card--transit::after { background: #00cfe8; }
.home-metric-card--revenue::after { background: #ff9f43; }

.dark-style .home-metric-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.home-metric-card__label {
  font-size: 0.875rem;
  color: #8592a3;
  font-weight: 500;
}

.home-metric-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b4056;
  line-height: 1.1;
}

.dark-style .home-metric-card__value {
  color: #d7d8ed;
}

.home-metric-card__trend {
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-metric-card__meta {
  font-size: 0.8125rem;
}

.home-metric-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.home-panel {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(38, 43, 67, 0.04);
}

.dark-style .home-panel {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.home-panel .card-header {
  padding: 1.25rem 1.25rem 0;
}

.home-panel .card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.home-schedule__item {
  display: flex;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  position: relative;
}

.home-schedule__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.4375rem;
  top: 1.125rem;
  bottom: 0;
  width: 2px;
  background: rgba(140, 87, 255, 0.18);
}

.home-schedule__marker {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #8c57ff;
  border: 3px solid rgba(140, 87, 255, 0.2);
  flex-shrink: 0;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.home-schedule__content h6 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.home-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8592a3;
  font-weight: 600;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.home-table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-top: 1px solid rgba(38, 43, 67, 0.06);
}

.dark-style .home-table tbody td {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.home-route {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5b6075;
}

.dark-style .home-route {
  color: #b4b7ce;
}

.home-reminders__item + .home-reminders__item {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(38, 43, 67, 0.06);
}

.home-reminders__item label {
  cursor: default;
}

.home-activity__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.home-activity__item + .home-activity__item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(38, 43, 67, 0.06);
}

.dark-style .home-activity__item + .home-activity__item {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.home-activity__body {
  flex: 1;
  min-width: 0;
}

.home-activity .avatar.avatar-sm {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
}

.home-activity .avatar.avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-activity .avatar-initial {
  font-size: 0.75rem;
  font-weight: 700;
}

.home-activity__name {
  font-size: 0.875rem;
}

.home-activity__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  word-break: break-word;
}

.home-empty-state i {
  font-size: 1.75rem;
  color: #c2c6d7;
}

@media (max-width: 767.98px) {
  .home-dashboard__greeting {
    font-size: 1.375rem;
  }

  .home-dashboard__actions {
    width: 100%;
  }

  .home-dashboard__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════
   CRM Setup Page
   ══════════════════════════════════════════════════════════ */

.crm-setup-header {
  padding: 0.5rem 0;
}

.crm-setup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b4056;
}

.dark-style .crm-setup-title {
  color: #d7d8ed;
}

.crm-setup-subtitle {
  font-size: 0.875rem;
}

.crm-setup-card {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(38, 43, 67, 0.04);
}

.dark-style .crm-setup-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.crm-setup-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #3b4056;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.crm-setup-section-title i {
  font-size: 1.125rem;
  color: #696cff;
}

.dark-style .crm-setup-section-title {
  color: #d7d8ed;
}

.crm-setup-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8592a3;
  margin-bottom: 0.4rem;
}

/* Upload boxes */
.crm-setup-upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(38, 43, 67, 0.12);
  border-radius: 0.625rem;
  padding: 1.25rem 1rem;
  text-align: center;
  min-height: 120px;
  transition: border-color 0.2s ease;
}

.crm-setup-upload-box:hover {
  border-color: rgba(105, 108, 255, 0.4);
}

.dark-style .crm-setup-upload-box {
  border-color: rgba(255, 255, 255, 0.12);
}

.crm-setup-upload-icon {
  font-size: 2rem;
  color: #b4b9c5;
  margin-bottom: 0.5rem;
}

.crm-setup-upload-preview {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
}

.crm-setup-upload-preview--sm {
  max-width: 32px;
  max-height: 32px;
}

.crm-setup-upload-btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
}

/* Language list */
.crm-setup-lang-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.crm-setup-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(38, 43, 67, 0.06);
}

.crm-setup-lang-item:last-child {
  border-bottom: 0;
}

.dark-style .crm-setup-lang-item {
  border-color: rgba(255, 255, 255, 0.06);
}

.crm-setup-flag {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
}

.crm-setup-default-badge {
  font-size: 0.625rem;
  padding: 0.15rem 0.45rem;
}

/* Language radio list */
.crm-setup-lang-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.crm-setup-lang-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(38, 43, 67, 0.06);
  cursor: pointer;
  margin: 0;
}

.crm-setup-lang-radio:last-child {
  border-bottom: 0;
}

.dark-style .crm-setup-lang-radio {
  border-color: rgba(255, 255, 255, 0.06);
}

/* Bank cards */
.crm-setup-bank-card {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.625rem;
  padding: 1rem;
  position: relative;
}

.dark-style .crm-setup-bank-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.crm-setup-bank-card--secondary {
  border-style: dashed;
  background: rgba(38, 43, 67, 0.02);
}

.dark-style .crm-setup-bank-card--secondary {
  background: rgba(255, 255, 255, 0.02);
}

.crm-setup-bank-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(105, 108, 255, 0.1);
  color: #696cff;
  margin-bottom: 0.75rem;
}

.crm-setup-bank-badge--secondary {
  background: rgba(133, 146, 163, 0.12);
  color: #8592a3;
}

/* Stamp box */
.crm-setup-stamp-box {
  border: 2px dashed rgba(38, 43, 67, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.dark-style .crm-setup-stamp-box {
  border-color: rgba(255, 255, 255, 0.1);
}

.crm-setup-stamp-preview {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  opacity: 0.85;
}

.crm-setup-stamp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border: 2px dashed rgba(133, 146, 163, 0.3);
  border-radius: 50%;
}

.crm-setup-stamp-placeholder i {
  font-size: 2rem;
  color: #b4b9c5;
}

.crm-setup-stamp-change {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 991.98px) {
  .crm-setup-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .crm-setup-upload-box {
    min-height: 100px;
  }
}

/* ══════════════════════════════════════════════════════════
   Pipeline Stages manager
   ══════════════════════════════════════════════════════════ */

/* Row layout */
.ps-stage-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 3rem;
  transition: background-color 0.15s;
}

/* Drag handle cursor */
.ps-drag-handle {
  cursor: grab;
  flex-shrink: 0;
}
.ps-drag-handle:active {
  cursor: grabbing;
}

/* SortableJS ghost placeholder */
.ps-sortable-ghost {
  opacity: 0.45;
  background-color: rgba(105, 108, 255, 0.07);
}

/* Inline input sizing */
.ps-inline-input {
  max-width: 280px;
}

/* Highlight the row being edited */
.ps-stage-row.ps-editing {
  background-color: rgba(105, 108, 255, 0.04);
}

/* Keep action buttons on one line */
.ps-stage-row .ms-auto {
  flex-shrink: 0;
}

/* Position badge width consistency */
.ps-position {
  min-width: 2rem;
  text-align: center;
}

.org-autocomplete-dropdown,
.contact-autocomplete-dropdown {
  max-height: 220px;
  overflow-y: auto;
  top: 100%;
  left: 0;
  margin-top: 2px;
  border-radius: 0.375rem;
  background: #fff;
  z-index: 1000;
}

.org-autocomplete-dropdown .list-group-item-action:hover,
.org-autocomplete-dropdown .list-group-item-action:focus,
.contact-autocomplete-dropdown .list-group-item-action:hover,
.contact-autocomplete-dropdown .list-group-item-action:focus {
  background-color: rgba(67, 89, 113, 0.06);
}

.lead-activity-form .form-check {
  padding-top: 0.6rem;
}

.lead-activity-timeline .lead-activity-item__marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.lead-activity-timeline .lead-activity-item {
  display: flex;
  gap: 12px;
  padding-bottom: 1.25rem;
  border-left: 2px solid #e6e6e8;
  margin-left: 5px;
  padding-left: 18px;
}

.lead-activity-timeline .lead-activity-item:last-child {
  border-left-color: transparent;
}

/* ══════════════════════════════════════════════════════════
   Lead Record View (redesigned)
   ══════════════════════════════════════════════════════════ */

.lead-view-breadcrumb {
  font-size: 0.8125rem;
}

.lead-record-header {
  background: #fff;
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dark-style .lead-record-header {
  background: #30334e;
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-record-header__main {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-record-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.lead-record-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b4056;
  margin: 0;
  line-height: 1.3;
}

.dark-style .lead-record-title {
  color: #d7d8ed;
}

.lead-record-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-record-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.lead-record-badge--id {
  background: #f0f2f5;
  color: #6d788d;
}

.dark-style .lead-record-badge--id {
  background: rgba(255, 255, 255, 0.1);
  color: #a8aab8;
}

.lead-record-subtitle {
  color: #6d788d;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.lead-record-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #6d788d;
}

.lead-record-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lead-record-meta__item i {
  font-size: 1rem;
  color: #8592a3;
}

.lead-record-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Pipeline */

.lead-pipeline {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.75rem;
  background: #fff;
}

.dark-style .lead-pipeline {
  background: #30334e;
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-pipeline-steps {
  display: flex;
  padding: 1rem;
  gap: 0.75rem;
  overflow-x: auto;
}

.lead-pipeline-step {
  flex: 1 1 0;
  min-width: 11rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(38, 43, 67, 0.08);
  background: #f8f9fb;
  transition: all 0.2s ease;
  cursor: default;
}

.dark-style .lead-pipeline-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-pipeline-step--pending {
  opacity: 0.75;
}

.lead-pipeline-step--clickable {
  cursor: pointer;
}

.lead-pipeline-step--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 43, 67, 0.1);
}

.lead-pipeline-step--active {
  background: rgba(105, 108, 255, 0.08);
  border-color: rgba(105, 108, 255, 0.25);
}

.lead-pipeline-step--active.lead-pipeline-step--primary {
  background: rgba(105, 108, 255, 0.08);
  border-color: rgba(105, 108, 255, 0.25);
}

.lead-pipeline-step--active.lead-pipeline-step--warning {
  background: rgba(255, 171, 0, 0.08);
  border-color: rgba(255, 171, 0, 0.25);
}

.lead-pipeline-step--active.lead-pipeline-step--purple {
  background: rgba(144, 85, 253, 0.08);
  border-color: rgba(144, 85, 253, 0.25);
}

.lead-pipeline-step--active.lead-pipeline-step--info {
  background: rgba(3, 195, 236, 0.08);
  border-color: rgba(3, 195, 236, 0.25);
}

.lead-pipeline-step--active.lead-pipeline-step--success {
  background: rgba(113, 221, 55, 0.08);
  border-color: rgba(113, 221, 55, 0.25);
}

.lead-pipeline-step--current {
  box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.2);
}

.lead-pipeline-step__number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #e8eaee;
  color: #6d788d;
  flex-shrink: 0;
}

.lead-pipeline-step--active .lead-pipeline-step__number {
  background: #696cff;
  color: #fff;
}

.lead-pipeline-step--active.lead-pipeline-step--warning .lead-pipeline-step__number {
  background: #ffab00;
}

.lead-pipeline-step--active.lead-pipeline-step--purple .lead-pipeline-step__number {
  background: #9055fd;
}

.lead-pipeline-step--active.lead-pipeline-step--info .lead-pipeline-step__number {
  background: #03c3ec;
}

.lead-pipeline-step--active.lead-pipeline-step--success .lead-pipeline-step__number {
  background: #71dd37;
}

.lead-pipeline-step__content {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-pipeline-step__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8592a3;
  margin-bottom: 0.15rem;
}

.lead-pipeline-step__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b4056;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark-style .lead-pipeline-step__name {
  color: #d7d8ed;
}

.lead-pipeline-step__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #8592a3;
  flex-shrink: 0;
}

.lead-pipeline-step--active .lead-pipeline-step__icon {
  background: #696cff;
  color: #fff;
}

.lead-pipeline-step--active.lead-pipeline-step--warning .lead-pipeline-step__icon {
  background: #ffab00;
}

.lead-pipeline-step--active.lead-pipeline-step--purple .lead-pipeline-step__icon {
  background: #9055fd;
}

.lead-pipeline-step--active.lead-pipeline-step--info .lead-pipeline-step__icon {
  background: #03c3ec;
}

.lead-pipeline-step--active.lead-pipeline-step--success .lead-pipeline-step__icon {
  background: #71dd37;
}

/* Deal Pipeline (mirrors lead-pipeline) */

.deal-pipeline {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.75rem;
  background: #fff;
}

.dark-style .deal-pipeline {
  background: #30334e;
  border-color: rgba(255, 255, 255, 0.08);
}

.deal-pipeline-steps {
  display: flex;
  padding: 1rem;
  gap: 0.75rem;
  overflow-x: auto;
}

.deal-pipeline-step {
  flex: 1 1 0;
  min-width: 11rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(38, 43, 67, 0.1);
  background: #f8f8fb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.dark-style .deal-pipeline-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.deal-pipeline-step--pending {
  opacity: 0.75;
}

.deal-pipeline-step--clickable {
  cursor: pointer;
}

.deal-pipeline-step--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 43, 67, 0.1);
}

.deal-pipeline-step--active {
  background: rgba(105, 108, 255, 0.08);
  border-color: rgba(105, 108, 255, 0.25);
}

.deal-pipeline-step--active.deal-pipeline-step--primary {
  background: rgba(105, 108, 255, 0.08);
  border-color: rgba(105, 108, 255, 0.25);
}

.deal-pipeline-step--active.deal-pipeline-step--warning {
  background: rgba(255, 171, 0, 0.08);
  border-color: rgba(255, 171, 0, 0.25);
}

.deal-pipeline-step--active.deal-pipeline-step--purple {
  background: rgba(144, 85, 253, 0.08);
  border-color: rgba(144, 85, 253, 0.25);
}

.deal-pipeline-step--active.deal-pipeline-step--info {
  background: rgba(3, 195, 236, 0.08);
  border-color: rgba(3, 195, 236, 0.25);
}

.deal-pipeline-step--active.deal-pipeline-step--success {
  background: rgba(113, 221, 55, 0.08);
  border-color: rgba(113, 221, 55, 0.25);
}

.deal-pipeline-step--current {
  box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.2);
}

.deal-pipeline-step__number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(38, 43, 67, 0.08);
  color: #697a8d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.deal-pipeline-step--active .deal-pipeline-step__number {
  background: #696cff;
  color: #fff;
}

.deal-pipeline-step--active.deal-pipeline-step--warning .deal-pipeline-step__number {
  background: #ffab00;
}

.deal-pipeline-step--active.deal-pipeline-step--purple .deal-pipeline-step__number {
  background: #9055fd;
}

.deal-pipeline-step--active.deal-pipeline-step--info .deal-pipeline-step__number {
  background: #03c3ec;
}

.deal-pipeline-step--active.deal-pipeline-step--success .deal-pipeline-step__number {
  background: #71dd37;
}

.deal-pipeline-step__content {
  flex: 1 1 auto;
  min-width: 0;
}

.deal-pipeline-step__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1acb8;
  margin-bottom: 0.15rem;
}

.deal-pipeline-step__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b4056;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark-style .deal-pipeline-step__name {
  color: #d7d8ed;
}

.deal-pipeline-step__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(38, 43, 67, 0.06);
  color: #a1acb8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.deal-pipeline-step--active .deal-pipeline-step__icon {
  background: #696cff;
  color: #fff;
}

.deal-pipeline-step--active.deal-pipeline-step--warning .deal-pipeline-step__icon {
  background: #ffab00;
}

.deal-pipeline-step--active.deal-pipeline-step--purple .deal-pipeline-step__icon {
  background: #9055fd;
}

.deal-pipeline-step--active.deal-pipeline-step--info .deal-pipeline-step__icon {
  background: #03c3ec;
}

.deal-pipeline-step--active.deal-pipeline-step--success .deal-pipeline-step__icon {
  background: #71dd37;
}

/* Deal Activity Timeline (unified Activity & Comments Log) */

.deal-activity-timeline {
  padding-bottom: 0.5rem;
}

.deal-activity-item__marker {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Sidebar cards */

.lead-sidebar-card {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.dark-style .lead-sidebar-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(38, 43, 67, 0.08);
  background: #fafbfd;
}

.dark-style .lead-card-header {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-card-header__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(105, 108, 255, 0.1);
  color: #696cff;
  font-size: 1rem;
}

.lead-card-header__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3b4056;
}

.dark-style .lead-card-header__title {
  color: #d7d8ed;
}

.lead-card-header__action {
  border: 0;
  background: transparent;
  color: #8592a3;
  padding: 0.25rem;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}

.lead-card-header__action:hover {
  color: #696cff;
  text-decoration: none;
}

.lead-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lead-info-item__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8592a3;
}

.lead-info-item__value {
  font-size: 0.875rem;
  color: #3b4056;
  word-break: break-word;
}

.dark-style .lead-info-item__value {
  color: #d7d8ed;
}

.lead-info-item__value a {
  color: #696cff;
  text-decoration: none;
}

.lead-info-item__value a:hover {
  text-decoration: underline;
}

.lead-manager {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lead-manager__info {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-manager__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #3b4056;
  margin-bottom: 0.1rem;
}

.dark-style .lead-manager__name {
  color: #d7d8ed;
}

.lead-manager__role {
  font-size: 0.8125rem;
  color: #8592a3;
}

.lead-internal-note {
  font-size: 0.875rem;
  color: #6d788d;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  padding: 0.75rem;
  background: #fafbfd;
  border-radius: 0.5rem;
  border-left: 3px solid #ffab00;
}

.dark-style .lead-internal-note {
  background: rgba(255, 255, 255, 0.04);
}

.lead-empty-state {
  padding: 2rem;
}

.lead-empty-state.small {
  padding: 0;
  color: #8592a3;
}

.lead-empty-state i {
  opacity: 0.6;
}

/* Main card & tabs */

.lead-main-card {
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.dark-style .lead-main-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-tabs-header {
  padding: 1rem 1.25rem 0;
  border-bottom: 1px solid rgba(38, 43, 67, 0.08);
  background: #fafbfd;
}

.dark-style .lead-tabs-header {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-tabs-nav {
  gap: 0.5rem;
}

.lead-tabs-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6d788d;
  background: transparent;
  transition: all 0.15s;
}

.lead-tabs-nav .nav-link i {
  font-size: 1rem;
}

.lead-tabs-nav .nav-link:hover {
  color: #696cff;
  background: rgba(105, 108, 255, 0.06);
}

.lead-tabs-nav .nav-link.active {
  color: #696cff;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(38, 43, 67, 0.06);
}

.dark-style .lead-tabs-nav .nav-link.active {
  background: #30334e;
  color: #828dff;
}

.lead-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #696cff;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Quick actions */

.lead-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.lead-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(38, 43, 67, 0.08);
  background: #fff;
  color: #3b4056;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s;
}

.dark-style .lead-quick-action {
  background: #30334e;
  border-color: rgba(255, 255, 255, 0.08);
  color: #d7d8ed;
}

.lead-quick-action:hover {
  background: rgba(105, 108, 255, 0.08);
  border-color: rgba(105, 108, 255, 0.2);
  color: #696cff;
}

.lead-quick-action.active,
.lead-quick-action:focus {
  background: #696cff;
  border-color: #696cff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.35);
}

.lead-quick-action i {
  font-size: 1rem;
}

/* Pending task */

.lead-pending-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-radius: 0.625rem;
  margin-bottom: 1.25rem;
}

.lead-pending-task__content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.lead-pending-task__content i {
  font-size: 1.25rem;
  color: #ffab00;
  margin-top: 0.1rem;
}

/* Activity composer */

.lead-activity-form {
  background: #f8f9fb;
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.625rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.dark-style .lead-activity-form {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-activity-composer {
  display: flex;
  gap: 1rem;
}

.lead-activity-composer__body {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-activity-composer .form-check {
  padding-top: 0.6rem;
}

/* Timeline */

.lead-activity-timeline {
  position: relative;
}

.lead-activity-timeline .lead-activity-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.lead-activity-timeline .lead-activity-item::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  left: 1rem;
  width: 2px;
  height: calc(100% - 2.25rem);
  background: #e6e6e8;
}

.dark-style .lead-activity-timeline .lead-activity-item::before {
  background: rgba(255, 255, 255, 0.1);
}

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

.lead-activity-timeline .lead-activity-item:last-child::before {
  display: none;
}

.lead-activity-item__marker {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.lead-activity-item__body {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
}

.dark-style .lead-activity-item__body {
  background: #30334e;
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-activity-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lead-activity-item__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-activity-item__author {
  font-weight: 600;
  font-size: 0.875rem;
  color: #3b4056;
  margin-bottom: 0.2rem;
}

.dark-style .lead-activity-item__author {
  color: #d7d8ed;
}

.lead-activity-item__details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.lead-activity-item__content {
  font-size: 0.875rem;
  color: #6d788d;
  line-height: 1.6;
}

.lead-activity-item__content p {
  color: #3b4056;
}

.dark-style .lead-activity-item__content p {
  color: #d7d8ed;
}

.lead-activity-item__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Section titles */

.lead-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8592a3;
  margin-bottom: 1rem;
}

/* Documents tab */

.lead-documents-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(38, 43, 67, 0.08);
  border-radius: 0.625rem;
  background: #fff;
  transition: background-color 0.15s;
}

.dark-style .lead-document-item {
  background: #30334e;
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-document-item:hover {
  background: #fafbfd;
}

.dark-style .lead-document-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lead-document-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(105, 108, 255, 0.1);
  color: #696cff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lead-document-item__info {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-document-item__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #3b4056;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark-style .lead-document-item__name {
  color: #d7d8ed;
}

/* Floating action button */

.lead-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(105, 108, 255, 0.45);
  z-index: 999;
  padding: 0;
}

.lead-fab:hover {
  transform: scale(1.05);
}

/* Responsive */

@media (max-width: 991.98px) {
  .lead-record-header {
    flex-direction: column;
  }

  .lead-record-header__actions {
    width: 100%;
  }

  .lead-pipeline-steps {
    flex-wrap: wrap;
  }

  .lead-pipeline-step {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: auto;
  }

  .deal-pipeline-steps {
    flex-wrap: wrap;
  }

  .deal-pipeline-step {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: auto;
  }

  .lead-fab {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .lead-record-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-pipeline-step {
    flex: 1 1 100%;
  }

  .deal-pipeline-step {
    flex: 1 1 100%;
  }

  .lead-activity-composer {
    flex-direction: column;
  }
}
