/* Уведомление о поступлении — стили кнопки и модалки. Переопределяются в теме (.bis-*). */
.bis-open {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 18px; border: 1px solid currentColor;
    border-radius: 10px; background: transparent; color: inherit;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.bis-open:hover { background: #6366f1; border-color: #6366f1; color: #fff; }

.bis-lock { overflow: hidden; }
.bis-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bis-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.bis-modal[hidden] { display: none; }
.bis-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.bis-modal__dialog {
    position: relative; z-index: 1; width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 48px); overflow-y: auto;
    background: #fff; border-radius: 14px; padding: 22px 22px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.bis-modal__x {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
    border: none; background: transparent; color: #64748b; font-size: 18px; cursor: pointer; border-radius: 8px;
}
.bis-modal__x:hover { background: #f1f5f9; }
.bis-modal__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.bis-modal__lead { margin: 0 0 16px; font-size: 13px; color: #64748b; }

.bis-field { margin-bottom: 12px; }
.bis-field__label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: #475569; }
.bis-req { color: #ef4444; }
.bis-input {
    width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d7dce3;
    border-radius: 9px; font-size: 15px; font-family: inherit; box-sizing: border-box;
}
textarea.bis-input { height: auto; padding: 10px 12px; }
.bis-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }

.bis-msg { margin: 10px 0; padding: 9px 12px; border-radius: 9px; font-size: 14px; background: #eef2ff; color: #4338ca; }
.bis-msg.is-error { background: #fef2f2; color: #b91c1c; }
.bis-msg[hidden] { display: none; }

.bis-submit {
    width: 100%; height: 48px; margin-top: 8px; border: none; border-radius: 10px;
    background: #6366f1; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.bis-submit:hover { background: #4f46e5; }
.bis-submit:disabled { opacity: .6; cursor: not-allowed; }

@media (prefers-color-scheme: dark) {
    .bis-modal__dialog { background: #1e293b; color: #e2e8f0; }
    .bis-modal__title { color: #f1f5f9; }
    .bis-input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
    .bis-modal__x:hover { background: #334155; }
}
