/* Admin list pages — Team & Customers */

.al-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 12px 2rem;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* SuperAdmin FAPs list needs more room for action controls */
.al-page--faps {
    max-width: 1400px;
}

/* Customers list */
.al-page--customers {
    max-width: 1120px;
}

.al-page--customers .al-card {
    overflow: visible;
}

.al-page--customers .al-table-wrap {
    overflow: visible;
}

.al-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.al-page-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
}

.al-page-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.5;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

.al-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.al-btn-outline {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.al-btn-outline:hover {
    background: #f9fafb;
    color: #111827;
}

.al-btn-teal {
    background: #3FD6D4;
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.al-btn-teal:hover {
    background: #35c4c2;
    color: #111827;
}

.al-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.al-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.al-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.al-search-wrap {
    position: relative;
    min-width: 220px;
    flex: 1;
    max-width: 320px;
}

.al-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.al-search-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 12px 9px 36px;
    font-size: 14px;
    color: #111827;
    background: #fff;
}

.al-search-input:focus {
    outline: none;
    border-color: #3FD6D4;
    box-shadow: 0 0 0 3px rgba(63, 214, 212, 0.15);
}

.al-filter-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 32px 9px 12px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    min-width: 130px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.al-count {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.al-table-wrap {
    overflow-x: visible;
}

.al-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Admin: 7 columns */
.al-table--admin .al-col-name { width: 14%; }
.al-table--admin .al-col-mobile { width: 10%; }
.al-table--admin .al-col-email { width: 18%; }
.al-table--admin .al-col-company { width: 12%; }
.al-table--admin .al-col-role { width: 13%; }
.al-table--admin .al-col-status { width: 10%; }
.al-table--admin .al-col-actions { width: 23%; }

/* Company team: 6 columns */
.al-table:not(.al-table--admin) .al-col-name { width: 18%; }
.al-table:not(.al-table--admin) .al-col-mobile { width: 12%; }
.al-table:not(.al-table--admin) .al-col-email { width: 24%; }
.al-table:not(.al-table--admin) .al-col-role { width: 15%; }
.al-table:not(.al-table--admin) .al-col-status { width: 11%; }
.al-table:not(.al-table--admin) .al-col-actions { width: 20%; }

.al-table thead th {
    padding: 0.75rem 1.25rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.al-table tbody td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
    font-size: 14px;
    color: #374151;
    overflow: hidden;
}

.al-table tbody td.al-col-actions {
    overflow: visible;
}

.al-table thead th.al-col-status,
.al-table tbody td.al-col-status {
    overflow: hidden;
}

.al-table thead th.al-col-actions,
.al-table tbody td.al-col-actions {
    white-space: nowrap;
    text-align: right;
    padding-right: 1.5rem;
    padding-left: 1rem;
}

.al-table tbody tr:last-child td {
    border-bottom: none;
}

.al-table tbody tr:hover {
    background: #fafbfc;
}

.al-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.al-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.al-avatar-teal {
    background: #3FD6D4;
    color: #0f172a;
}

.al-avatar-navy {
    background: #262646;
}

.al-avatar-slate {
    background: #64748b;
}

.al-avatar-blue {
    background: #60a5fa;
    color: #0f172a;
}

.al-person-name {
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

a.al-person-name-link,
button.al-person-name-link {
    text-decoration: none;
}

button.al-person-name-link {
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    max-width: 100%;
}

a.al-person-name-link:hover,
button.al-person-name-link:hover {
    color: #3FD6D4;
    text-decoration: underline;
}

.al-contact-text {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.al-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.al-role-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 100%;
}

.al-role-stack .al-role-badge {
    max-width: 100%;
}

.al-role-admin {
    background: #e8fbfb;
    color: #0f766e;
}

.al-role-adviser {
    background: #262646;
    color: #fff;
}

.al-role-default {
    background: #f3f4f6;
    color: #374151;
}

.al-role-co {
    background: #ede9fe;
    color: #5b21b6;
}

.al-role-co-external {
    background: #f3e8ff;
    color: #7c3aed;
}

.al-avatar-co {
    background: #7c3aed;
    color: #fff;
}

.al-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
}

.al-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.al-status-active {
    color: #0f766e;
}

.al-status-active .al-status-dot {
    background: #14b8a6;
}

.al-status-inactive {
    color: #6b7280;
}

.al-status-inactive .al-status-dot {
    background: #9ca3af;
}

.al-adviser-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.al-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
    background: inherit;
}

.al-btn-more {
    background: transparent;
    border: none;
    color: #6b7280;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.al-btn-more:hover,
.al-btn-more[aria-expanded="true"] {
    background: #f3f4f6;
    color: #111827;
}

.al-actions-dropdown {
    min-width: 190px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 1050;
}

.al-actions-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.al-actions-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.al-actions-dropdown .dropdown-item:hover,
.al-actions-dropdown .dropdown-item:focus {
    background: #f8fafc;
    color: #111827;
}

.al-actions-dropdown .dropdown-item.text-danger,
.al-actions-dropdown .dropdown-item.text-danger i {
    color: #ef4444;
}

.al-actions-dropdown .dropdown-item.text-danger:hover,
.al-actions-dropdown .dropdown-item.text-danger:focus {
    background: #fef2f2;
    color: #dc2626;
}

.al-actions-dropdown .dropdown-item:disabled,
.al-actions-dropdown .dropdown-item.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.al-actions-dropdown .dropdown-divider {
    margin: 4px 0;
}

.al-actions-edit-slot {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 92px;
    flex-shrink: 0;
}

.al-btn-view {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.al-btn-view:hover {
    background: #f9fafb;
    color: #111827;
}

/* Customers list: 5 columns */
.al-table--customers .al-col-name { width: 22%; }
.al-table--customers .al-col-email { width: 28%; }
.al-table--customers .al-col-adviser { width: 22%; }
.al-table--customers .al-col-status { width: 16%; }
.al-table--customers .al-col-actions { width: 12%; }

.al-table--customers tbody tr {
    position: relative;
}

.al-table--customers tbody tr:hover,
.al-table--customers tbody tr:focus-within {
    z-index: 2;
}

.al-btn-change {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.al-btn-change:hover {
    background: #f9fafb;
    color: #111827;
}

.al-btn-icon {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 4px 6px;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
}

.al-btn-icon:hover {
    color: #ef4444;
}

.al-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.al-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.al-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: 0.2s;
}

.al-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 999px;
    transition: 0.2s;
}

.al-toggle input:checked + .al-toggle-slider {
    background: #3FD6D4;
}

.al-toggle input:checked + .al-toggle-slider:before {
    transform: translateX(18px);
}

.al-toggle input:disabled + .al-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.al-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    min-width: 0;
}

.al-page-info {
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}

.al-pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
}

