
.case-modal {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(19, 48, 92, 0.24);
}

.case-modal.custom-select-menu-host {
    overflow: visible;
}

.case-modal::backdrop {
    background: rgba(19, 33, 54, 0.36);
    backdrop-filter: blur(2px);
}

.case-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}

.case-modal-header h2,
.case-modal-header p {
    margin: 0;
}

.case-modal-header p {
    margin-top: 4px;
}

.case-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.case-modal-close:hover {
    background: #f3f7fd;
    color: var(--brand);
    transform: none;
}

.case-modal-body {
    display: grid;
    gap: 12px;
    padding: 20px 22px 22px;
}

.case-modal-body label {
    color: var(--muted);
    font-weight: 600;
}

.case-modal-body select {
    width: 100%;
}

.case-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.case-modal-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.case-modal-submit,
.create-user-from-modal {
    width: 100%;
}

.create-user-from-modal {
    margin-top: 6px;
}
