.inv-open { overflow: hidden; }

.inv-modal[aria-hidden="true"] { display: none; }
.inv-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: grid; place-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.inv-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.inv-dialog {
  position: relative;
  width: min(560px, 92vw);
  background: #fff; color: #111;
  border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  z-index: 2;
  max-height: 85vh; overflow: auto;
}
.inv-dialog h3 { margin: 0 0 8px; font-size: 1.25rem; }
.inv-dialog p { margin: 6px 0 14px; line-height: 1.45; }

.inv-close {
  position: absolute; top: 8px; right: 10px;
  border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer;
}

.inv-form label { display:block; margin:10px 0 6px; font-weight:600; }
.inv-form input, .inv-form select, .inv-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.inv-radio-row { display: flex; gap: 16px; margin: 8px 0; flex-wrap: wrap; }

.inv-actions { display:flex; gap:10px; justify-content: flex-end; margin-top:16px; }
.inv-btn {
  border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600;
}
.inv-primary { background: #111; color: #fff; }
.inv-secondary { background: #f2f2f2; color: #111; }

.inv-error {
  margin-top: 12px; background: #ffe8e8; color: #b10000;
  border: 1px solid #ffc6c6; padding: 10px 12px; border-radius: 8px; font-weight:600;
}
