/* --- SCOPED CSS FOR LIQUIDATION DETAILS DRAWER (LiquidationDetailsDrawer.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. */

.ldd-sheet .fb-sheet__panel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Status Badge */
.ldd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    white-space: nowrap;
}

.ldd-st-red {
    background-color: #fee2e2;
    color: #ef4444;
}

    .ldd-st-red .ldd-dot {
        background-color: #ef4444;
    }

.ldd-st-orange {
    background-color: #ffedd5;
    color: #f59e0b;
}

    .ldd-st-orange .ldd-dot {
        background-color: #f59e0b;
    }

.ldd-st-green {
    background-color: #dcfce7;
    color: #16a34a;
}

    .ldd-st-green .ldd-dot {
        background-color: #16a34a;
    }

.ldd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Body: the sheet already pads its scroll area */
.ldd-sheet .ldd-body {
    padding: 4px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sections WITH Green Dividers */
.ldd-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1fae5;
}

    .ldd-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .ldd-section h3 {
        margin: 0 0 4px 0;
        font-size: 14px;
        font-weight: 700;
        color: #059669;
    }

.ldd-row {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

    .ldd-row.align-items-center {
        align-items: center;
    }

.ldd-label {
    width: 150px;
    flex-shrink: 0;
    color: #64748b;
    font-weight: 500;
}

.ldd-value {
    flex: 1;
    min-width: 0;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.ldd-val-flex {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 6px;
}

.ldd-colon {
    margin-right: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Outline Badges */
.ldd-outline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
}

.ldd-outline-blue {
    color: #6366f1;
    background-color: #e0e7ff;
    border-color: #c7d2fe;
}

/* Footer button */
.ldd-btn-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #14532d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .ldd-btn-solid:hover {
        background-color: #166534;
    }

/* Contact (WhatsApp / Call / SMS) action buttons */
.ldd-contact-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px;
}

.ldd-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;
}

    .ldd-contact-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
    }

    .ldd-contact-btn.ldd-wa {
        color: #16a34a;
    }

        .ldd-contact-btn.ldd-wa:hover {
            background: #16a34a;
            color: #fff;
        }

    .ldd-contact-btn.ldd-call {
        color: #2563eb;
    }

        .ldd-contact-btn.ldd-call:hover {
            background: #2563eb;
            color: #fff;
        }

    .ldd-contact-btn.ldd-sms {
        color: #9333ea;
    }

        .ldd-contact-btn.ldd-sms:hover {
            background: #9333ea;
            color: #fff;
        }

/* native: phone */
@media (max-width: 767.98px) {
    .ldd-label {
        width: 120px;
    }

    .ldd-contact-actions {
        width: 100%;
        margin-left: 0;
        padding-top: 4px;
    }

    .ldd-contact-btn {
        width: var(--tap-min, 44px);
        height: var(--tap-min, 44px);
    }

        .ldd-contact-btn svg {
            width: 20px;
            height: 20px;
        }
}
