/* --- SCOPED CSS FOR RECORD DETAILS DRAWER (RecordDetailsDrawer.razor) ---
   The overlay / panel / header / footer chrome is provided by the shared
   BottomSheet component (bottom sheet on phone, right drawer on tablet and
   desktop). This file styles only the content placed inside it. */

.rd-sheet .fb-sheet__panel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rd-pill-solid-purple {
    background-color: #ede9fe; /* Light purple */
    color: #7c3aed; /* Deep purple */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.rd-pill-solid-green {
    background-color: #dcfce7;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Body: the sheet already pads its scroll area */
.rd-sheet .rd-body {
    padding: 4px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sections WITH Green Dividers */
.rd-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1fae5; /* Very light green line separating sections */
}

    .rd-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .rd-section h3 {
        margin: 0 0 4px 0;
        font-size: 14px;
        font-weight: 700;
        color: #16a34a; /* Distinct Green Header */
    }

.rd-row {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

.rd-label {
    width: 170px; /* Fixed width to align colons perfectly */
    flex-shrink: 0;
    color: #64748b;
    font-weight: 500;
}

.rd-value {
    flex: 1;
    min-width: 0;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.rd-val-flex {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 6px;
}

.rd-colon {
    margin-right: 16px;
    color: #64748b;
    font-weight: 500;
}

.rd-pill-outline-purple {
    background-color: #ffffff;
    border: 1px solid #ddd6fe;
    color: #7c3aed;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-left: 2px;
}

/* Red Alert Box */
.rd-alert-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 700;
}

.rd-alert-text {
    font-size: 13px;
    color: #475569;
    padding-left: 26px; /* Aligns with text, ignoring icon width */
    line-height: 1.6;
}

/* Footer buttons */
.rd-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .rd-btn-outline:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #334155;
    }

.rd-btn-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #14532d; /* Very dark forest green */
    color: #ffffff;
    border: 1px solid #14532d;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .rd-btn-solid:hover {
        background-color: #166534;
    }

/* Contact (WhatsApp / Call / SMS) action buttons */
.rd-contact-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px;
}

.rd-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease;
}

    .rd-contact-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
    }

    .rd-contact-btn.rd-wa {
        color: #16a34a;
    }

        .rd-contact-btn.rd-wa:hover {
            background: #16a34a;
            color: #fff;
        }

    .rd-contact-btn.rd-call {
        color: #2563eb;
    }

        .rd-contact-btn.rd-call:hover {
            background: #2563eb;
            color: #fff;
        }

    .rd-contact-btn.rd-sms {
        color: #9333ea;
    }

        .rd-contact-btn.rd-sms:hover {
            background: #9333ea;
            color: #fff;
        }

/* native: phone */
@media (max-width: 767.98px) {
    .rd-label {
        width: 120px;
    }

    .rd-contact-actions {
        width: 100%;
        margin-left: 0;
        padding-top: 4px;
    }

    .rd-contact-btn {
        width: var(--tap-min, 44px);
        height: var(--tap-min, 44px);
    }

        .rd-contact-btn svg {
            width: 20px;
            height: 20px;
        }
}
