/* CRM Document Centre */

.crm-doc-wrap {
        background: #ffffff;
    }

    .crm-doc-summary {
        padding: 16px 18px;
        border: 1px solid #dbe7ea;
        border-radius: 16px;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
        margin-bottom: 18px;
    }

    .crm-doc-summary-top {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        align-items: center;
        margin-bottom: 10px;
    }

    .crm-doc-title {
        font-size: 16px;
        font-weight: 800;
        color: #36475B;
    }

    .crm-doc-subtitle {
        margin-top: 2px;
        font-size: 12px;
        color: #64748b;
    }

    .crm-doc-percent {
        color: #12aaa9;
        font-size: 20px;
        font-weight: 900;
        white-space: nowrap;
    }

    .crm-doc-progress {
        height: 8px;
        background: #e5e7eb;
        border-radius: 999px;
        overflow: hidden;
    }

    .crm-doc-progress-fill {
        height: 100%;
        width: {{ $percentage }}%;
        background: linear-gradient(90deg, #12aaa9, #0d8f8e);
    }

    .crm-doc-stats {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .crm-doc-stat {
        padding: 4px 9px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #475569;
    }

    .crm-doc-stat.uploaded {
        color: #15803d;
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .crm-doc-stat.missing {
        color: #b45309;
        background: #fffbeb;
        border-color: #fde68a;
    }

    .crm-doc-group {
        margin-top: 16px;
    }

    .crm-doc-group-heading {
        margin-bottom: 9px;
        padding-left: 10px;
        border-left: 4px solid #12aaa9;
        font-size: 13px;
        font-weight: 800;
        color: #36475B;
    }

    .crm-doc-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .crm-doc-card {
        min-height: 68px;
        padding: 10px 12px;
        border-radius: 13px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
        transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }

    .crm-doc-card:hover {
        border-color: #bfeaea;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
        transform: translateY(-1px);
    }

    .crm-doc-left {
        display: flex;
        gap: 10px;
        align-items: center;
        min-width: 0;
    }

    .crm-doc-file-icon {
        width: 26px;
        height: 26px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .crm-doc-name {
        font-size: 13px;
        font-weight: 800;
        color: #111827;
        word-break: break-word;
    }

    .crm-doc-file-name {
        margin-top: 1px;
        font-size: 11px;
        color: #64748b;
        word-break: break-word;
    }

    .crm-doc-badge {
        display: inline-flex;
        margin-top: 5px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 800;
    }

    .crm-doc-badge-uploaded {
        color: #15803d;
        background: #dcfce7;
        border: 1px solid #bbf7d0;
    }

    .crm-doc-badge-missing {
        color: #b45309;
        background: #fffbeb;
        border: 1px solid #fde68a;
    }

    .crm-doc-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    .crm-doc-action {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .crm-doc-action img {
        width: 17px;
        height: 17px;
    }

    .crm-doc-view {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
    }

    .crm-doc-download {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
    }

    .crm-doc-empty {
        border-style: dashed;
        background: #fbfdff;
    }

    .crm-doc-empty .crm-doc-file-icon {
        opacity: .55;
    }

    .crm-doc-footer {
        margin-top: 16px;
        padding: 10px 12px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #64748b;
        font-size: 11px;
        text-align: center;
    }

    @media (max-width: 980px) {
        .crm-doc-grid {
            grid-template-columns: 1fr;
        }

        .crm-doc-summary-top,
        .crm-doc-card {
            align-items: flex-start;
        }
    }

/* CRM Edit Student - Compliance Centre polish */

.crm-edit-compliance-centre {
    border-radius: 16px !important;
}

.crm-edit-compliance-centre .fi-section-header {
    padding-bottom: 10px !important;
}

.crm-edit-compliance-centre .fi-section-header-heading {
    color: var(--crm-heading, #36475B) !important;
    font-weight: 800 !important;
}

.crm-edit-compliance-centre .fi-section-header-description {
    color: var(--crm-text, #64748b) !important;
    font-size: 13px !important;
}

.crm-edit-doc-group {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035) !important;
}

.crm-edit-doc-group .fi-section-header {
    padding-bottom: 8px !important;
}

.crm-edit-doc-group .fi-section-header-heading {
    padding-left: 10px !important;
    border-left: 4px solid var(--crm-primary, #12aaa9) !important;
    color: var(--crm-heading, #36475B) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.crm-edit-doc-group .fi-section-header-description {
    font-size: 12px !important;
    color: var(--crm-text, #64748b) !important;
}

/* Compact FileUpload / Filepond styling inside edit compliance only */
.crm-edit-compliance-centre .filepond--root {
    margin-bottom: 0 !important;
    font-size: 13px !important;
}

.crm-edit-compliance-centre .filepond--panel-root {
    border-radius: 13px !important;
    background: #fbfdff !important;
    border: 1px dashed #cbd5e1 !important;
}

.crm-edit-compliance-centre .filepond--drop-label {
    min-height: 72px !important;
    color: #64748b !important;
}

.crm-edit-compliance-centre .filepond--drop-label label {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.crm-edit-compliance-centre .filepond--file {
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045) !important;
}

.crm-edit-compliance-centre .filepond--file-info-main {
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.crm-edit-compliance-centre .filepond--file-info-sub {
    color: #64748b !important;
    font-size: 11px !important;
}

.crm-edit-compliance-centre .filepond--file-action-button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
}

.crm-edit-compliance-centre .fi-fo-field-wrp-label label {
    color: #36475B !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.crm-edit-compliance-centre .fi-fo-field-wrp {
    gap: 6px !important;
}

@media (max-width: 980px) {
    .crm-edit-compliance-centre .fi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* CRM Notes & Activity lower panel */

.crm-notes-activity {
    margin-top: 8px !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.035) !important;
}

.crm-notes-activity .fi-section-header-heading {
    padding-left: 10px !important;
    border-left: 4px solid var(--crm-primary, #12aaa9) !important;
    color: var(--crm-heading, #36475B) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.crm-notes-activity .fi-section-header-description {
    color: var(--crm-text, #64748b) !important;
    font-size: 13px !important;
}

.crm-notes-activity textarea {
    min-height: 120px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
}

.crm-notes-activity .fi-fo-field-wrp-label label {
    color: var(--crm-heading, #36475B) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

/* Relation manager lower tabs / tables */

.fi-resource-relation-managers {
    margin-top: 16px !important;
}

.fi-tabs {
    border-radius: 14px !important;
}

.fi-tabs-item {
    font-weight: 700 !important;
}

.fi-ta {
    border-radius: 16px !important;
    overflow: visible !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.035) !important;
}

.fi-ta-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fi-ta-content {
    background: #ffffff !important;
}

@media (max-width: 980px) {
    .crm-notes-activity .fi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* CRM Edit Student - Emergency Contact and lower layout polish */

.crm-emergency-contact {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.035) !important;
}

.crm-emergency-contact .fi-section-header-heading {
    padding-left: 10px !important;
    border-left: 4px solid var(--crm-primary, #12aaa9) !important;
    color: var(--crm-heading, #36475B) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.crm-emergency-contact .fi-section-header-description {
    color: var(--crm-text, #64748b) !important;
    font-size: 13px !important;
}

.crm-emergency-contact .fi-fo-field-wrp-label label {
    color: var(--crm-heading, #36475B) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.crm-emergency-contact input {
    border-radius: 12px !important;
}

/* Tighten lower section alignment */
.crm-notes-activity {
    margin-top: 18px !important;
}

.fi-resource-relation-managers {
    margin-top: 12px !important;
}

.fi-tabs {
    margin-bottom: 0 !important;
}

.fi-ta {
    margin-top: 0 !important;
}

/* CRM Staff Compliance Page */

.crm-staff-page {
    max-width: 100%;
}

.crm-staff-selector {
    max-width: 680px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.035);
}

.crm-staff-selector label {
    display: block;
    margin-bottom: 8px;
    color: var(--crm-heading, #36475B);
    font-size: 13px;
    font-weight: 800;
}

.crm-staff-selector select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
}

.crm-staff-form .fi-section {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.035) !important;
}

.crm-staff-form .fi-section-header-heading {
    padding-left: 10px !important;
    border-left: 4px solid var(--crm-primary, #12aaa9) !important;
    color: var(--crm-heading, #36475B) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.crm-staff-form .fi-section-header-description {
    color: var(--crm-text, #64748b) !important;
    font-size: 13px !important;
}

.crm-staff-form .fi-fo-field-wrp-label label {
    color: var(--crm-heading, #36475B) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.crm-staff-form input,
.crm-staff-form textarea,
.crm-staff-form select {
    border-radius: 12px !important;
}

.crm-staff-compliance .filepond--root {
    margin-bottom: 0 !important;
    font-size: 13px !important;
}

.crm-staff-compliance .filepond--panel-root {
    border-radius: 13px !important;
    background: #fbfdff !important;
    border: 1px dashed #cbd5e1 !important;
}

.crm-staff-compliance .filepond--drop-label {
    min-height: 72px !important;
    color: #64748b !important;
}

.crm-staff-compliance .filepond--drop-label label {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.crm-staff-compliance .filepond--file {
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.045) !important;
}

.crm-staff-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.crm-staff-actions button {
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    background: var(--crm-primary, #12aaa9);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(18, 170, 169, 0.22);
}

.crm-staff-actions button:hover {
    background: var(--crm-primary-dark, #0d8f8e);
}

@media (max-width: 980px) {
    .crm-staff-form .fi-grid {
        grid-template-columns: 1fr !important;
    }

    .crm-staff-actions {
        justify-content: stretch;
    }

    .crm-staff-actions button {
        width: 100%;
    }
}

/* CRM Sidebar polish */

.fi-sidebar-nav {
    padding-top: 8px !important;
}

.fi-sidebar-item {
    margin-bottom: 4px !important;
}

.fi-sidebar-item a {
    min-height: 40px !important;
    border-radius: 10px !important;
    padding: 0 10px !important;
    column-gap: 8px !important;
}

.fi-sidebar-item-label {
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

.fi-sidebar-item-icon,
.fi-sidebar-item svg,
.fi-sidebar-item img {
    width: 18px !important;
    height: 18px !important;
}

.fi-sidebar-item a:hover {
    background: rgba(18, 170, 169, 0.08) !important;
}

.fi-sidebar-item-active a {
    background: rgba(18, 170, 169, 0.12) !important;
    border-left: 4px solid var(--crm-primary, #12aaa9) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-label {
    color: var(--crm-primary, #12aaa9) !important;
    font-weight: 700 !important;
}

.fi-sidebar-item-active svg,
.fi-sidebar-item-active img {
    color: var(--crm-primary, #12aaa9) !important;
}

/* CRM Users table inactive staff polish */

.fi-ta-row:has(span[style*="Inactive"]) {
    border-left: 4px solid #ef4444 !important;
}

.fi-ta-row:has(span[style*="Inactive"]):hover {
    background: #fff1f2 !important;
}

.fi-ta-row:has(span[style*="Inactive"]) img,
.fi-ta-row:has(span[style*="Inactive"]) .fi-avatar {
    opacity: .65;
}

/* CRM Platform List View v2 */

.crm-table-value {
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.crm-table-value-muted {
    color: #64748b;
    font-weight: 500;
}

.crm-table-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.crm-table-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
}

.fi-ta-row {
    min-height: 74px !important;
}

.fi-ta-cell {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.fi-ta-header-cell-label {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .035em !important;
}

.fi-ta-row:hover {
    background: #fafcfd !important;
}

/* ============================================
   CRM Platform List View v3
   Tighter premium table density
   ============================================ */

.fi-ta-row {
    min-height: 58px !important;
}

.fi-ta-cell {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.fi-ta-text-item {
    line-height: 1.3 !important;
}

/* Lead identity block */
.fi-ta-cell:first-child .fi-ta-text-item {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Quieter table headings */
.fi-ta-header-cell {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.fi-ta-header-cell-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase;
    color: #7a8699 !important;
}

/* Cleaner row separation */
.fi-ta-row {
    border-bottom-color: #edf1f5 !important;
}

.fi-ta-row:hover {
    background: #f8fafc !important;
}

/* Slightly smaller row action area */
.fi-ta-actions {
    gap: 4px !important;
}

.fi-ta-actions .fi-icon-btn {
    width: 30px !important;
    height: 30px !important;
}

/* Compact status treatment */
.crm-table-status {
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.crm-table-status-dot {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

/* Compact secondary values */
.crm-table-value {
    font-size: 11.5px;
    line-height: 1.3;
}

/* Remove excessive vertical whitespace in empty descriptions */
.fi-ta-text-description:empty {
    display: none !important;
}

/* ============================================
   CRM Platform List View v3
   Tighter premium table density
   ============================================ */

.fi-ta-row {
    min-height: 58px !important;
}

.fi-ta-cell {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.fi-ta-text-item {
    line-height: 1.3 !important;
}

/* Lead identity block */
.fi-ta-cell:first-child .fi-ta-text-item {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Quieter table headings */
.fi-ta-header-cell {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.fi-ta-header-cell-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase;
    color: #7a8699 !important;
}

/* Cleaner row separation */
.fi-ta-row {
    border-bottom-color: #edf1f5 !important;
}

.fi-ta-row:hover {
    background: #f8fafc !important;
}

/* Slightly smaller row action area */
.fi-ta-actions {
    gap: 4px !important;
}

.fi-ta-actions .fi-icon-btn {
    width: 30px !important;
    height: 30px !important;
}

/* Compact status treatment */
.crm-table-status {
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
}

.crm-table-status-dot {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

/* Compact secondary values */
.crm-table-value {
    font-size: 11.5px;
    line-height: 1.3;
}

/* Remove excessive vertical whitespace in empty descriptions */
.fi-ta-text-description:empty {
    display: none !important;
}

/* CRM Platform Lead identity */

.crm-lead-cell {
    display: flex;
    align-items: stretch;
    margin: -8px -14px;
    white-space: nowrap;
}

.crm-lead-status-bar {
    width: 3px;
    flex-shrink: 0;
}

.crm-lead-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.crm-lead-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: -.01em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .07);
}

.crm-lead-details {
    min-width: 0;
}

.crm-lead-name {
    color: #142033;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.crm-lead-phone {
    margin-top: 2px;
    color: #748094;
    font-size: 11px;
    line-height: 1.2;
}

/* ============================================
   CRM Platform - Premium Table Polish
   ============================================ */

/* Slightly quieter table headers */
.fi-ta-header-cell-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    color: #8b95a7 !important;
}

/* Give the Lead identity a little more breathing room */
.crm-lead-identity {
    gap: 12px !important;
}

/* Improve name typography */
.crm-lead-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #162235 !important;
    letter-spacing: -.01em;
}

/* Softer secondary text */
.crm-lead-phone {
    font-size: 11.5px !important;
    color: #7b8797 !important;
}

/* Consistent muted values */
.crm-table-value,
.crm-table-value-muted {
    font-size: 12px !important;
    color: #6f7c8f !important;
}

/* Owner and Lead Generator */
.fi-ta-cell:nth-child(4),
.fi-ta-cell:nth-child(6) {
    font-size: 12px !important;
    color: #3d4a5c !important;
}

/* Appointment */
.fi-ta-cell:nth-child(7) {
    font-weight: 600;
    color: #334155;
}

/* Slightly softer hover */
.fi-ta-row:hover {
    background: #fbfcfd !important;
}

/* ============================================
   CRM Platform Record Header
   ============================================ */

.crm-record-heading {
    color: #142033;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.crm-record-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #748094;
    font-size: 13px;
    line-height: 1.5;
}

.crm-record-meta-primary {
    color: #334155;
    font-weight: 600;
}

.crm-record-meta-divider {
    margin: 0 3px;
    color: #c7ced8;
}

.crm-record-meta-label {
    color: #8a94a6;
}

.crm-record-meta-value {
    color: #3d4a5c;
    font-weight: 600;
}

@media (max-width: 768px) {
    .crm-record-heading {
        font-size: 23px;
    }

    .crm-record-meta {
        font-size: 12px;
    }

    .crm-record-meta-divider {
        margin: 0 1px;
    }
}

/* ============================================
   CRM Platform Record View
   ============================================ */

.crm-record-section {
    overflow: hidden;
    border: 1px solid #e7ebf0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025) !important;
}

.crm-record-section > div {
    background: transparent !important;
}

.crm-record-section .fi-section-header {
    padding: 20px 22px 14px !important;
}

.crm-record-section .fi-section-content {
    padding: 6px 22px 22px !important;
}

.crm-record-section .fi-section-header-heading {
    color: #1d2939 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

.crm-record-section .fi-section-header-description {
    margin-top: 3px !important;
    color: #8a94a6 !important;
    font-size: 12px !important;
    line-height: 1.45;
}

.crm-record-section .fi-in-entry-wrp-label {
    color: #8a94a6 !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.crm-record-section .fi-in-entry-wrp-state {
    margin-top: 4px !important;
    color: #253247 !important;
    font-size: 13px !important;
    font-weight: 550 !important;
    line-height: 1.5;
}

.crm-record-summary {
    background: #fbfcfd !important;
}

.crm-record-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #253247;
    font-size: 13px;
    font-weight: 650;
}

.crm-record-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
}

.crm-record-notes .fi-in-entry-wrp-state {
    color: #465366 !important;
    font-weight: 450 !important;
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .crm-record-section .fi-section-header {
        padding: 17px 17px 12px !important;
    }

    .crm-record-section .fi-section-content {
        padding: 4px 17px 18px !important;
    }
}

/* ============================================
   CRM Platform Customer Profile Polish
   ============================================ */

/* More compact section headers */
.crm-record-section .fi-section-header {
    padding: 19px 27px 12px !important;
}

.crm-record-section .fi-section-content {
    padding: 8px 27px 25px !important;
}

.crm-record-section .fi-section-header-heading {
    color: #243247 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Value first, quiet caption underneath */
.crm-record-section .fi-in-entry-wrp {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
}

.crm-record-section .fi-in-entry-wrp-state {
    order: 1;
    margin-top: 0 !important;
    color: #243247 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.crm-record-section .fi-in-entry-wrp-label {
    order: 2;
    margin-top: 5px !important;
    color: #929cad !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    letter-spacing: .065em !important;
    text-transform: uppercase;
}

/* More breathing room between profile fields */
.crm-record-section .fi-sc-grid {
    row-gap: 25px !important;
}

/* Contact details card */
.crm-record-section-main {
    background: #ffffff !important;
}

/* Give the principal identity fields extra emphasis */
.crm-record-section-main .fi-in-entry-wrp-state {
    font-size: 14.5px !important;
}

/* Lead summary as a quiet profile panel */
.crm-record-summary {
    background: #fbfcfe !important;
}

.crm-record-summary .fi-section-content {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

.crm-record-summary .fi-in-entry-wrp-state {
    color: #27364a !important;
    font-size: 14px !important;
    font-weight: 650 !important;
}

.crm-record-summary .fi-in-entry-wrp-label {
    color: #98a2b2 !important;
}

/* Keep status dot and text aligned */
.crm-record-summary .crm-record-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #27364a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Softer card borders and shadows */
.crm-record-section {
    border-color: #e3e8ef !important;
    border-radius: 15px !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .025),
        0 8px 24px rgba(15, 23, 42, .018) !important;
}

/* Refine primary record action */
.fi-header-actions .fi-btn {
    min-height: 42px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .07) !important;
}

/* Notes remain natural reading text */
.crm-record-notes .fi-in-entry-wrp-state {
    color: #465469 !important;
    font-size: 13.5px !important;
    font-weight: 450 !important;
    line-height: 1.75 !important;
}

@media (max-width: 768px) {
    .crm-record-section .fi-section-header {
        padding: 17px 18px 10px !important;
    }

    .crm-record-section .fi-section-content {
        padding: 7px 18px 20px !important;
    }

    .crm-record-section .fi-sc-grid {
        row-gap: 20px !important;
    }
}

/* ============================================
   CRM Profile Entry - reliable Filament 5 styling
   ============================================ */

.crm-profile-entry {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
}

/* Filament entry label */
.crm-profile-entry > div:first-child {
    order: 2 !important;
    margin-top: 5px !important;
    color: #929cad !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    letter-spacing: .065em !important;
    text-transform: uppercase !important;
}

/* Filament entry value */
.crm-profile-entry > div:last-child {
    order: 1 !important;
    margin-top: 0 !important;
    color: #243247 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

/* Ensure nested value text inherits correctly */
.crm-profile-entry > div:last-child,
.crm-profile-entry > div:last-child * {
    color: inherit;
}

/* Summary card values slightly stronger */
.crm-record-summary .crm-profile-entry > div:last-child {
    color: #27364a !important;
    font-weight: 650 !important;
}

/* Preserve status dot colour */
.crm-record-summary .crm-record-status-dot {
    color: initial !important;
}

/* Natural styling for longer notes */
.crm-record-notes .crm-profile-entry > div:last-child {
    color: #465469 !important;
    font-size: 13.5px !important;
    font-weight: 450 !important;
    line-height: 1.75 !important;
    white-space: pre-line;
}

/* ============================================
   CRM Platform Corporate Profile
   Replaces value-first / notepad appearance
   ============================================ */

/* Restore conventional corporate hierarchy */
.crm-profile-entry {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0;
    padding: 13px 15px !important;
    border: 1px solid #e7ebf0 !important;
    border-radius: 10px !important;
    background: #f9fafc !important;
}

/* Label above value */
.crm-profile-entry > div:first-child {
    order: 1 !important;
    margin: 0 !important;
    color: #7b8798 !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    letter-spacing: .035em !important;
    text-transform: none !important;
}

/* Value beneath label */
.crm-profile-entry > div:last-child {
    order: 2 !important;
    margin: 0 !important;
    color: #1f2d3d !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

/* Ensure nested value content follows the same style */
.crm-profile-entry > div:last-child,
.crm-profile-entry > div:last-child * {
    color: inherit;
}

/* Better grid spacing */
.crm-record-section .fi-sc-grid {
    gap: 14px !important;
}

/* Contact card */
.crm-record-section-main .crm-profile-entry {
    min-height: 72px;
}

/* Summary card: slightly more refined */
.crm-record-summary {
    background: #ffffff !important;
}

.crm-record-summary .crm-profile-entry {
    min-height: auto;
    padding: 12px 14px !important;
    background: #f8fafc !important;
}

.crm-record-summary .crm-profile-entry > div:last-child {
    color: #243247 !important;
    font-weight: 650 !important;
}

/* Status stays visually distinct */
.crm-record-summary .crm-record-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #243247 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.crm-record-summary .crm-record-status-dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
}

/* Cleaner card structure */
.crm-record-section {
    border: 1px solid #dfe5ec !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .025),
        0 10px 28px rgba(15, 23, 42, .025) !important;
}

.crm-record-section .fi-section-header {
    padding: 19px 22px 15px !important;
    border-bottom: 1px solid #edf0f4 !important;
}

.crm-record-section .fi-section-content {
    padding: 20px 22px 22px !important;
}

.crm-record-section .fi-section-header-heading {
    color: #1d2939 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
}

/* Notes should remain readable rather than tile-like */
.crm-record-notes .crm-profile-entry {
    background: #ffffff !important;
    min-height: auto;
}

.crm-record-notes .crm-profile-entry > div:last-child {
    color: #465469 !important;
    font-size: 13.5px !important;
    font-weight: 450 !important;
    line-height: 1.7 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .crm-profile-entry {
        padding: 12px 13px !important;
    }

    .crm-record-section .fi-section-header {
        padding: 16px 17px 13px !important;
    }

    .crm-record-section .fi-section-content {
        padding: 16px 17px 18px !important;
    }
}

/* ============================================
   CRM Platform Student List v2
   ============================================ */

.crm-student-cell {
    display: flex;
    align-items: stretch;
    margin: -8px -14px;
    white-space: nowrap;
}

.crm-student-status-bar {
    width: 3px;
    flex-shrink: 0;
}

.crm-student-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

.crm-student-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: -.01em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .07);
}

.crm-student-details {
    min-width: 0;
}

.crm-student-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-student-name {
    color: #162235;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.crm-student-email {
    margin-top: 2px;
    color: #7b8797;
    font-size: 11.5px;
    line-height: 1.2;
}

.crm-student-inline-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.crm-student-inline-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
}

.crm-student-table-value {
    color: #3d4a5c;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.crm-student-table-muted {
    color: #6f7c8f;
}

.crm-student-payment-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.crm-student-payment-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
}

.crm-student-owner {
    color: #3d4a5c;
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
}

/* Keep compliance indicators compact */
.fi-ta-cell .fi-icon {
    width: 17px !important;
    height: 17px !important;
}

/* Student list density */
.fi-ta-row {
    min-height: 58px !important;
}

.fi-ta-cell {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* ============================================
   CRM Platform Grouped Compliance
   ============================================ */

.crm-compliance-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.crm-compliance-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
}

.crm-compliance-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.crm-compliance-item.is-complete {
    color: #15803d;
}

.crm-compliance-item.is-missing {
    color: #dc2626;
}

.crm-compliance-label {
    color: #64748b;
}

@media (max-width: 1100px) {
    .crm-compliance-label {
        display: none;
    }

    .crm-compliance-summary {
        gap: 6px;
    }
}

/* ============================================
   CRM Platform Compact Compliance Checks
   ============================================ */

.crm-compliance-summary {
    gap: 8px !important;
}

.crm-compliance-label {
    display: none !important;
}

.crm-compliance-item {
    gap: 0 !important;
}

.crm-compliance-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    font-size: 11px !important;
    background: #ffffff !important;
}

.crm-compliance-item.is-complete .crm-compliance-icon {
    color: #15803d !important;
    border-color: #15803d !important;
}

.crm-compliance-item.is-missing .crm-compliance-icon {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}
/* =========================
   Column manager dropdown
   ========================= */
.fi-dropdown-panel.fi-width-xs {
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.fi-ta-col-manager {
    max-height: calc(70vh - 60px) !important;
    overflow-y: auto !important;
}