/* Legacy admin form/table helpers — aligned with HRMS teal brand (see admin-assets :root) */

.container-fluid { width: 100%; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) {
    .container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.row { display: flex; flex-wrap: wrap; margin-left: -0.5rem; margin-right: -0.5rem; }
.row.g-2 > *, .row.g-3 > * { padding-left: 0.5rem; padding-right: 0.5rem; }
.row.g-3 { row-gap: 0.75rem; }

.col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-10 {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
@media (min-width: 768px) {
    .col-md-2 { width: 16.666667%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-5 { width: 41.666667%; }
    .col-md-6 { width: 50%; }
    .col-md-10 { width: 83.333333%; }
}

.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-muted { color: var(--hrms-muted, #64748b); }
.small { font-size: 0.875rem; }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.w-100 { width: 100%; }
.min-vh-100 { min-height: 100vh; }
.border-end { border-right: 1px solid var(--hrms-border, #e2e8f0); }
.h3 { font-size: 1.5rem; font-weight: 600; color: var(--hrms-text, #0f172a); }
.h4 { font-size: 1.25rem; font-weight: 600; color: var(--hrms-text, #0f172a); }
.fs-2 { font-size: 1.875rem; font-weight: 700; }

.card {
    border-radius: 1rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    background: #fff;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.04);
}
.card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.875rem 1.125rem;
    font-weight: 600;
    color: #134e4a;
    background: linear-gradient(to bottom, #f0fdfa, #fff);
}
.card-body { padding: 1.125rem; }
.card-footer {
    border-top: 1px solid #f1f5f9;
    padding: 0.875rem 1.125rem;
    background: #fafbfc;
}

.border-success { border-color: #6ee7b7; }
.border-danger { border-color: #fda4af; }
.border-warning { border-color: #fcd34d; }
.border-info { border-color: #7dd3fc; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-primary {
    background: linear-gradient(to bottom, #14b8a6, #0d9488);
    color: #fff;
    box-shadow: 0 1px 2px rgb(13 148 136 / 0.35);
}
.btn-primary:hover { background: linear-gradient(to bottom, #0d9488, #0f766e); }
.btn-secondary { background: #475569; color: #fff; }
.btn-success { background: #059669; color: #fff; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-outline-primary {
    border: 1px solid #5eead4;
    background: #fff;
    color: #0f766e;
}
.btn-outline-primary:hover { background: #f0fdfa; }
.btn-outline-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}
.btn-outline-danger {
    border: 1px solid #fda4af;
    background: #fff;
    color: #be123c;
}
.btn-outline-danger:hover { background: #fff1f2; }
.btn-outline-success {
    border: 1px solid #6ee7b7;
    background: #fff;
    color: #047857;
}
.btn-outline-success:hover { background: #ecfdf5; color: #065f46; }

/* Detail page header & action buttons */
.crm-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.crm-detail-header__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.crm-detail-header__meta {
    margin: 0.375rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.crm-detail-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
}

.crm-detail-actions form {
    display: inline-flex;
    margin: 0;
}

.crm-detail-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.625rem;
    white-space: nowrap;
    line-height: 1.2;
}

.crm-detail-actions .btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 2px 8px rgb(13 148 136 / 0.35);
}

.crm-detail-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 4px 12px rgb(13 148 136 / 0.4);
}

.crm-detail-actions .btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e2e8f0;
}

.nav-tabs .nav-item { margin-bottom: -1px; }

.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.625rem 0.625rem 0 0;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-tabs .nav-link:hover {
    color: #0f766e;
    background: #f0fdfa;
}

.nav-tabs .nav-link.active {
    color: #0f766e;
    background: #fff;
    border-color: #e2e8f0 #e2e8f0 #fff;
}

.alert {
    margin-bottom: 1rem;
    border-radius: 0.625rem;
    border: 1px solid;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}
.alert-success {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #115e59;
}
.alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}
.form-control,
.form-select {
    width: 100%;
    border-radius: 0.625rem;
    border: 1px solid #cbd5e1;
    background: #fafbfc;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--hrms-text, #0f172a);
}
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--hrms-focus, rgb(13 148 136 / 0.25));
    border-color: var(--hrms-brand, #0d9488);
    background: #fff;
}
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check-input { width: 1rem; height: 1rem; accent-color: var(--hrms-brand, #0d9488); }
.form-check-label { font-size: 0.875rem; color: #334155; }

.table { width: 100%; text-align: left; font-size: 0.875rem; color: #334155; border-collapse: collapse; }
.table thead {
    border-bottom: 2px solid #ccfbf1;
    background: linear-gradient(to bottom, #f0fdfa, #f8fafc);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f766e;
}
.table th, .table td { padding: 0.625rem 0.75rem; }
.table-striped tbody tr:nth-child(even) { background: rgb(240 253 250 / 0.5); }
.table tbody tr:hover { background: rgb(240 253 250 / 0.85); }
.table-responsive { overflow-x: auto; }

.list-group {
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid var(--hrms-border, #e2e8f0);
    background: #fff;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
}
.list-group-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background: #f0fdfa; }

.badge {
    display: inline-flex;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.bg-secondary { background: #e2e8f0; color: #1e293b; }
.bg-light { background: #f8fafc; color: #334155; }
.bg-success { background: #ccfbf1; color: #115e59; }
.bg-danger { background: #ffe4e6; color: #9f1239; }
.bg-warning { background: #fef3c7; color: #92400e; }
.bg-info { background: #e0f2fe; color: #075985; }
.bg-primary { background: #99f6e4; color: #134e4a; }

.modal.fade {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    background: rgb(12 18 34 / 0.55);
    backdrop-filter: blur(4px);
    padding: 1rem;
}
.modal.fade.show { display: flex; }
.modal-dialog { width: 100%; max-width: 32rem; }
.modal-content {
    overflow: hidden;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border: 1px solid rgb(204 251 241 / 0.5);
}
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 0.875rem 1.125rem; background: #f0fdfa; }
.modal-body { padding: 1.125rem; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #f1f5f9;
    padding: 0.875rem 1.125rem;
}
.modal-title { font-size: 1.125rem; font-weight: 600; color: #134e4a; }

.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.btn-close::before {
    content: '×';
}

.btn-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

table.dataTable thead th {
    border-bottom: 2px solid #ccfbf1;
    background: linear-gradient(to bottom, #f0fdfa, #f8fafc);
    color: #0f766e;
}

.dataTables_wrapper {
    padding: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.375rem !important;
    padding: 0.25rem 0.625rem !important;
    margin: 0 0.125rem !important;
    background: #fff !important;
    color: #334155 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.paginate_button.current {
    background: var(--hrms-brand, #0d9488) !important;
    border-color: var(--hrms-brand-dark, #0f766e) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f0fdfa !important;
    border-color: #99f6e4 !important;
    color: #0f766e !important;
}

.card > .dataTables_wrapper,
.card > .table-responsive > .dataTables_wrapper {
    padding: 0;
}

.card .dataTables_wrapper {
    padding: 1rem;
}

.card .table-responsive .dataTables_wrapper {
    min-width: 100%;
}

.dataTables_wrapper .dt-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dt-layout-row:last-child {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.dataTables_wrapper .dt-search label,
.dataTables_wrapper .dt-length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.dataTables_wrapper .dt-info {
    font-size: 0.875rem;
    color: #64748b;
}

.dataTables_wrapper table.dataTable {
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Admin sidebar */
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 4rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    flex-shrink: 0;
}

.admin-sidebar-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-sidebar-brand__logo--image {
    background: #fff;
    padding: 0.2rem;
}

.admin-sidebar-brand__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-sidebar-brand__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-brand__subtitle {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin: 0.125rem 0 0;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-sidebar-section {
    margin-top: 0.25rem;
}

.admin-sidebar-section--solo {
    margin-top: 0;
}

.admin-sidebar-section__title {
    margin: 0 0 0.375rem;
    padding: 0 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-sidebar-group {
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 0.02);
}

.admin-sidebar-group.is-open {
    background: rgb(255 255 255 / 0.04);
}

.admin-sidebar-group__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.6875rem 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-sidebar-group__toggle:hover {
    background: rgb(255 255 255 / 0.06);
    color: #fff;
}

.admin-sidebar-group__toggle.is-active {
    color: #fff;
}

.admin-sidebar-group__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #94a3b8;
}

.admin-sidebar-group.is-open .admin-sidebar-group__icon {
    color: #a5b4fc;
}

.admin-sidebar-group__icon svg,
.admin-sidebar-icon-svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    display: block !important;
    flex-shrink: 0;
}

.admin-sidebar-group__chevron svg,
.admin-sidebar-chevron-svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    display: block !important;
    flex-shrink: 0;
}

.admin-sidebar-link__icon svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    display: block !important;
}

.admin-sidebar-group__menu .admin-sidebar-link__icon svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
    max-width: 1.05rem !important;
    max-height: 1.05rem !important;
}

.admin-sidebar-group__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-group__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease, color 0.15s ease;
}

.admin-sidebar-group.is-open .admin-sidebar-group__chevron {
    transform: rotate(180deg);
    color: #a5b4fc;
}

.admin-sidebar-group__menu {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0 0.375rem 0.5rem 0.5rem;
    margin: 0 0 0.25rem;
    border-left: 1px solid rgb(148 163 184 / 0.18);
    margin-left: 1.35rem;
}

.admin-sidebar-group__menu[hidden] {
    display: none !important;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.125rem 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-sidebar-group__menu .admin-sidebar-link {
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.admin-sidebar-link:hover {
    background: rgb(255 255 255 / 0.06);
    color: #fff;
}

.admin-sidebar-group__menu .admin-sidebar-link:hover {
    color: #fff;
}

.admin-sidebar-link.is-active {
    background: rgb(99 102 241 / 0.18);
    color: #fff;
    box-shadow: inset 3px 0 0 #818cf8;
}

.admin-sidebar-group__menu .admin-sidebar-link.is-active {
    background: rgb(99 102 241 / 0.22);
    color: #fff;
}

.admin-sidebar-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.admin-sidebar-group__menu .admin-sidebar-link__icon {
    width: 1.05rem;
    height: 1.05rem;
    opacity: 0.7;
}

.admin-sidebar-link.is-active .admin-sidebar-link__icon {
    opacity: 1;
    color: #a5b4fc;
}

.admin-sidebar-link__label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.admin-layout-main {
    width: 100%;
}

.admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0.875rem 1rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    background: rgb(0 0 0 / 0.15);
    flex-shrink: 0;
}

.admin-sidebar-footer__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-sidebar-footer__name {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-footer__role {
    margin: 0.125rem 0 0;
    font-size: 0.6875rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.admin-sidebar-shell__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.admin-sidebar-shell__nav::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar-shell__nav::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}

[x-cloak] { display: none !important; }

.crm-brand-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.crm-brand-preview--logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.875rem;
}

.crm-brand-preview--favicon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
}

.crm-brand-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Lead stage roadmap — vertical timeline */
.crm-lead-roadmap {
    position: relative;
}

.crm-lead-roadmap__step {
    position: relative;
    display: flex;
    gap: 0.875rem;
    padding-bottom: 0.25rem;
}

.crm-lead-roadmap__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 1.25rem;
}

.crm-lead-roadmap__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    z-index: 1;
}

.crm-lead-roadmap__step--completed .crm-lead-roadmap__dot {
    border-color: #0d9488;
    background: #0d9488;
}

.crm-lead-roadmap__step--current .crm-lead-roadmap__dot {
    width: 0.875rem;
    height: 0.875rem;
    border-color: #0d9488;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(13 148 136 / 0.25);
}

.crm-lead-roadmap__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1rem;
    margin-left: 0;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1;
}

.crm-lead-roadmap__step--completed + .crm-lead-roadmap__arrow,
.crm-lead-roadmap__step--current + .crm-lead-roadmap__arrow {
    color: #0d9488;
}

.crm-lead-roadmap__content {
    flex: 1;
    min-width: 0;
    padding-bottom: 0.875rem;
}

.crm-lead-roadmap__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.3;
}

.crm-lead-roadmap__step--current .crm-lead-roadmap__label {
    color: #0f766e;
}

.crm-lead-roadmap__step--pending .crm-lead-roadmap__label {
    color: #94a3b8;
    font-weight: 600;
}

.crm-lead-roadmap__date {
    margin-top: 0.1875rem;
    font-size: 0.75rem;
    color: #64748b;
}

.crm-lead-roadmap__step--pending .crm-lead-roadmap__date {
    color: #cbd5e1;
}

.crm-lead-roadmap__badge {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    background: #ccfbf1;
    color: #0f766e;
}

.crm-lead-roadmap-card .card-body {
    max-height: 32rem;
    overflow-y: auto;
    scrollbar-width: thin;
}


/* Compact icon action buttons in table rows */
.crm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
    line-height: 1;
    vertical-align: middle;
}

.crm-action-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.crm-action-btn.disabled,
.crm-action-btn:disabled {
    opacity: 0.45;
    pointer-events: none;
}

td.text-end.text-nowrap .crm-action-btn,
td.text-end .crm-action-btn {
    margin-left: 0.25rem;
}

td.text-end.text-nowrap form.d-inline,
td.text-end form.d-inline {
    margin-left: 0.25rem;
}
