/* ============================================================
   Shared Notices
============================================================ */
.mrpaa-vendor-notice {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin: 16px 0;
}

.mrpaa-notice-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.mrpaa-notice-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.mrpaa-notice-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.mrpaa-notice-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.mrpaa-vendor-notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   Registration Form
============================================================ */
.mrpaa-vendor-register {
    max-width: 600px;
    margin: 0 auto;
}

.mrpaa-vr-header {
    text-align: center;
    margin-bottom: 24px;
}

.mrpaa-vr-header h2 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 8px;
}

.mrpaa-vr-header p {
    color: #64748b;
    font-size: 14px;
}

.mrpaa-vr-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .mrpaa-vr-benefits {
        grid-template-columns: 1fr;
    }
}

.mrpaa-vr-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.mrpaa-vr-benefit span {
    font-size: 24px;
    line-height: 1;
}

.mrpaa-vr-benefit strong {
    display: block;
    font-size: 13px;
    color: #15803d;
    margin-bottom: 2px;
}

.mrpaa-vr-benefit p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.mrpaa-vr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mrpaa-vr-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mrpaa-vr-row label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.mrpaa-vr-row small {
    font-size: 11px;
    color: #94a3b8;
}

.mrpaa-vr-row input,
.mrpaa-vr-row select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.mrpaa-vr-row input:focus,
.mrpaa-vr-row select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.mrpaa-vr-row-half {
    flex-direction: row;
    gap: 12px;
}

.mrpaa-vr-row-half > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 500px) {
    .mrpaa-vr-row-half {
        flex-direction: column;
    }
}

.mrpaa-vr-actions {
    text-align: center;
    margin-top: 8px;
}

.mrpaa-vr-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.mrpaa-vr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.mrpaa-vr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   Vendor Dashboard
============================================================ */
.mrpaa-vendor-dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.mrpaa-vd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.mrpaa-vd-welcome h2 {
    margin: 0;
    font-size: 22px;
    color: #1e293b;
}

.mrpaa-vd-welcome p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.mrpaa-vd-logout {
    font-size: 13px;
    color: #dc2626;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
}

.mrpaa-vd-logout:hover {
    background: #fef2f2;
}

.mrpaa-vd-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.mrpaa-vd-stat {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.mrpaa-vd-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
}

.mrpaa-vd-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mrpaa-vd-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
}

.mrpaa-vd-search {
    margin-bottom: 16px;
}

.mrpaa-vd-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.mrpaa-vd-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============================================================
   Product Cards (Dashboard)
============================================================ */
.mrpaa-vd-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
    flex-wrap: wrap;
    gap: 10px;
}

.mrpaa-vd-product:hover {
    border-color: #93c5fd;
}

.mrpaa-vd-product-approved {
    border-color: #86efac;
    background: #f0fdf4;
}

.mrpaa-vd-product-pending {
    border-color: #fcd34d;
    background: #fffbeb;
}

.mrpaa-vd-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mrpaa-vd-product-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.mrpaa-vd-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mrpaa-vd-product-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mrpaa-vd-product-details strong {
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mrpaa-vd-product-ref {
    font-size: 12px;
    color: #64748b;
}

.mrpaa-vd-prop-status {
    font-size: 12px;
    font-weight: 600;
}

.mrpaa-vd-prop-pending { color: #92400e; }
.mrpaa-vd-prop-approved { color: #15803d; }
.mrpaa-vd-prop-rejected { color: #991b1b; }

/* ============================================================
   Propose Form (Dashboard)
============================================================ */
.mrpaa-vd-propose {
    flex-shrink: 0;
}

.mrpaa-vd-propose-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mrpaa-vd-input-price {
    width: 90px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

.mrpaa-vd-propose-form select {
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.mrpaa-vd-btn-propose {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.mrpaa-vd-btn-propose:hover {
    background: #1d4ed8;
}

.mrpaa-vd-btn-propose:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mrpaa-vd-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 600px) {
    .mrpaa-vd-stats {
        grid-template-columns: 1fr;
    }

    .mrpaa-vd-product {
        flex-direction: column;
        align-items: stretch;
    }

    .mrpaa-vd-propose-form {
        width: 100%;
    }

    .mrpaa-vd-input-price {
        flex: 1;
    }
}
