/* Stock Ageing Details Drawer (StockAgeingDetailsDrawer.razor).
   The overlay / panel / header / footer chrome is provided by the shared
   BottomSheet component (bottom sheet on phone, right drawer on tablet and
   desktop). The existing sad-* content design is preserved. */

.sad-sheet .fb-sheet__panel {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sad-status-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.sad-badge-inline {
    margin-left: 8px;
}

.sad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #16a34a;
}

/* Body: the sheet already pads its scroll area */
.sad-sheet .sad-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 4px 8px;
}

.sad-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1fae5;
}

    .sad-section:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .sad-section h3 {
        margin: 0 0 4px;
        color: #059669;
        font-size: 14px;
        font-weight: 700;
    }

.sad-row {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

.sad-label {
    width: 140px;
    flex-shrink: 0;
    color: #64748b;
    font-weight: 500;
}

.sad-value {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: flex-start;
    color: #334155;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sad-val-flex {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 7px;
}

.sad-colon {
    margin-right: 12px;
    color: #64748b;
    font-weight: 500;
}

.sad-btn-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #14532d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .sad-btn-solid:hover {
        background-color: #166534;
    }

.sad-contact-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px;
}

.sad-contact-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .sad-contact-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .sad-contact-btn.sad-wa {
        color: #16a34a;
    }

        .sad-contact-btn.sad-wa:hover {
            color: #ffffff;
            background: #16a34a;
        }

    .sad-contact-btn.sad-call {
        color: #2563eb;
    }

        .sad-contact-btn.sad-call:hover {
            color: #ffffff;
            background: #2563eb;
        }

    .sad-contact-btn.sad-sms {
        color: #9333ea;
    }

        .sad-contact-btn.sad-sms:hover {
            color: #ffffff;
            background: #9333ea;
        }

    .sad-contact-btn:focus-visible,
    .sad-btn-solid:focus-visible {
        outline: 3px solid rgba(22, 163, 74, 0.25);
        outline-offset: 2px;
    }

/* native: phone */
@media (max-width: 767.98px) {
    .sad-label {
        width: 120px;
    }

    .sad-contact-actions {
        width: 100%;
        margin-left: 0;
        padding-top: 4px;
    }

    .sad-contact-btn {
        width: var(--tap-min, 44px);
        height: var(--tap-min, 44px);
    }

        .sad-contact-btn svg {
            width: 20px;
            height: 20px;
        }
}