.al-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 32px;
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
    user-select: none;
}

.al-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.al-page-btn:hover:not(:disabled) {
    background: #f9fafb;
}

.al-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.al-page-btn.active {
    background: #262646;
    border-color: #262646;
    color: #fff;
}

.al-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.al-loading {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #6b7280;
}

.al-table-wrap--searching {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* FAPs / Company list */

.al-page--faps .al-card {
    overflow: visible;
}

.al-page--faps .al-table-wrap {
    overflow-x: auto;
}

.al-table--faps {
    min-width: 1100px;
}

.al-table--faps .al-col-company { width: 20%; }
.al-table--faps .al-col-count { width: 8%; }
.al-table--faps .al-col-subscription { width: 16%; }
.al-table--faps .al-col-status { width: 10%; }
.al-table--faps .al-col-actions { width: 38%; }

.al-table--faps thead th.al-col-actions,
.al-table--faps tbody td.al-col-actions {
    min-width: 320px;
    padding-right: 1.75rem;
}

.al-avatar-square {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.al-avatar-square-1 { background: #262646; }
.al-avatar-square-2 { background: #111827; }
.al-avatar-square-3 { background: #dc2626; }
.al-avatar-square-4 { background: #7c3aed; }
.al-avatar-square-5 { background: #0d9488; }
.al-avatar-square-6 { background: #2563eb; }

.al-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.al-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.al-sub-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.al-sub-pill-dot.manual { background: #3b82f6; }
.al-sub-pill-dot.stripe { background: #9ca3af; }
.al-sub-pill-dot.cancelled { background: #ef4444; }

.al-sub-select {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 28px 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background-color: #f9fafb;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    max-width: 100%;
    cursor: pointer;
}

.al-sub-select.manual {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.al-sub-select.stripe {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #4b5563;
}

.al-sub-select.cancelled {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.al-sub-select:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.al-footer-showing {
    font-size: 13px;
    color: #6b7280;
}

.al-per-page {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #6b7280;
    margin-left: 0.75rem;
}

.al-per-page-select {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 28px 5px 10px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.al-seat-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.al-seat-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.al-seat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #262646;
    color: #fff;
}

.al-seat-modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.al-seat-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.al-seat-modal-body {
    padding: 1.25rem 1.5rem 0.5rem;
}

.al-seat-modal-company {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.al-seat-field {
    margin-bottom: 1.25rem;
}

.al-seat-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.al-seat-stepper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.al-seat-stepper-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.al-seat-stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.al-seat-stepper-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    min-width: 1.5rem;
    text-align: center;
}

.al-seat-stepper-unit {
    font-size: 13px;
    color: #9ca3af;
}

.al-seat-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #f3f4f6;
}

@media (max-width: 768px) {
    .al-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .al-table {
        table-layout: auto;
        min-width: 720px;
    }

    .al-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .al-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .al-search-wrap {
        max-width: none;
    }

    .al-count {
        text-align: right;
    }

    .al-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Admin form modals — Add admin / Add adviser */

.admin-modal-content {
    border: 2px solid #3fd6d4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #262646;
    color: #fff;
}

.admin-modal-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: normal !important;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    line-height: 1.25 !important;
}

.admin-modal-title i {
    font-size: 15px;
    opacity: 0.95;
}

.admin-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    opacity: 1;
    padding: 0.15rem;
    cursor: pointer;
}

.admin-modal-close:hover {
    opacity: 1;
    color: #fff;
    background: transparent;
}

.admin-modal-body {
    padding: 1.25rem 1.5rem 0.5rem;
    background: #fff;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.25rem;
    background: #fff;
    border-top: 1px solid #f3f4f6;
}

.admin-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9ca3af;
}

.admin-form-input,
.admin-form-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    font-family: inherit;
}

.admin-form-input::placeholder {
    color: #9ca3af;
}

.admin-form-input:focus,
.admin-form-select:focus {
    outline: none;
    border-color: #3FD6D4;
    box-shadow: 0 0 0 3px rgba(63, 214, 212, 0.15);
}

.admin-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.admin-form-field {
    margin-bottom: 0.5rem;
}

.admin-modal-body .row.g-2 > .admin-form-field {
    margin-bottom: 0;
}

.admin-form-ack {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.5rem 0 1rem;
    text-transform: none;
}

.admin-form-ack input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #3FD6D4;
}

.admin-form-ack label {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.admin-form-error {
    margin: 0 0 0.75rem;
    font-size: 13px;
    color: #ef4444;
}

.admin-btn-cancel {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
}

.admin-btn-cancel:hover {
    background: #f9fafb;
}

.admin-btn-primary {
    background: #3FD6D4;
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
}

.admin-btn-primary:hover:not(:disabled) {
    background: #35c4c2;
}

.admin-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Compliance Officer invite modal — use system navy (#262646) like other admin modals */

.admin-modal-content .admin-modal-body {
    color: #111827;
}

.co-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.admin-modal-content .co-type-toggle-btn {
    border: none;
    background: #fff !important;
    color: #262646 !important;
    -webkit-text-fill-color: #262646;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: none;
}

.admin-modal-content .co-type-toggle-btn:hover:not(.active) {
    background: #f3f4f6 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

.admin-modal-content .co-type-toggle-btn.active {
    background: #262646 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.admin-modal-content .co-type-toggle-btn:focus,
.admin-modal-content .co-type-toggle-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #3fd6d4;
    z-index: 1;
}

.admin-modal-content .admin-form-select {
    color: #111827;
}

.admin-modal-content .admin-form-input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.co-external-panel {
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 14px;
    background: #fafafa;
}

.co-external-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.co-adviser-scope-panel {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    max-height: 180px;
    overflow-y: auto;
}

.co-adviser-scope-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.co-adviser-scope-empty {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.co-adviser-scope-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.co-adviser-scope-item:last-child {
    margin-bottom: 0;
}

.co-adviser-scope-item input {
    margin-top: 2px;
    accent-color: #3FD6D4;
}

.co-adviser-scope-email {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

/* Company Settings page — same font stack as Team/Customers */
.settings-page,
.settings-page h1,
.settings-page p,
.settings-page label,
.settings-page input,
.settings-page button {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

.settings-page-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
}

.settings-page-subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.55;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

.settings-card-header {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    letter-spacing: 0.07em !important;
}

.settings-label {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    letter-spacing: 0.05em !important;
}

.security-subtitle {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    letter-spacing: 0 !important;
}

/* FAP Leads — Bluemint SuperAdmin */

.al-page--fap-leads {
    max-width: 1400px;
}

.fap-tabs {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
}

.fap-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.15rem;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.fap-tab:hover {
    color: #111827;
    text-decoration: none;
}

.fap-tab.active {
    color: #111827;
    border-bottom-color: #111827;
}

.fap-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.fap-tab.active .fap-tab-badge {
    background: #111827;
    color: #fff;
}

.al-table--fap-leads {
    min-width: 980px;
}

.al-table--fap-leads .al-col-company { width: 28%; }
.al-table--fap-leads .al-col-stage { width: 13%; }
.al-table--fap-leads .al-col-note { width: 28%; }
.al-table--fap-leads .al-col-tasks { width: 10%; }
.al-table--fap-leads .al-col-added { width: 9%; }
.al-table--fap-leads .al-col-actions { width: 12%; }

.fap-lead-company-cell {
    align-items: flex-start;
}

.fap-lead-company-cell .al-name-cell {
    flex-direction: row;
}

.fap-lead-company-cell span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.al-page--fap-leads .al-card {
    overflow: visible;
}

.al-table--fap-leads tbody td.al-col-stage {
    overflow: visible;
}

.fap-stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fap-stage-picker {
    position: relative;
    display: inline-block;
}

button.fap-stage-select {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    padding-right: 1.45rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.2 1.3L6 6.1l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.6rem;
}

button.fap-stage-select:disabled {
    cursor: wait;
    opacity: 0.7;
}

button.fap-stage-select:focus {
    outline: 2px solid rgba(63, 214, 212, 0.45);
    outline-offset: 2px;
}

.fap-stage-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1059;
}

.fap-stage-menu {
    position: fixed;
    z-index: 1060;
    min-width: 148px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    visibility: hidden;
}

.fap-stage-menu.is-positioned {
    visibility: visible;
}

.fap-stage-menu-item {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.fap-stage-menu-item:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.fap-stage-menu-item.selected {
    background: #3fd6d4;
    color: #111827;
}

.fap-stage-badge.stage-new {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.fap-stage-badge.stage-contacted {
    background-color: #ffedd5;
    color: #c2410c;
}

.fap-stage-badge.stage-testing {
    background-color: #ede9fe;
    color: #6d28d9;
}

.fap-stage-badge.stage-stalled {
    background-color: #f3f4f6;
    color: #4b5563;
}

.fap-stage-badge.stage-default {
    background-color: #f3f4f6;
    color: #374151;
}

.fap-latest-note {
    display: block;
    color: #6b7280;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fap-note-view-link {
    background: none;
    border: none;
    padding: 0;
    color: #3fd6d4;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .fap-note-view-link:hover {
        color: #3fd6d4;
    }

.fap-task-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.fap-task-count.muted {
    color: #9ca3af;
}

.fap-btn-convert {
    background: #fff;
    color: #0f766e;
    border: 1px solid #3fd6d4;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fap-btn-convert:hover {
    background: #f0fdfa;
}

.al-page-header--embedded {
    margin-bottom: 0.75rem;
    min-height: 0;
}

.fap-lead-notes-modal {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 2rem);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.fap-lead-notes-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #262646;
}

.fap-lead-notes-modal-title {
    margin: 0;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.fap-lead-notes-modal-subtitle {
    margin: 0.15rem 0 0;
    font-family: inherit;
    font-size: 13px;
    color: #fff;
}

.fap-lead-modal-close--light {
    color: #6b7280;
}

.fap-lead-notes-modal-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.fap-lead-notes-empty {
    color: #9ca3af;
    font-size: 14px;
    padding: 0.5rem 0;
}

.fap-lead-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fap-lead-modal {
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 2rem);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.fap-lead-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #262646;
    color: #fff;
}

.fap-lead-modal-header-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.fap-lead-modal-avatar.al-avatar-square {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.fap-lead-modal-title {
    margin: 0;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.fap-lead-modal-subtitle {
    margin: 0.2rem 0 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: #cbd5e1;
}

.fap-lead-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.fap-lead-convert-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.25rem;
    background: #ecfdf5;
    border-bottom: 1px solid #d1fae5;
}

.fap-lead-convert-copy {
    flex: 1;
    min-width: 200px;
}

.fap-lead-convert-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.fap-lead-convert-email {
    min-width: 220px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}

.fap-lead-convert-bar strong {
    display: block;
    color: #047857;
    font-size: 14px;
}

.fap-lead-convert-bar p {
    margin: 0.15rem 0 0;
    color: #065f46;
    font-size: 13px;
}

.fap-lead-convert-btn {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.fap-lead-convert-btn:hover:not(:disabled) {
    background: #059669;
}

.fap-lead-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fap-lead-modal-tabs {
    display: flex;
    gap: 1.25rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.fap-lead-modal-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.85rem 0.1rem;
    color: #6b7280;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.fap-lead-modal-tab.active {
    color: #111827;
    border-bottom-color: #111827;
}

.fap-lead-modal-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.fap-lead-compose-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fap-lead-task-compose {
    flex-wrap: wrap;
}

.fap-lead-compose-input {
    flex: 1;
    min-width: 180px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 14px;
}

.fap-lead-date-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-size: 14px;
    color: #374151;
}

.fap-lead-compose-btn {
    background: #262646;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 13px;
    font-weight: 600;
}

.fap-lead-compose-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fap-lead-notes-list {
    display: flex;
    flex-direction: column;
}

.fap-lead-note {
    padding: 0.85rem 0;
    border-top: 1px solid #f1f5f9;
}

.fap-lead-note:first-child {
    border-top: none;
    padding-top: 0;
}

.fap-lead-note-meta {
    font-family: inherit;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.fap-lead-note-meta strong {
    color: #111827;
    font-weight: 600;
}

.fap-lead-note p {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    color: #374151;
    line-height: 1.55;
}

.fap-lead-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fap-lead-task {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-top: 1px solid #f8fafc;
    cursor: pointer;
}

.fap-lead-task:first-child {
    border-top: none;
}

.fap-lead-task input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3fd6d4;
}

.fap-lead-task-title {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    color: #111827;
}

.fap-lead-task.completed .fap-lead-task-title {
    color: #9ca3af;
    text-decoration: line-through;
}

.fap-lead-task-due {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.fap-lead-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
}

.fap-lead-detail-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.fap-lead-details-grid strong {
    font-size: 14px;
    color: #111827;
}

@media (max-width: 768px) {
    .fap-lead-convert-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .fap-lead-details-grid {
        grid-template-columns: 1fr;
    }
}
