/* CRM Billing Index Styles */

/* Custom Scrollbar for Modal content */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #b1b1b1;
}

.bg-soft-primary {
    background-color: rgba(64, 81, 137, 0.1);
}

.bg-soft-warning {
    background-color: rgba(247, 184, 75, 0.1);
}

.bg-soft-danger {
    background-color: rgba(240, 101, 101, 0.1);
}

.text-warning-emphasis {
    color: #856404;
}

.text-danger-emphasis {
    color: #842029;
}

.crm-receivable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.crm-receivable-item:last-child {
    border-bottom: none;
}

.crm-receivable-item:hover {
    background-color: #fafafa;
}

.crm-receivable-title {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.crm-receivable-meta {
    color: #888;
    font-size: 0.75rem;
    margin-top: 2px;
}

.crm-receivable-amount {
    font-weight: 700;
    color: #dc3545;
    white-space: nowrap;
    font-size: 0.95rem;
}

.crm-history-item {
    position: relative;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    border-left: 4px solid #405189;
}

.crm-history-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
}

.crm-history-result {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    align-items: center;
}

.crm-history-notes {
    font-size: 0.82rem;
    color: #555;
    margin-top: 8px;
    font-style: italic;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 6px;
}

.system-interaction { background-color: #f8fafc; border-left: 3px solid #64748b !important; }
.system-interaction .crm-history-header i { color: #64748b; }

.crm-history-return {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #405189;
    margin-top: 8px;
    font-weight: 600;
}

.crm-delay-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f06565;
    color: #fff;
    box-shadow: 0 2px 4px rgba(240, 101, 101, 0.2);
}

.crm-unit-label {
    font-weight: 700;
    color: #333;
}

.crm-morador-name {
    font-size: 0.8rem;
    color: #6c757d;
}

.crm-last-contact {
    font-size: 0.8rem;
    color: #444;
}

#crmTable thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom-width: 1px;
}

#crmTable tbody td {
    vertical-align: middle;
    padding: 15px 12px;
}

.tracking-wider {
    letter-spacing: 0.05em;
}
