.erp-modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #dfe5e1; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px #13251d40; }
.erp-modal::backdrop { background: #18282075; backdrop-filter: blur(2px); }
body:has(.erp-modal[open]) { overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: white; z-index: 1; }
.modal-header h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.modal-header .eyebrow { margin-bottom: 7px; }
.modal-close { width: 32px; min-width: 32px; height: 32px; padding: 0; margin: 0; display: grid; place-items: center; background: #f1f4f2; color: #53655d; border: 0; border-radius: 7px; font-size: 24px; font-weight: 400; }
.modal-close:hover { background: #e4eae6; }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0; padding: 16px 24px; border-top: 1px solid var(--border); background: #fafbf9; position: sticky; bottom: 0; }
.erp-modal .modal-footer button, .heading-actions > button { width: auto; margin: 0; }
.erp-modal .secondary-button { background: #eef2ee; color: var(--ink); border: 1px solid var(--border); }
.erp-modal button:disabled { opacity: .6; cursor: wait; }
.erp-modal .form-actions { justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--border); }
.erp-modal .fields { gap: 20px 18px; }
.catalog-page .catalog-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 600px) { .erp-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } .modal-header, .modal-body { padding: 18px; } .modal-footer { padding: 14px 18px; } .erp-modal .fields { grid-template-columns: 1fr; } }
