.mr-lock-note { color: #92400e; font-size: 0.85rem; font-weight: 600; min-height: 1em; }
.mr-status, .mr-ref {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}
.mr-status { background: #ffedd5; color: #9a3412; }
.mr-status.is-submitted { background: #dbeafe; color: #1e40af; }
.mr-status.is-approved, .mr-status.is-ordered { background: #dcfce7; color: #166534; }
.mr-status.is-rejected { background: #fee2e2; color: #991b1b; }
.mr-ref { background: #f1f5f9; color: #0f172a; }
.mr-ref:empty { display: none; }

.mr-urgency, .mr-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.mr-urgency label, .mr-choice label {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    font-weight: 650;
    cursor: pointer;
}
.mr-urgency label.is-red { border-color: #fecaca; background: #fff1f2; }
.mr-urgency label.is-amber { border-color: #fed7aa; background: #fff7ed; }
.mr-urgency label.is-green { border-color: #bbf7d0; background: #f0fdf4; }
.mr-urgency label.is-on { outline: 2px solid #0c1248; }

.mr-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.mr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mr-table th, .mr-table td { border: 1px solid #e2e8f0; padding: 6px; vertical-align: top; }
.mr-table th { background: #0c1248; color: #fff; font-size: 0.75rem; text-align: left; white-space: nowrap; }
.mr-table input, .mr-table select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 8px;
    font: inherit;
}
.mr-table td.mr-type { width: 9rem; }
.mr-table td.mr-desc { min-width: 16rem; }
.mr-field-name { line-height: 1.3; }
.ops-grid label[hidden] { display: none !important; }
.mr-flags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 6px;
    font-size: 0.8rem;
    font-weight: 650;
    color: #0f172a;
}
.mr-flags label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.mr-sku {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 750;
    color: #0c1248;
}
.mr-sku button { margin: 0; }
.mr-urgency label.is-closed { opacity: 0.55; cursor: not-allowed; }
.mr-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mr-modal[hidden] { display: none; }
.mr-modal-card { background: #fff; width: min(1100px, 100%); height: min(840px, 100%); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.mr-modal-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #0c1248; color: #fff; }
.mr-modal-card iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.ops-card.is-locked button[data-anc-open] { pointer-events: auto; opacity: 1; }
.mr-table td.mr-qty, .mr-table td.mr-weeks { width: 6.5rem; }
.mr-table td.mr-unit { width: 6.5rem; }
.mr-table td.mr-x { width: 3rem; text-align: center; }

.mr-restrict-notes, .mr-comments { display: block; margin-top: 10px; font-weight: 600; }
.mr-restrict-notes textarea, .mr-comments textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    min-height: 64px;
}
.mr-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mr-files li {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}
.mr-files img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #f1f5f9; }
.mr-files .mr-file-name { font-weight: 650; }
.mr-files .mr-file-meta { color: #64748b; font-size: 0.78rem; }
.mr-files .mr-file-actions { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.mr-decide { display: flex; gap: 8px; margin: 8px 0 12px; }
.mr-ordered { font-size: 0.85rem; color: #166534; font-weight: 650; }

.ops-card.is-locked input,
.ops-card.is-locked select,
.ops-card.is-locked textarea,
.ops-card.is-locked button { pointer-events: none; opacity: 0.72; }

@media (max-width: 720px) {
    .mr-urgency label, .mr-choice label { width: 100%; }
}
