/* --- SCOPED CSS FOR LIQUIDATION DETAILS DRAWER --- */
.ldd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: flex;
    justify-content: flex-end;
}

/* Floating Drawer Design */
.ldd-drawer {
    width: 440px;
    max-width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    margin: 16px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: lddSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow: hidden;
}

@keyframes lddSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header */
.ldd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
    z-index: 10;
}

.ldd-header-titles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .ldd-header-titles h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #334155;
    }

/* 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;
}

.ldd-st-red {
    background-color: #fee2e2;
    color: #ef4444;
}

    .ldd-st-red .ldd-dot {
        background-color: #ef4444;
    }

.ldd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ldd-close-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

    .ldd-close-icon:hover {
        opacity: 0.6;
    }

/* Body & Scrollbar */
.ldd-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .ldd-body::-webkit-scrollbar {
        width: 6px;
    }

    .ldd-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .ldd-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

        .ldd-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* 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;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
}

.ldd-val-flex {
    align-items: center;
}

.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 */
.ldd-footer {
    padding: 20px 32px;
    border-top: 1px solid #f1f5f9;
    background-color: #ffffff;
    display: flex;
    justify-content: flex-end;
}

.ldd-btn-solid {
    display: flex;
    align-items: 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;
    }

/* Responsive */
@media (max-width: 480px) {
    .ldd-drawer {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
    }

    .ldd-label {
        width: 130px;
    }
}

